diff --git a/lib/github-manager.css b/lib/github-manager.css deleted file mode 100644 index 8a5cc32..0000000 --- a/lib/github-manager.css +++ /dev/null @@ -1,37 +0,0 @@ -/* First, reset everything to a standard */ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, font, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - border: 0; - margin: 0; - padding: 0; - outline: 0; - font-size: 12px; - vertical-align: top; -} - -body {overflow: hidden; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -h1 {font-size: 36px; font-weight: normal; color: #888; margin-bottom: 20px} -a {color: #fff; text-decoration: none} -input {padding: 4px; border: 1px solid #555; background-color: #444; color: #fff} -input:focus { - outline: none; - -webkit-box-shadow: 0 0 10px 1px rgba(0,198,255,0.7); - -moz-box-shadow: 0 0 10px 1px rgba(0,198,255,0.7); - box-shadow: 0 0 10px 1px rgba(0,198,255,0.7); -} - -.githubManager {font-family: arial, verdana, helvetica, sans-serif; background-color: #1c1c19; color: #fff; padding: 20px} -.githubManager .info {font-size: 10px; color: rgba(0,198,255,0.7); cursor: help} \ No newline at end of file diff --git a/lib/github-manager.php b/lib/github-manager.php deleted file mode 100644 index 4815b82..0000000 --- a/lib/github-manager.php +++ /dev/null @@ -1,250 +0,0 @@ -ICEcoder.message('".$t['Sorry, cannot create...']."\\n".$chosenLocal."');"; - } - } - - if (is_dir($docRoot.$chosenLocal)) { - $pathValid = true; - } - - if ($pathValid) { - - // New setting for the root path - $settingsNew = '"root" => "'.$chosenLocal.'",'.PHP_EOL; - - // Identify the bit to replace - $repPosStart = strpos($settingsContents,'"root"'); - $repPosEnd = strpos($settingsContents,'"checkUpdates"'); - - // Compile our new settings - $settingsContents = substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents)); - - // Now update the config file - if (is_writeable("../data/".$settingsFile)) { - $fh = fopen("../data/".$settingsFile, 'w'); - fwrite($fh, $settingsContents); - fclose($fh); - - // Clear any FTP session we may have - $_SESSION['ftpSiteRef'] = false; - - // Hide this popup and reload file manager - echo ""; - } else { - echo ""; - } - - } - - } - - // ====== - // ADDING - // ====== - - if ($_GET['action']=="add") { - - // Start creating a new chunk for the github paths - $settingsNew = '"githubLocalPaths" => array('; - - // Add the new one - if ($_POST['githubLocalPathNEW'] != "" && $_POST['githubRemotePathNEW'] != "") { - $settingsNew .= '"'.injClean(xssClean($_POST['githubLocalPathNEW'],"html")).'",'; - } - - // Then set all the old local paths - for ($i=0; $iwindow.location='github-manager.php?updatedGithubPaths&csrf='+ICEcoder.csrf;"; - die($t['saving github paths']); - } else { - echo ""; - } - } -} -?> - - - - -ICEcoder <?php echo $ICEcoder["versionNo"];?> GitHub manager - - - - - - - -

- -
- 0) { - ?> -
-


- -
- - - - - - '; - echo ''; - echo ''; - echo ''; - echo ''; - } - echo ''; - echo ''; - echo ''; - echo ''; - ?> -
[?] [?]
'.$t['Choose'].'
'.$t['Set local and...'].'
'.$t['Update'].'
- "> -
-
- - -
-


- -
- - - - - - - - - - - - -
[?] [?]
- "> -
-
- -

- -

-

-

-

- -
- - - -