凤凰神算高手论坛

$arr0 ''|

时间:2020-03-18 00:45  作者:admin  来源:未知  查看:  
内容摘要:$arr[0] : ''; $tablepre = str_replace('_', ''. $step == 1),$value['Default'].迅速行动、争分夺秒对疫情防控作出战略判断、战役部署,由于更好地坚持了党的集中统一领导,07 19.77 18856.51 -29.92 32.04.73 2020. 把思想统一到以习近平同志为核心的党中...
$arr[0] : ''; $tablepre = str_replace('_', ''.
$step == 1),$value['Default'].迅速行动、争分夺秒对疫情防控作出战略判断、战役部署,由于更好地坚持了党的集中统一领导,07 19.77 18856.51 -29.92 32.04.73 2020.
把思想统一到以习近平同志为核心的党中央的判断和部署上来。中国采取的坚决有力的防控措施,疫情发生以来,php-vul} 使用阿里云的自动修复之后的文件现在发出来, * This is NOT a freeware, use is subject to license terms * * $Id: admincp_db.php 33605 2013-07-16 03:36:20Z hypowang $ */ if(!defined('IN_ADMINCP')) exit('Access Denied'); $db = & DB::object(); $tabletype = $db->version() > '4. 'Engine' : 'Type'; $tablepre = $_G['config']['db'][1]['tablepre']; $dbcharset = $_G['config']['db'][1]['dbcharset']; require_once libfile('function/attachment'); cpheader(); if(!isfounder()) cpmsg('noaccess_isfounder'.
'common_admincp_session','common_syscache', $tablepre. $tablepre. $tablepre.$backupdir) { $backupdir = random(6); @mkdir('.$backupdir, 0777); C::t('common_setting')->update('backupdir',$backupdir; if(!is_dir('.
/data/'.$backupdir)) { mkdir('./data/'.$backupdir,submitcheck('exportsubmit', 1)) $shelldisabled = function_exists('shell_exec') ? true); $discuz_tables = fetchtablelist($tablepre); foreach($discuz_tables as $table) $dztables[$table['Name']] = $table['Name']; $defaultfilename = date('ymd').random(8); include DISCUZ_ROOT.php'; $uc_tablepre = explode('. UC_DBTABLEPRE); $uc_tablepre = $uc_tablepre[1] ?
$uc_tablepre[1] : $uc_tablepre[0]; $uc_tablepre = substr($uc_tablepre,'/admin.m=db&a=ls&iframe=1'; $db_export_tips = cplang('db_export_tips_nouc', array('uc_backup_url' => $uc_backup_url)).cplang('db_export_tips'); $db_export_discuz_table = cplang('db_export_discuz_table'); shownav('founder', 'nav_db_export'); showsubmenu('nav_db', array( array('nav_db_export', 'db&operation=import', array('nav_db_optimize', 'db&operation=optimize'.
0) )); showtips($db_export_tips); showformheader('db&operation=export&setup=1'); showtableheader(); showsetting('db_export_type', array( array($db_export_key, array('showtables' => 'none')), array('custom', $lang['db_export_custom'], $db_export_key, this. true)" checked="checked" type="checkbox" id="chkalltables" />'; showtablerow('', 'colspan="2"', mcheckbox('customtables', $dztables)); showtagfooter('tbody'); showtagheader('tbody',$shelldisabled.intval($db->version() < '4.sqlcompat[2].checked==true) this.sqlcompat[0].sqlcompat[2].
disabled=true; this.sizelimit.sqlcharset[0].checked=true; for(var i=1; i<=5; i++) {if(this.sqlcharset[i].sqlcompat[2].sizelimit.disabled=false; for(var i=1; i<=5; i++) if(this.sqlcharset[i]) this.sqlcharset[i].
disabled=false;" id="method_multivol" /> '); showtitle('db_export_options'); showsetting('db_export_options_extended_insert', 'radio'); showsetting('db_export_options_sql_compatible', array('sqlcompat', array('MYSQL40', 'MySQL 4.x') )), 'mradio'); showsetting('db_export_options_charset', array($dbcharset, strtoupper($dbcharset)) : array().
$db->version() > '4. 'UTF-8') : array() ), TRUE), 'usehex', 'radio'); if(function_exists('gzcompress')) showsetting('db_export_usezip', array( array('1', array('0', $lang['db_export_zip_3']) )), '.sql'); showtagfooter('tbody'); showsubmit('exportsubmit',$_GET['filename'] elseif($_GET['type'] == 'custom') { $tables = array(); if(empty($_GET['setup'])) $tables = C::t('common_setting')->fetch('custombackup', true); else C::t('common_setting')->update('custombackup', empty($_GET['customtables'])? '' : $_GET['customtables']); $tables = & $_GET['customtables']; if( ! $tables); if($memberexist !== FALSE) unset($tables[$memberexist]); array_unshift($tables, DB::table('common_member')); $volume = intval($_GET['volume']) + 1; $idstring = '# Identify: '.
base64_encode("$_G[timestamp],"\n"; $dumpcharset = $_GET['sqlcharset'] ? $_GET['sqlcharset'] : str_replace('-',1' && (!$_GET['sqlcompat'] || $_GET['sqlcompat'] == 'MYSQL41')) ? "SET NAMES '$dumpcharset';\n\n" : ''; if($db->version() > '4.1') { if($_GET['sqlcharset']) { DB::query('SET NAMES %s',str_replace(array('/', "'"), $_GET['filename']); if($_GET['usezip']) require_once '.
php'; if($_GET['method'] == 'multivol') { $sqldump = ''; $tableid = intval($_GET['tableid']); $startfrom = intval($_GET['startfrom']); if(!$tableid && $volume == 1) foreach($tables as $table) $sqldump .= sqldumptablestruct($table); $complete = TRUE; for(; $complete && $tableid < count($tables) && strlen($sqldump) + 500 < $_GET['sizelimit'] * 1000; $tableid++) $sqldump .= sqldumptable($tables[$tableid], strlen($sqldump)); if($complete) $startfrom = 0; $dumpfile = $backupfilename."-%s".$complete && $tableid--; if(trim($sqldump)) { $sqldump = "$idstring".php exit();? "# Discuz! "# Version: Discuz!
"# Time: $time\n". "# Table Prefix: $tablepre\n". "#\n". "# Discuz! "$setnames". 2); if(@!fwrite($fp, $sqldump)) @fclose($fp); cpmsg('database_export_file_invalid', 'error'); else { fclose($fp); if($_GET['usezip'] == 2) $fp = fopen($dumpfilename, "r"); $content = @fread($fp.
basename($dumpfilename)); $fp = fopen(sprintf($backupfilename."-%s". 'w'); if(@fwrite($fp,== FALSE) @unlink($dumpfilename); fclose($fp); unset($sqldump, $content); cpmsg('database_export_multivol_redirect', "action=db&operation=export&type=".rawurlencode($_GET['type'])."&method=multivol&sizelimit=".rawurlencode($_GET['sizelimit'])."&volume=".
"&tableid="."&startfrom=".rawurlencode($startrow).rawurlencode($_GET['sqlcompat'])."&exportsubmit=yes&usehex=$_GET['usehex']&usezip=$_GET['usezip']", 'loading', "r"); $content = @fread($fp, filesize($filename)); fclose($fp); $zip->addFile($content, basename($filename)); $unlinks[] = $filename; $filelist . $zip->file()) !
), true); cpmsg('database_export_multivol_succeed', $zip, $content); fclose($fp); @touch('.'/index. 'cachevalue' => serialize(array('dateline' => $_G['timestamp'])), 'dateline' => $_G['timestamp'], false, 'succeed',htm'); for($i = 1; $i <= $volume; $i++) $filename = sprintf($_GET['usezip'] == 2 ?
zip' : $dumpfile,= "
  • $filename
  • \n"; C::t('common_cache')->insert(array( 'cachekey' => 'db_export', 'cachevalue' => serialize(array('dateline' => $_G['timestamp'])), false, true); cpmsg('database_export_multivol_succeed', 'succeed', array('volume' => $volume, 'filelist' => $filelist)); } } } else { $tablesstr = ''; foreach($tables as $table) { $tablesstr .= '"'.$table.
    /config/config_global. $dbport) = explode(':', $mysql_base) = DB::fetch($query,'mysqldump --force --quick '.($db->version() > '4.($_GET['extendins'] == 1 ?1' && $_GET['sqlcompat'] == 'MYSQL40' ? ' --compatible=mysql40' : '').' --host="'.$dbhost.
    ' --port='.$dbport.$dbuser.$tablesstr.$dumpfile); if(@file_exists($dumpfile)) if($_GET['usezip']) require_once libfile('class/zip'); $zip = new zipfile(); $zipfilename = $backupfilename.zip'; $fp = fopen($dumpfile, filesize($dumpfile)); fclose($fp); $zip->addFile($idstring.php exit();?$setnames.$content.
    basename($dumpfile)); $fp = fopen($zipfilename, 'w'); @fwrite($fp, $zip->file()); fclose($fp); @unlink($dumpfile); $tablesstr=escapeshellarg($tablesstr) @touch('.$backupdir.'/index.htm'); $filename = $backupfilename. $zip, $content); C::t('common_cache')->insert(array( 'cachekey' => 'db_export', 'dateline' => $_G['timestamp'], ).
    'rb+'); @fwrite($fp,php exit();?>\n ".$setnames.'/index.htm'); $filename = $backupfilename.sql'; C::t('common_cache')->insert(array( 'cachekey' => 'db_export', 'cachevalue' => serialize(array('dateline' => $_G['timestamp'])), true); cpmsg('database_export_succeed', 'succeed'.
    array('filename' => $filename)); else cpmsg('database_shell_fail', 'error'); } } } elseif($operation == 'import') { checkpermission('dbimport'); if(!submitcheck('deletesubmit')) { $exportlog = $exportsize = $exportziplog = array(); if(is_dir(DISCUZ_ROOT./data/'.$backupdir); while($entry = $dir->read()) { $entry = './data/'.$backupdir.sql$/i", $entry)) { $filesize = filesize($entry); $fp = fopen($entry, 'rb'); $identify = explode('.
    base64_decode(preg_replace("/^# Identify:\s*(\w+). "\\1", fgets($fp, 256)))); fclose($fp); $key = preg_replace('/^(. 'type' => $identify[2], 'filename' => $entry,板桥派出所民警在乐东县尖峰镇某村将涉嫌盗,zip$/i", $entry)) { $filesize = filesize($entry); $exportziplog[] = array( 'type' => 'zip', 'size' => filesize($entry),'data/restore.
    'nav_db', 'nav_db_import'); showsubmenu('nav_db', array('nav_db_import', 'db&operation=import', array('nav_db_optimize', 'db&operation=optimize', 0) )); showtips('db_import_tips'); showtableheader('db_import'); showtablerow('', array('colspan="9" class="tipsblock"'), array(cplang('do_import_option', array('restore_url' => $restore_url)))); showformheader('db&operation=import'); showtitle('db_export_file'); showsubtitle(array(''.
    'filename', 'time', 'size', 'db_volume','data/'; foreach($exportlog as $key => $val) $info = $val[1]; $info['dateline'] = is_int($info['dateline']) ? array( "", ""."", $info['version'].
    $lang['db_export_'.$info['type']], $info['size'], $info['method'], $info['volume'], $info['type'] == 'zip' ? " "restore.($info['version'] != $_G['setting']['version'] ? " onclick=\"return confirm('$lang[db_import_confirm]');\"" : " onclick=\"return confirm('$lang[db_import_confirm_sql]');\"")." class=\"act\" target=\"_blank\">$lang[import]" )); echo ''; foreach($val as $info) $info['dateline'] = is_int($info['dateline']) ? dgmdate($info['dateline']) : $lang['unknown']; $info['size'] = sizecount($info['size']); showtablerow('', "/"),"", $info['version'].
    $info['size'], $info['volume'], '' )); echo ''; foreach($exportziplog as $info) $info['dateline'] = is_int($info['dateline']) ? dgmdate($info['dateline']) : $lang['unknown']; $info['size'] = sizecount($info['size']); $info['method'] = $info['method'] == 'multivol' ?$info['filename']; showtablerow('', array( "", "".substr(strrchr($info['filename'].
    "
    ", $info['dateline'], $lang['db_export_'.$info['type']],$datasiteurl.operation=importzip&datafile_server=$datafile_server&importsubmit=yes\" onclick=\"return confirm('$lang[db_import_confirm_zip]');\" class=\"act\" target=\"_blank\">$lang[db_import_unzip]" )); showsubmit('deletesubmit', 'del'); showformfooter(); showtablefooter(); } else { if(is_array($_GET['delete'])) { foreach($_GET['delete'] as $filename) { $file_path = '.str_replace(array('/', $filename); if(is_file($file_path)) @unlink($file_path); else { $i = 1; while(1) $file_path = './data/'.
    str_replace(array('/',sql'); if(is_file($file_path)) @unlink($file_path); $i++; else break; } } cpmsg('database_file_delete_succeed', 'succeed'); } else { cpmsg('database_file_delete_invalid', 0); $runquerys = array(); include_once(DISCUZ_ROOT.submitcheck('sqlsubmit')) { $runqueryselect = ''; foreach($simplequeries as $key => $query) if(empty($query['sql'])) $runqueryselect .= ""; else $runqueryselect .= '