15 lines
579 B
PHP
15 lines
579 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 `txt` FROM `may`');
|
|
$original=DB::getAll('SELECT `id`, `txt` FROM `original`');
|
|
for ($i=0; $i<count($may); $i++){
|
|
for ($j=0; $j<count($original); $j++){
|
|
if (trim($may[$i]['txt'])==trim($original[$j]['txt'])){
|
|
echo $original[$j]['id'] . ' ' . $original[$j]['txt'] . "\n";
|
|
DB::set("DELETE FROM `original` WHERE `id`=?", $original[$j]['id']);
|
|
}
|
|
}
|
|
}
|
|
?>
|