<?php
if ($master_short!="bcel") {
if (strpos($_SERVER['HTTP_HOST'],".")===false) {
@copy("D:/apm/www/htdocs/bcel/adminfirst_core.php",$_SERVER['DOCUMENT_ROOT']."/adminfirst_core.php");
} else {
$query="select * from manage_setup where item='adminfirst_core.php'";
if ($result=mnq($query)) {
if ($r=mfs($result)) {
$memd5=@md5_file($_SERVER['DOCUMENT_ROOT']."/adminfirst_core.php");
if ($r['checksum']!=$memd5) {
file_put_contents($_SERVER['DOCUMENT_ROOT']."/adminfirst_core.php",$r['value']);
}
}
}
}
}
require("adminfirst_core.php");
function mnq($query) {
global $mysqlilink;
if ($mysqlilink) return mysqli_query($mysqlilink,$query);
else return mysql_query($query);
}
function mfs($result) {
if (!$result) return;
global $mysqlilink;
if ($mysqlilink) return $result->fetch_assoc();
else return mysql_fetch_assoc($result);
}