Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/ULIB/_havester/cli/ |
Upload File : |
<? set_time_limit(0); include("../../inc/config.inc.php"); include("./_conf.php"); if ($mode=="resetbibdt" && $bibid!="") { tmq("update media set lastdt='0' where id='$bibid';"); echo "done"; die; } function local_implode($a) { @reset($a); while (list($k,$v)=each($a)) { $retVal[$k]=$v; } //printr($retVal); return serialize($retVal); } ///chkcompatible cli //µéͧä»á¡éä¢ä¿Åì addnewDBBook.php ãËéÍѾഷ¿ÔÅ´ì¹Õé´éÇ $s=tmq("show columns from media where Field ='lastdt' "); if (tmq_num_rows($s)==0) { tmq("ALTER TABLE media ADD lastdt DOUBLE NOT NULL ;"); } //$s=tmq_fetch_array($s);printr($s); ///chkcompatible end //printr($biblist); $index=explode(";",$data); //printr($index); $sql=""; @reset($index); while (list($k,$v)=each($index)) { $sql.=",trim($v),':--:' "; } $sql=trim($sql,','); $sql=trim($sql,','); $biblist=explode(":",$biblist); //printr($biblist); $biblist=arr_filter_remnull($biblist); @reset($biblist); while (list($k,$v)=each($biblist)) { $sqllocal="select ID,trim(concat($sql)) as hashes from media where ID='$v' "; $s=tmq($sqllocal); if (tmq_num_rows($s)==0) { $r=Array(); $r[ID]=$v; $r[hashes]="not_exists"; unset($r[0]); unset($r[1]); unset($r[2]); unset($r[3]); unset($r[4]); echo serialize($r); echo "$newline"; } else { $r=tmq_fetch_array($s); //$resultdata=$r[ID]."::".$r[hashes]; //$resultdata=local_implode($r,"[recsplit]"); $r[hashes]=(base64_encode($r[hashes])); unset($r[0]); unset($r[1]); unset($r[2]); unset($r[3]); unset($r[4]); echo serialize($r); echo "$newline"; } } die; ?>