2023-08-14 14:50:41 +05:00
|
|
|
<?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');
|
2023-08-28 22:47:07 +05:00
|
|
|
$may=DB::getAll('SELECT * FROM `copy`');
|
|
|
|
|
2023-08-14 14:50:41 +05:00
|
|
|
for ($i=0; $i<count($may); $i++){
|
2023-08-28 22:47:07 +05:00
|
|
|
$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'])));
|
2023-08-14 14:50:41 +05:00
|
|
|
}
|
|
|
|
?>
|