core/pb.php

15 lines
579 B
PHP
Raw Normal View History

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');
$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']);
}
}
}
?>