12 lines
482 B
PHP
12 lines
482 B
PHP
<?php
|
|
$_SERVER['SERVER_NAME'] = 'new.yurecnt.ru';
|
|
require_once('/home/cloud/core/set/new.yurecnt.ru.php');
|
|
require_once('/home/cloud/core/api/php/db.php');
|
|
$may=DB::getAll('SELECT * FROM `copy`');
|
|
|
|
for ($i=0; $i<count($may); $i++){
|
|
$id=DB::getValue("SELECT `id` FROM `original` WHERE `h`=? AND `vid`=?", array($may[$i]['h'], $may[$i]['vid']));
|
|
|
|
if (!$id)DB::add("INSERT INTO `original` (`h`, `vid`) VALUES(?, ?)", array(trim($may[$i]['h']), trim($may[$i]['vid'])));
|
|
}
|
|
?>
|