'mysql', 'host' => $MCONF['db_host'], 'user' => $MCONF['db_usr'], 'password' => $MCONF['db_pw'], 'database' => $MCONF['db_name'], 'db_prefix' => $MCONF['db_prefix'] )); $backup = $db->backup(); if ($backup['error']) { echo msg('fail', $lang->get('action_backup_fail')); } else { header("Cache-Control: public"); header("content-Description: File Transfer"); header('Content-Disposition: attachment; filename=Backup_' . str_replace(' ', '_', $MCONF['title']) . '_' . date('Y-m-d_h-d') . '.sql'); header("Content-Type: application/octet-stream; "); header("Content-Transfer-Encoding: binary"); echo $backup['msg']; exit; } } else { printHeader($lang->get('action_edit_content')); } if (hasPerm('manage_system')) { //construction if (isset($_GET['construction'])) { if (isset($_GET['constr_message'])) { if (isset($_POST['constr_message'])) { if (file_put_contents('../inc/System/construction2.txt', $_POST['constr_message'])) { copy('../inc/System/construction2.txt', '../inc/System/construction.txt'); echo msg('succes', $lang->get('action_construction_message_success').' '.$lang->get('back').''); } else { echo msg('fail', $lang->get('action_try_again_later').' '.$lang->get('back').''); } } else { tinymce(); ?>

get('action_construction_message_edit');?>

get('action_construction_success').' '.$lang->get('back').''); } else { echo msg('fail', $lang->get('action_try_again_later').' '.$lang->get('back').''); } } else { ?>

get('action_construction_confirm');?>
get('general_yes');?> get('general_no');?>

get('action_construction_removed_success').' '.$lang->get('back').''); } else { echo msg('fail', $lang->get('action_try_again_later').' '.$lang->get('back').''); } } else { ?>

get('action_construction_remove');?>
get('general_yes');?> get('general_no');?>

get('action_change_page_title_success')); } else { echo msg('fail', $lang->get('action_try_again_later')); } } $moduluri = '../apps/'; if ($handle = opendir($moduluri)) { while (false !== ($mod = readdir($handle))) { if ($mod != "." && $mod != ".." && is_dir($moduluri . $mod)) { require $moduluri . $mod . '/config.php'; if (isset($_CONF['general_conf']) && $_CONF['general_conf'] != '' && file_exists($moduluri . $mod . '/' . $_CONF['general_conf'])) { //echo '
  • '; require $moduluri . $mod . '/' . $_CONF['general_conf']; } } } closedir($handle); } } //Update if(isset($_GET['update'])) { if(hasPerm('update')) { $version_remote = json_decode(file_get_contents($MCONF['update_uri'].'version.json')); if ($version_remote->versionNum > $MCONF['version_num']) { if (copy($MCONF['update_uri'].'update.v' . $version_remote->versionNum . '.incremental.zip', 'update.zip')) { if (md5_file('update.zip') == $version_remote->md5) { if (!file_exists('updateNeu/')) { mkdir('updateNeu/'); } $zip = new ZipArchive; $res = $zip->open('update.zip'); if ($res === true) { $zip->extractTo('updateNeu/'); $zip->close(); $updateInfos = json_decode(file_get_contents('updateNeu/filesToUpdate.json')); //array mit dateine erstellen $isUp = false; $fTU = []; foreach ($updateInfos->files as $num => $file) { $fTU[] = $file; $upNeu = 'updateNeu/' . $file; $upRem = '../' . $file; if (copy($upNeu, $upRem)) { echo msg('succes', sprintf($lang->get('action_update_item_succss'), $file)); $isUp = true; } else { echo msg('fail', sprintf($lang->get('action_update_item_fail'), $file)); } } //Jetzt altes update entfernen if (rrmdir('updateNeu') && $isUp && unlink('update.zip')) { echo msg('succes', $lang->get('action_update_success').' '.$lang->get('back').''); } else { echo msg('fail', $lang->get('action_update_fail').' '.$lang->get('back').''); } } else { echo msg('fail', $lang->get('action_update_fail_unzip')); } } else { echo msg('fail', $lang->get('action_update_md5_fake')); } } else { echo msg('fail', $lang->get('action_update_fail_copy')); } } else { echo msg('info', $lang->get('general_version_current_new')); } } } } else { echo msg('info', $lang->get('missing_permission')); } require_once '../inc/footer.php'; ?>