Сихронизация с актуальной версией.

This commit is contained in:
2022-08-11 13:38:38 +03:00
parent 9306b5f5d8
commit 6cd7b13db0
315 changed files with 27411 additions and 40772 deletions
+27 -23
View File
@@ -1,27 +1,31 @@
<?php
define('GAME',true);
setlocale(LC_CTYPE ,"ru_RU.CP1251");
include('/home/newcom1/public_html/_incl_data/__config.php');
/** Îïòèìèçèðîâàíî. Õîòÿ íåÿñíî ÷òî ýòî äåëàåò.
* @var PDO $pdo
* @author Insallah
*/
const GAME = true;
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
include('/home/newcom1/public_html/_incl_data/class/__user.php');
$sp = mysql_query('SELECT * FROM `rep` WHERE `repemeraldscity` > 1999 ORDER BY `add_stats` DESC');
//$sp = mysql_query('SELECT * FROM `rep` WHERE `id` =3');
while($pl = mysql_fetch_array($sp))
{
echo 'id:'.$pl['id'].'<br>';
// mysql_query('UPDATE `stats` SET `priemslot` = `priemslot` - '.$pl['add_slot'].', `priems` ="0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|" WHERE `id` ="'.$pl['id'].'"');
mysql_query('UPDATE `rep` SET `nu_capitalcity`=0, `nu_demonscity`=0,`nu_angelscity`=0,`nu_suncity`=0,`nu_dreamscity`=0,`nu_abandonedplain`=0,`nu_sandcity`=0,`nu_emeraldscity`=0, `add_stats`=0,`add_skills`=0,`add_slot`=0 WHERE `id` ="'.$pl['id'].'"');
}
$q = [
'select id from rep where repemeraldscity > 1999 order by add_stats desc',
'update rep set
nu_capitalcity = 0,
nu_demonscity = 0,
nu_angelscity = 0,
nu_suncity = 0,
nu_dreamscity = 0,
nu_abandonedplain = 0,
nu_sandcity = 0,
nu_emeraldscity = 0,
add_stats = 0,
add_skills = 0,
add_slot = 0
where id = ?',
];
// SELECT * FROM `rep` WHERE `repemeraldscity` > 1999 ORDER BY `add_stats` DESC
// rep (`add_stats`,`add_skills`,`add_slot`) `add_stats`,`add_skills`,`add_slot` ===== 0
// stats (`ability`,`skills`,`priemslot`) ability=0 skills?? priemslot-
// (`nu_capitalcity`+`nu_demonscity`+`nu_angelscity`+`nu_suncity`+`nu_dreamscity`+`nu_abandonedplain`+`nu_sandcity`+`nu_emeraldscity`)
?>
$correct = $pdo->prepare($q[1]);
foreach ($pdo->query($q[0]) as $row) {
echo 'id: ' . $row['id'] . '<br>';
$correct->execute($row['id']);
}