include 'language/en/lang.php'; // load default configuration include 'work/config/mysqldumper.php'; GetLanguageArray(); $configFiles = get_config_filenames(); foreach ($configFiles as $configFile) { if (in_array($configFile, $excludedConfigurationFiles)) { continue; } output('Refreshing database list for configuration file: ' . $configFile, $verbose); $config['config_file'] = $configFile; include $config['paths']['config'] . $configFile . '.php'; $out = ''; if (isset($config['dbconnection']) && is_resource($config['dbconnection'])) { is_null($___mysqli_res = mysqli_close($config['dbconnection'])) ? false : $___mysqli_res; $config['dbconnection'] = false; } SetDefault(); output($out, $verbose); } /** * @param string $message * @param boolean $verbose */ function output($message, $verbose) { if ($verbose) { $message = str_replace("\n", NEWLINE, $message); echo $message . NEWLINE; } }
<input type="hidden" name="install_ftp_port" value="' . $install_ftp_port . '"> <input type="hidden" name="install_ftp_user_name" value="' . $install_ftp_user_name . '"> <input type="hidden" name="install_ftp_user_pass" value="' . $install_ftp_user_pass . '"> <input type="hidden" name="install_ftp_path" value="' . $install_ftp_path . '">'; echo '<input type="submit" name="submit" value=" ' . $lang['L_CREATEDIRS2'] . ' " class="Formbutton"></form>'; } echo '</td></tr></table>'; } //echo '</td></tr>'; //echo '</table>'; break; case 11: //FTP-Create Dirs echo '<h6>' . $lang['L_FTPMODE'] . '</h6>'; if (CreateDirsFTP() == 1) { SetDefault(true); echo DirectoryWarnings(); echo '<br>' . $lang['L_INSTALLFINISHED']; } break; case 100: //uninstall echo '<h6>' . $lang['L_UI1'] . '</h6>'; echo '<h6>' . $lang['L_UI2'] . '</h6>'; echo '<a href="install.php">' . $lang['L_UI3'] . '</a> '; echo '<a href="install.php?language=' . $language . '&phase=101">' . $lang['L_UI4'] . '</a>'; break; case 101: echo '<h6>' . $lang['L_UI5'] . '</h6>'; $paths = array(); $w = substr($config['paths']['work'], 0, strlen($config['paths']['work']) - 1);
function TestWorkDir() { global $config; $ret = SetFileRechte($config['paths']['work']); if ($ret === true) { $ret = SetFileRechte($config['paths']['backup']); } if ($ret === true) { $ret = SetFileRechte($config['paths']['log']); } if ($ret === true) { $ret = SetFileRechte($config['paths']['config']); } if ($ret === true) { if (!file_exists($config['files']['parameter'])) { SetDefault(true); } if (!file_exists($config['files']['log'])) { DeleteLog(); } } return $ret; }
function TestWorkDir() { global $config; //echo "work_chmod: $config['paths']['work']_chmod<br>"; SetFileRechte($config['paths']['work']); SetFileRechte($config['paths']['backup']); SetFileRechte($config['paths']['structure']); SetFileRechte($config['paths']['log']); SetFileRechte($config['paths']['config']); if (!file_exists($config['files']['parameter'])) { SetDefault(true); } if (!file_exists($config['files']['log'])) { DeleteLog(); } }
<?php define('_DRIVEPATH', '/home/picosafe/drives'); $action = $_GET['action']; $name = $_GET['name']; $size = $_GET['size']; $file = _DRIVEPATH . '/' . $name; $file_enc = _DRIVEPATH . '/' . base64_encode($name) . '.drive'; /* -------------- Actions -------------- */ if ($action == 'default' && $name != '') { echo SetDefault($name); return; } if ($action == 'open' && $name != '') { echo OpenDrive($file_enc, $name); return; } if ($action == 'unmount' && $name != '') { echo UnmountDrive($file_enc, $name); return; } if ($action == 'mount' && $name != '') { echo MountDrive($file_enc, $name); return; } if ($action == 'exists' && $name != '') { echo DriveExists($file_enc); return; } if ($action == 'create' && $name != '' && $size != '') { echo CreateDrive($file_enc, $size);
<?php include_once './inc/header.php'; $pagerefresh = ' <script language="JavaScript"> var curl=parent.MySQL_Dumper_content.location.href.split("/"); var cdatei=curl.pop(); var ca=cdatei.split("."); if(ca[0]!="sql" && ca[0]!="dump" && ca[0]!="restore" && ca[0]!="frameset") { parent.MySQL_Dumper_content.location.href=parent.MySQL_Dumper_content.location.href; } </script>'; $msg = ''; if (isset($_GET['action'])) { if ($_GET['action'] == 'dbrefresh') { $msg .= SetDefault(); echo $pagerefresh; } } if (isset($_POST['dbindex'])) { $dbindex = $_POST['dbindex']; $databases['db_selected_index'] = $dbindex; SelectDB($dbindex); WriteParams(1, $config, $databases); echo $pagerefresh; } else { $dbindex = 0; } //Ausgabestart echo MSDHeader(1); echo headline('', 0);