@@ -5,8 +5,8 @@ discard block |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | -$opt['rootpath'] = __DIR__ . '/../'; |
|
| 9 | -require $opt['rootpath'] . 'lib2/web.inc.php'; |
|
| 8 | +$opt['rootpath'] = __DIR__.'/../'; |
|
| 9 | +require $opt['rootpath'].'lib2/web.inc.php'; |
|
| 10 | 10 | |
| 11 | 11 | header('Content-type: text/plain; charset=utf-8'); |
| 12 | 12 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | ) { |
| 17 | 17 | $rs = sql('SELECT `user_id`, `email_problems` FROM `user` WHERE `email_problems`'); |
| 18 | 18 | while ($r = sql_fetch_assoc($rs)) { |
| 19 | - echo $r['user_id'] . ' ' . $r['email_problems'] . "\n"; |
|
| 19 | + echo $r['user_id'].' '.$r['email_problems']."\n"; |
|
| 20 | 20 | } |
| 21 | 21 | sql_free_result($rs); |
| 22 | 22 | } |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * replicated system than the XML interface. |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | -$opt['rootpath'] = __DIR__ . '/../'; |
|
| 13 | -require $opt['rootpath'] . 'lib2/web.inc.php'; |
|
| 12 | +$opt['rootpath'] = __DIR__.'/../'; |
|
| 13 | +require $opt['rootpath'].'lib2/web.inc.php'; |
|
| 14 | 14 | |
| 15 | 15 | header('Content-type: text/plain; charset=utf-8'); |
| 16 | 16 | |
@@ -24,5 +24,5 @@ discard block |
||
| 24 | 24 | ); |
| 25 | 25 | $wp_ocs = sql_fetch_column($rs); |
| 26 | 26 | foreach ($wp_ocs as $wp_oc) { |
| 27 | - echo $wp_oc . "\n"; |
|
| 27 | + echo $wp_oc."\n"; |
|
| 28 | 28 | } |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * |
| 14 | 14 | ***************************************************************************/ |
| 15 | 15 | |
| 16 | -$opt['rootpath'] = __DIR__ . '/../'; |
|
| 17 | -require $opt['rootpath'] . 'lib2/web.inc.php'; |
|
| 16 | +$opt['rootpath'] = __DIR__.'/../'; |
|
| 17 | +require $opt['rootpath'].'lib2/web.inc.php'; |
|
| 18 | 18 | |
| 19 | 19 | if (isset($_REQUEST['report']) && $_REQUEST['report']) { |
| 20 | 20 | header('Content-type: text/plain'); |
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | header('Content-type: text/html; charset=utf-8'); |
| 9 | 9 | |
| 10 | -$opt['rootpath'] = __DIR__ . '/../../'; |
|
| 11 | -require $opt['rootpath'] . 'lib2/web.inc.php'; |
|
| 10 | +$opt['rootpath'] = __DIR__.'/../../'; |
|
| 11 | +require $opt['rootpath'].'lib2/web.inc.php'; |
|
| 12 | 12 | |
| 13 | 13 | $bFirstRow = true; |
| 14 | 14 | |
@@ -52,5 +52,5 @@ discard block |
||
| 52 | 52 | // renamed function from "str_getcsv" to avoid collision with PHP 5.3 str_getcsv() |
| 53 | 53 | function strGetCsv($str) |
| 54 | 54 | { |
| 55 | - return '"' . mb_ereg_replace('"', '\"', $str) . '"'; |
|
| 55 | + return '"'.mb_ereg_replace('"', '\"', $str).'"'; |
|
| 56 | 56 | } |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * Unicode Reminder メモ |
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | -require_once __DIR__ . '/lib/common.inc.php'; |
|
| 10 | +require_once __DIR__.'/lib/common.inc.php'; |
|
| 11 | 11 | |
| 12 | 12 | //Preprocessing |
| 13 | 13 | if ($error == false) { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | tpl_set_var( |
| 33 | 33 | 'target', |
| 34 | 34 | htmlspecialchars( |
| 35 | - 'removedesc.php?cacheid=' . urlencode($cache_id) . '&desclang=' . urlencode($desclang), |
|
| 35 | + 'removedesc.php?cacheid='.urlencode($cache_id).'&desclang='.urlencode($desclang), |
|
| 36 | 36 | ENT_COMPAT, |
| 37 | 37 | 'UTF-8' |
| 38 | 38 | ) |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | if (mysql_num_rows($desc_rs) == 1) { |
| 57 | 57 | $desc_record = sql_fetch_array($desc_rs); |
| 58 | 58 | mysql_free_result($desc_rs); |
| 59 | - require $stylepath . '/removedesc.inc.php'; |
|
| 59 | + require $stylepath.'/removedesc.inc.php'; |
|
| 60 | 60 | |
| 61 | 61 | if ($desc_record['node'] != $oc_nodeid) { |
| 62 | 62 | tpl_errorMsg('removedesc', $error_wrong_node); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | // do not use slave server for the next time ... |
| 71 | 71 | db_slave_exclude(); |
| 72 | 72 | |
| 73 | - tpl_redirect('editcache.php?cacheid=' . urlencode($cache_id)); |
|
| 73 | + tpl_redirect('editcache.php?cacheid='.urlencode($cache_id)); |
|
| 74 | 74 | exit; |
| 75 | 75 | } else { |
| 76 | 76 | //commit the removement |
@@ -5,9 +5,9 @@ discard block |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
| 9 | -require_once __DIR__ . '/lib2/translate.class.php'; |
|
| 10 | -require_once __DIR__ . '/lib2/translationHandler.class.php'; |
|
| 8 | +require __DIR__.'/lib2/web.inc.php'; |
|
| 9 | +require_once __DIR__.'/lib2/translate.class.php'; |
|
| 10 | +require_once __DIR__.'/lib2/translationHandler.class.php'; |
|
| 11 | 11 | |
| 12 | 12 | /* config section |
| 13 | 13 | */ |
@@ -249,11 +249,11 @@ discard block |
||
| 249 | 249 | { |
| 250 | 250 | global $opt; |
| 251 | 251 | |
| 252 | - if (!file_exists($opt['rootpath'] . '../sql/static-data/data.sql')) { |
|
| 252 | + if (!file_exists($opt['rootpath'].'../sql/static-data/data.sql')) { |
|
| 253 | 253 | return ''; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - $content = file_get_contents($opt['rootpath'] . '../sql/static-data/data.sql'); |
|
| 256 | + $content = file_get_contents($opt['rootpath'].'../sql/static-data/data.sql'); |
|
| 257 | 257 | |
| 258 | 258 | // at the end is an INSERT of the current checksum |
| 259 | 259 | // to calculate this checksum, we have to trim the end before that statement and the linefeed before |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | sql("DELETE FROM `sys_trans_text` WHERE `trans_id`='&1'", $id); |
| 283 | 283 | sql("DELETE FROM `sys_trans_ref` WHERE `trans_id`='&1'", $id); |
| 284 | 284 | |
| 285 | - $tpl->redirect('translate.php?translang=' . $translang); |
|
| 285 | + $tpl->redirect('translate.php?translang='.$translang); |
|
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | function edit() |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | ); |
| 312 | 312 | } |
| 313 | 313 | sql_free_result($rs); |
| 314 | - $tpl->redirect('translate.php?translang=' . $translang . '&action=edit&id=' . $id); |
|
| 314 | + $tpl->redirect('translate.php?translang='.$translang.'&action=edit&id='.$id); |
|
| 315 | 315 | } else { |
| 316 | 316 | if (isset($_REQUEST['submit'])) { |
| 317 | 317 | $transText = isset($_REQUEST['transText']) ? $_REQUEST['transText'] : ''; |
@@ -347,14 +347,14 @@ discard block |
||
| 347 | 347 | |
| 348 | 348 | // built sql string to search for texts with little difference (levensthein() would be better, but not available in MYSQL) |
| 349 | 349 | $sWhereSql = |
| 350 | - "SOUNDEX('" . sql_escape($r['text']) . "')=SOUNDEX(`sys_trans`.`text`) |
|
| 351 | - OR SOUNDEX('" . sql_escape($r['text']) . "')=SOUNDEX(`sys_trans_text`.`text`)"; |
|
| 350 | + "SOUNDEX('".sql_escape($r['text'])."')=SOUNDEX(`sys_trans`.`text`) |
|
| 351 | + OR SOUNDEX('" . sql_escape($r['text'])."')=SOUNDEX(`sys_trans_text`.`text`)"; |
|
| 352 | 352 | |
| 353 | 353 | $trans = sql( |
| 354 | 354 | "SELECT DISTINCT `sys_trans`.`id`, `sys_trans`.`text` |
| 355 | 355 | FROM `sys_trans` |
| 356 | 356 | INNER JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` |
| 357 | - WHERE `sys_trans`.`id`!='&1' AND (" . $sWhereSql . ")", |
|
| 357 | + WHERE `sys_trans`.`id`!='&1' AND (" . $sWhereSql.")", |
|
| 358 | 358 | $id |
| 359 | 359 | ); |
| 360 | 360 | $tpl->assign_rs('trans', $trans); |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | |
| 388 | 388 | $translationHandler->createMessageFiles(); |
| 389 | 389 | |
| 390 | - $tpl->redirect('translate.php?translang=' . $translang); |
|
| 390 | + $tpl->redirect('translate.php?translang='.$translang); |
|
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | function unlinkFiles($relbasedir, $ext) |
@@ -398,12 +398,12 @@ discard block |
||
| 398 | 398 | $relbasedir .= '/'; |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | - if ($opt['rootpath'] . $relbasedir) { |
|
| 402 | - if ($dh = opendir($opt['rootpath'] . $relbasedir)) { |
|
| 401 | + if ($opt['rootpath'].$relbasedir) { |
|
| 402 | + if ($dh = opendir($opt['rootpath'].$relbasedir)) { |
|
| 403 | 403 | while (($file = readdir($dh)) !== false) { |
| 404 | - if ($file != '.' && $file != '..' && is_file($opt['rootpath'] . $relbasedir . $file)) { |
|
| 405 | - if (substr($file, - (strlen($ext) + 1), strlen($ext) + 1) == '.' . $ext) { |
|
| 406 | - unlink($opt['rootpath'] . $relbasedir . $file); |
|
| 404 | + if ($file != '.' && $file != '..' && is_file($opt['rootpath'].$relbasedir.$file)) { |
|
| 405 | + if (substr($file, - (strlen($ext) + 1), strlen($ext) + 1) == '.'.$ext) { |
|
| 406 | + unlink($opt['rootpath'].$relbasedir.$file); |
|
| 407 | 407 | } |
| 408 | 408 | } |
| 409 | 409 | } |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | $lastId = sql_value("SELECT MAX(`id`) FROM `sys_trans`", 0); |
| 479 | 479 | sql("ALTER TABLE `sys_trans` AUTO_INCREMENT = &1", $lastId + 1); |
| 480 | 480 | |
| 481 | - $tpl->redirect('translate.php?translang=' . $translang); |
|
| 481 | + $tpl->redirect('translate.php?translang='.$translang); |
|
| 482 | 482 | } |
| 483 | 483 | |
| 484 | 484 | function useId($freeId) |
@@ -500,9 +500,9 @@ discard block |
||
| 500 | 500 | |
| 501 | 501 | foreach ($transIdCols as $col) { |
| 502 | 502 | sql( |
| 503 | - "UPDATE `" . $col['table'] . "` |
|
| 504 | - SET `" . $col['trans_id'] . "`='&1' |
|
| 505 | - WHERE `" . $col['trans_id'] . "`='&2'", |
|
| 503 | + "UPDATE `".$col['table']."` |
|
| 504 | + SET `" . $col['trans_id']."`='&1' |
|
| 505 | + WHERE `" . $col['trans_id']."`='&2'", |
|
| 506 | 506 | $newId, |
| 507 | 507 | $oldId |
| 508 | 508 | ); |
@@ -513,9 +513,9 @@ discard block |
||
| 513 | 513 | { |
| 514 | 514 | global $opt, $tpl, $translang; |
| 515 | 515 | |
| 516 | - $structure = enumSqlFiles($opt['rootpath'] . '../sql/tables'); |
|
| 516 | + $structure = enumSqlFiles($opt['rootpath'].'../sql/tables'); |
|
| 517 | 517 | foreach ($structure AS $sTable) { |
| 518 | - sql_export_structure_to_file($opt['rootpath'] . '../sql/tables/' . $sTable . '.sql', $sTable); |
|
| 518 | + sql_export_structure_to_file($opt['rootpath'].'../sql/tables/'.$sTable.'.sql', $sTable); |
|
| 519 | 519 | } |
| 520 | 520 | |
| 521 | 521 | // static data tables |
@@ -551,21 +551,21 @@ discard block |
||
| 551 | 551 | $stab[] = 'towns'; |
| 552 | 552 | $stab[] = 'watches_waitingtypes'; |
| 553 | 553 | |
| 554 | - sql_export_tables_to_file($opt['rootpath'] . '../sql/static-data/data.sql', $stab); |
|
| 554 | + sql_export_tables_to_file($opt['rootpath'].'../sql/static-data/data.sql', $stab); |
|
| 555 | 555 | |
| 556 | 556 | $checksum = calcDataSqlChecksum(false); |
| 557 | - $f = fopen($opt['rootpath'] . '../sql/static-data/data.sql', 'a'); |
|
| 557 | + $f = fopen($opt['rootpath'].'../sql/static-data/data.sql', 'a'); |
|
| 558 | 558 | fwrite( |
| 559 | 559 | $f, |
| 560 | 560 | "INSERT INTO `sysconfig` (`name`, `value`)" |
| 561 | - . " VALUES ('datasql_checksum', '" . sql_escape($checksum) . "')" |
|
| 562 | - . " ON DUPLICATE KEY UPDATE `value`='" . sql_escape($checksum) . "';\n" |
|
| 561 | + . " VALUES ('datasql_checksum', '".sql_escape($checksum)."')" |
|
| 562 | + . " ON DUPLICATE KEY UPDATE `value`='".sql_escape($checksum)."';\n" |
|
| 563 | 563 | ); |
| 564 | 564 | fclose($f); |
| 565 | 565 | |
| 566 | 566 | setSysConfig('datasql_checksum', $checksum); |
| 567 | 567 | |
| 568 | - $tpl->redirect('translate.php?translang=' . $translang); |
|
| 568 | + $tpl->redirect('translate.php?translang='.$translang); |
|
| 569 | 569 | } |
| 570 | 570 | |
| 571 | 571 | function enumSqlFiles($dir) |
@@ -594,9 +594,9 @@ discard block |
||
| 594 | 594 | $hDir = opendir($dir); |
| 595 | 595 | if ($hDir !== false) { |
| 596 | 596 | while (($file = readdir($hDir)) !== false) { |
| 597 | - if (is_file($dir . '/' . $file)) { |
|
| 597 | + if (is_file($dir.'/'.$file)) { |
|
| 598 | 598 | if ((substr($file, - 4) == '.tpl') || (substr($file, - 4) == '.php')) { |
| 599 | - $files[] = $dir . '/' . $file; |
|
| 599 | + $files[] = $dir.'/'.$file; |
|
| 600 | 600 | } |
| 601 | 601 | } |
| 602 | 602 | } |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | $writer->writeAttribute('id', $r['id']); |
| 691 | 691 | |
| 692 | 692 | $writer->writeElement('code', $r['text']); |
| 693 | - for ($n = 0; $n < count($lang); $n ++) { |
|
| 693 | + for ($n = 0; $n < count($lang); $n++) { |
|
| 694 | 694 | $writer->writeElement( |
| 695 | 695 | $lang[$n], |
| 696 | 696 | sql_value( |
@@ -712,9 +712,9 @@ discard block |
||
| 712 | 712 | while ($rUsage = sql_fetch_assoc($rsUsage)) { |
| 713 | 713 | $line = ''; |
| 714 | 714 | if ($rUsage['line'] != 0) { |
| 715 | - $line = ' (' . $rUsage['line'] . ')'; |
|
| 715 | + $line = ' ('.$rUsage['line'].')'; |
|
| 716 | 716 | } |
| 717 | - $writer->writeElement('usage', $rUsage['resource_name'] . $line); |
|
| 717 | + $writer->writeElement('usage', $rUsage['resource_name'].$line); |
|
| 718 | 718 | } |
| 719 | 719 | sql_free_result($rsUsage); |
| 720 | 720 | |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | |
| 739 | 739 | $scanlang = []; |
| 740 | 740 | foreach ($opt['locale'] AS $k => $v) { |
| 741 | - if (isset($_REQUEST['lang' . $k]) && ($_REQUEST['lang' . $k] == '1')) { |
|
| 741 | + if (isset($_REQUEST['lang'.$k]) && ($_REQUEST['lang'.$k] == '1')) { |
|
| 742 | 742 | $scanlang[] = $k; |
| 743 | 743 | } |
| 744 | 744 | } |
@@ -818,15 +818,15 @@ discard block |
||
| 818 | 818 | |
| 819 | 819 | $nCount = isset($_REQUEST['count']) ? $_REQUEST['count'] + 0 : 0; |
| 820 | 820 | |
| 821 | - for ($nIndex = 1; $nIndex <= $nCount; $nIndex ++) { |
|
| 822 | - if (isset($_REQUEST['useitem' . $nIndex]) && ($_REQUEST['useitem' . $nIndex] == '1')) { |
|
| 823 | - $sCode = base64_decode($_REQUEST['code' . $nIndex]); |
|
| 821 | + for ($nIndex = 1; $nIndex <= $nCount; $nIndex++) { |
|
| 822 | + if (isset($_REQUEST['useitem'.$nIndex]) && ($_REQUEST['useitem'.$nIndex] == '1')) { |
|
| 823 | + $sCode = base64_decode($_REQUEST['code'.$nIndex]); |
|
| 824 | 824 | $transId = sql_value("SELECT `id` FROM `sys_trans` WHERE `text`='&1'", 0, $sCode); |
| 825 | 825 | |
| 826 | 826 | if ($transId != 0) { |
| 827 | 827 | foreach ($opt['locale'] AS $k => $v) { |
| 828 | - if (isset($_REQUEST[$k . $nIndex . 'new'])) { |
|
| 829 | - $sText = base64_decode($_REQUEST[$k . $nIndex . 'new']); |
|
| 828 | + if (isset($_REQUEST[$k.$nIndex.'new'])) { |
|
| 829 | + $sText = base64_decode($_REQUEST[$k.$nIndex.'new']); |
|
| 830 | 830 | |
| 831 | 831 | sql( |
| 832 | 832 | "INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`) |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | } |
| 843 | 843 | } |
| 844 | 844 | |
| 845 | - $tpl->redirect('translate.php?translang=' . $translang); |
|
| 845 | + $tpl->redirect('translate.php?translang='.$translang); |
|
| 846 | 846 | } |
| 847 | 847 | |
| 848 | 848 | function textexport($translang, $all) |
@@ -872,9 +872,9 @@ discard block |
||
| 872 | 872 | $translang |
| 873 | 873 | ); |
| 874 | 874 | if (($all) || (mb_strlen($translated) == 0)) { |
| 875 | - $thisline = $r['id'] . "\r\n"; |
|
| 876 | - $thisline .= $r['text'] . "\r\n"; |
|
| 877 | - $thisline .= $translated . "\r\n"; |
|
| 875 | + $thisline = $r['id']."\r\n"; |
|
| 876 | + $thisline .= $r['text']."\r\n"; |
|
| 877 | + $thisline .= $translated."\r\n"; |
|
| 878 | 878 | $thisline .= "\r\n"; |
| 879 | 879 | echo($thisline); |
| 880 | 880 | } |
@@ -1010,8 +1010,8 @@ discard block |
||
| 1010 | 1010 | } |
| 1011 | 1011 | |
| 1012 | 1012 | while (($file = readdir($hDir)) !== false) { |
| 1013 | - if ($file != '.' && $file != '..' && is_dir($basedir . $file)) { |
|
| 1014 | - addClassesDirectoriesToDirlist($basedir . $file); |
|
| 1013 | + if ($file != '.' && $file != '..' && is_dir($basedir.$file)) { |
|
| 1014 | + addClassesDirectoriesToDirlist($basedir.$file); |
|
| 1015 | 1015 | } |
| 1016 | 1016 | } |
| 1017 | 1017 | closedir($hDir); |
@@ -1026,9 +1026,9 @@ discard block |
||
| 1026 | 1026 | if (!isset($col['verify']) || $col['verify']) { |
| 1027 | 1027 | $rs = sql( |
| 1028 | 1028 | "SELECT |
| 1029 | - `" . $col['text'] . "` `text`, |
|
| 1030 | - `" . $col['trans_id'] . "` `trans_id` |
|
| 1031 | - FROM `" . $col['table'] . "`" |
|
| 1029 | + `" . $col['text']."` `text`, |
|
| 1030 | + `" . $col['trans_id']."` `trans_id` |
|
| 1031 | + FROM `" . $col['table']."`" |
|
| 1032 | 1032 | ); |
| 1033 | 1033 | while ($r = sql_fetch_assoc($rs)) { |
| 1034 | 1034 | $st = sql_value( |
@@ -1048,7 +1048,7 @@ discard block |
||
| 1048 | 1048 | if ($en != $r['text'] || $st != $r['text']) { |
| 1049 | 1049 | $inconsistencies[] = [ |
| 1050 | 1050 | 'id' => $r['trans_id'], |
| 1051 | - 'col' => $col['table'] . '.' . $col['text'], |
|
| 1051 | + 'col' => $col['table'].'.'.$col['text'], |
|
| 1052 | 1052 | 'org_text' => $r['text'], |
| 1053 | 1053 | 'sys_trans' => $st, |
| 1054 | 1054 | 'en_text' => $en, |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | header('Content-type: text/html; charset=utf-8'); |
| 9 | 9 | |
| 10 | 10 | $opt['rootpath'] = '../../'; |
| 11 | -require $opt['rootpath'] . 'lib2/web.inc.php'; |
|
| 11 | +require $opt['rootpath'].'lib2/web.inc.php'; |
|
| 12 | 12 | |
| 13 | 13 | $n = 1; |
| 14 | 14 | $rs = sql('SELECT `user`.`username`, `stat_user`.`found` |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | ORDER BY `stat_user`.`found` DESC |
| 19 | 19 | LIMIT 100'); |
| 20 | 20 | while ($r = sql_fetch_assoc($rs)) { |
| 21 | - echo $n . ' ' . $r['username'] . ': ' . $r['found'] . "\n"; |
|
| 22 | - $n ++; |
|
| 21 | + echo $n.' '.$r['username'].': '.$r['found']."\n"; |
|
| 22 | + $n++; |
|
| 23 | 23 | } |
| 24 | 24 | sql_free_result($rs); |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | header('Content-type: text/html; charset=utf-8'); |
| 9 | 9 | |
| 10 | 10 | $opt['rootpath'] = '../../'; |
| 11 | -require $opt['rootpath'] . 'lib2/web.inc.php'; |
|
| 11 | +require $opt['rootpath'].'lib2/web.inc.php'; |
|
| 12 | 12 | |
| 13 | 13 | echo "<h2>Top-Owner</h2>\n"; |
| 14 | 14 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | FROM `caches` |
| 29 | 29 | LEFT JOIN `user` ON `user`.`user_id`=`caches`.`user_id` |
| 30 | 30 | LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=6 |
| 31 | - WHERE status=1 AND " . $condition . " |
|
| 31 | + WHERE status=1 AND " . $condition." |
|
| 32 | 32 | GROUP BY `caches`.`user_id` |
| 33 | 33 | HAVING COUNT(*) >= $limit |
| 34 | 34 | ORDER BY COUNT(*) DESC" |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | $n = 1; |
| 38 | 38 | while ($r = sql_fetch_assoc($rs)) { |
| 39 | - echo " <tr><td style='text-align:right'> " . ($n ++) . ". </td><td style='text-align:right'>" . $r['count'] . "</td><td> " . $r['name'] . "</td></tr>\n"; |
|
| 39 | + echo " <tr><td style='text-align:right'> ".($n++).". </td><td style='text-align:right'>".$r['count']."</td><td> ".$r['name']."</td></tr>\n"; |
|
| 40 | 40 | } |
| 41 | 41 | sql_free_result($rs); |
| 42 | 42 | |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | ***************************************************************************/ |
| 13 | 13 | |
| 14 | 14 | $opt['rootpath'] = '../../'; |
| 15 | -require_once $opt['rootpath'] . 'lib2/cli.inc.php'; |
|
| 16 | -require_once $opt['rootpath'] . 'lib2/logic/user.class.php'; |
|
| 15 | +require_once $opt['rootpath'].'lib2/cli.inc.php'; |
|
| 16 | +require_once $opt['rootpath'].'lib2/logic/user.class.php'; |
|
| 17 | 17 | |
| 18 | 18 | $login->admin = ADMIN_USER; |
| 19 | 19 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | $n = 0; |
| 26 | 26 | while ($r = sql_fetch_assoc($rs)) { |
| 27 | - echo "purging content of user '" . $r['username'] . "'\n"; |
|
| 27 | + echo "purging content of user '".$r['username']."'\n"; |
|
| 28 | 28 | |
| 29 | 29 | $user = new user($r['user_id']); |
| 30 | 30 | $result = $user->disduelicense(true); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | die($result); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - ++ $n; |
|
| 35 | + ++$n; |
|
| 36 | 36 | } |
| 37 | 37 | sql_free_result($rs); |
| 38 | 38 | |