function clrpckr_js_r() { $f = '../js/colorpicker/'; Head::add('csslink', $f . 'css/colorpicker.css'); Head::add('csslink', $f . 'css/layout.css'); Head::add('csslink', $f . 'js/jquery.js'); Head::add('jslink', $f . 'js/colorpicker.js'); Head::add('jslink', $f . 'js/eye.js'); Head::add('jslink', '../' . prog() . '/ajx.js'); Head::add('jslink', '../' . prog() . '/utils.js'); Head::add('jscode', clrpckr_layout()); }
//get table of source database $result2 = $conn2->query("show tables;"); if ($result2->num_rows != 0) { for ($i = 0; $i < $result2->num_rows; $i++) { $row2 = $result2->fetch_assoc(); $table[$i] = $row2['Tables_in_' . $database2]; } } //copy tables from source to destination for ($i = 0; $i < count($table); $i++) { $sql = 'drop table ' . $database1 . '.' . $table[$i] . ';'; $conn2->query($sql); } //copy tables from source to destination for ($i = 0; $i < count($table); $i++) { prog($i / (count($table) - 1) * 100); //creating table in destination database from source $sql = 'create table ' . $database1 . '.' . $table[$i] . ' like ' . $database2 . '.' . $table[$i] . ';'; $conn2->query($sql); //copying data in destination table of database from source table $sql = 'insert into ' . $database1 . '.' . $table[$i] . ' select * from ' . $database2 . '.' . $table[$i] . ';'; $conn2->query($sql); } $conn2->close(); echo "success"; } else { echo "error"; } function prog($prg) { $myfile = fopen("prog.txt", "w") or die("Unable to open file!");
<?php //philum_system //income:$g;$aqb;$db //tests(); #Boot $cache = ''; secure_inputs(); $_SESSION['stime'] = $stime; $_SESSION['dayx'] = time(); //if($_GET['rl']=='=' && $_SESSION['sbdm'])//good_subdom // relod(subdom($_GET['id']).'/'.$_GET['id'].'/logon'); if (!$_SESSION['qb'] or !$_SESSION['qd'] or !$_SESSION['qda'] or $_GET['qd'] or $_GET['id'] && $_GET['id'] != 'imgc/' or $_GET['nbj'] or !$_SESSION['mods'] or $_GET['refresh']) { $cache = 'ok'; reset_ses(); prog($g, 1); } if ($_GET['dev']) { $_SESSION['dev'] = $_GET['dev']; relod('/reload'); } //master_params if (!$_SESSION['qd'] or $cache) { master_params('params/_' . $db, $qd, $aqb, $subd); } if (!$_SESSION['philum']) { $_SESSION['philum'] = msql_read('system', 'program_version', 1); } //philum date_default_timezone_set(prms('timez')); if ($_SESSION['dev']) {
function req($d, $j = '') { $r = explode(',', $d); $n = count($r); $g = prog(); //if($j) for ($i = 0; $i < $n; $i++) { require_once root() . $g . $r[$i] . '.php'; } }