@@ -28,7 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | sql_free_result($rs); |
| 30 | 30 | |
| 31 | - $this->cleanup_slave(- 1); |
|
| 31 | + $this->cleanup_slave(-1); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function cleanup_slave($slaveId) |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | $opt['locale']['DE']['page']['license'] = '<a rel="license" href="%1"><img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="resource2/ocstyle/images/media/cc-by-nc-nd-small.png" /></a><div style="text-align:center; margin:8px 0 0 6px;">Die <a href="articles.php?page=impressum#datalicense">Inhalte</a> von {site} stehen unter der Creative-Commons-Lizenz <a rel="license" href="%1">BY-NC-ND 3.0 DE</a>.</div>'; |
| 142 | 142 | $opt['locale']['DE']['helpwiki'] = 'http://wiki.opencaching.de/index.php/'; |
| 143 | 143 | $opt['locale']['DE']['mostly_translated'] = true; |
| 144 | -$opt['locale']['DE']['what3words'] = true; // "beta" |
|
| 144 | +$opt['locale']['DE']['what3words'] = true; // "beta" |
|
| 145 | 145 | |
| 146 | 146 | $opt['locale']['IT']['format']['dateshort'] = '%d/%m/%y'; |
| 147 | 147 | $opt['locale']['IT']['format']['dm'] = '%d/%m'; |
@@ -7,10 +7,10 @@ |
||
| 7 | 7 | * common constant definitions of lib1 and lib2 |
| 8 | 8 | ***************************************************************************/ |
| 9 | 9 | |
| 10 | -define('GUI_HTML', 0); // also defined in lib/consts.inc.php |
|
| 10 | +define('GUI_HTML', 0); // also defined in lib/consts.inc.php |
|
| 11 | 11 | define('GUI_TEXT', 1); |
| 12 | 12 | |
| 13 | -define('HTTPS_DISABLED', 0); // also defined in lib/consts.inc.php |
|
| 13 | +define('HTTPS_DISABLED', 0); // also defined in lib/consts.inc.php |
|
| 14 | 14 | define('HTTPS_ENABLED', 1); |
| 15 | 15 | define('HTTPS_ENFORCED', 2); |
| 16 | 16 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | // database names |
| 20 | 20 | $dbname = 'opencaching'; |
| 21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
| 21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
| 22 | 22 | |
| 23 | 23 | // common developer system settings |
| 24 | 24 | require 'settings-dev.inc.php'; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | #!/usr/bin/php -q |
| 2 | 2 | <?php |
| 3 | - /*************************************************************************** |
|
| 3 | + /*************************************************************************** |
|
| 4 | 4 | * For license information see doc/license.txt |
| 5 | 5 | * |
| 6 | 6 | * Unicode Reminder メモ |
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | * Load current stored procs and triggers into database. |
| 9 | 9 | ***************************************************************************/ |
| 10 | 10 | |
| 11 | -$opt['rootpath'] = __DIR__ . '/../../../'; |
|
| 12 | -require $opt['rootpath'] . 'lib2/cli.inc.php'; |
|
| 11 | +$opt['rootpath'] = __DIR__.'/../../../'; |
|
| 12 | +require $opt['rootpath'].'lib2/cli.inc.php'; |
|
| 13 | 13 | |
| 14 | 14 | if ($opt['db']['maintenance_user'] == '') { |
| 15 | 15 | die("ERROR: \$opt['db']['maintenance_user'] is not set in config2/settings.inc.php\n"); |
@@ -18,10 +18,10 @@ discard block |
||
| 18 | 18 | // retrieve DB password |
| 19 | 19 | if ($opt['db']['maintenance_password'] == '') { |
| 20 | 20 | if (in_array('--flush', $argv)) { |
| 21 | - echo "\nenter DB " . $opt['db']['maintenance_user'] . " password:\n"; |
|
| 21 | + echo "\nenter DB ".$opt['db']['maintenance_user']." password:\n"; |
|
| 22 | 22 | flush(); |
| 23 | 23 | } else { |
| 24 | - echo 'enter DB ' . $opt['db']['maintenance_user'] . ' password: '; |
|
| 24 | + echo 'enter DB '.$opt['db']['maintenance_user'].' password: '; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | $fh = fopen('php://stdin', 'r'); |
@@ -44,13 +44,13 @@ discard block |
||
| 44 | 44 | // include the requested maintain version file |
| 45 | 45 | $dbsv = in_array('--dbsv', $argv); |
| 46 | 46 | if ($dbsv) { |
| 47 | - $versionfile = 'maintain-' . $argv[$dbsv + 1] . '.inc.php'; |
|
| 48 | - if (!file_exists(__DIR__ . '/' . $versionfile)) { |
|
| 49 | - die($versionfile . " not found\n"); |
|
| 47 | + $versionfile = 'maintain-'.$argv[$dbsv + 1].'.inc.php'; |
|
| 48 | + if (!file_exists(__DIR__.'/'.$versionfile)) { |
|
| 49 | + die($versionfile." not found\n"); |
|
| 50 | 50 | } else { |
| 51 | 51 | require $versionfile; |
| 52 | 52 | } |
| 53 | - @unlink($opt['rootpath'] . 'cache2/dbsv-running'); |
|
| 53 | + @unlink($opt['rootpath'].'cache2/dbsv-running'); |
|
| 54 | 54 | } else { |
| 55 | 55 | require 'maintain-current.inc.php'; |
| 56 | 56 | } |
@@ -88,8 +88,9 @@ |
||
| 88 | 88 | $tpl->assign('coordW3W2', $coord->getW3W($w3w_langs[1])); |
| 89 | 89 | $lang2_name = sql_value("SELECT `name` FROM `languages` WHERE `short`='&1'", '', $w3w_langs[1]); |
| 90 | 90 | $tpl->assign('W3Wlang2', $translate->t($lang2_name, '', '', 0)); |
| 91 | -} else |
|
| 91 | +} else { |
|
| 92 | 92 | $tpl->assign('coordW3W2', false); |
| 93 | +} |
|
| 93 | 94 | |
| 94 | 95 | // wp gesetzt? |
| 95 | 96 | $wp = isset($_REQUEST['wp']) ? $_REQUEST['wp'] : ''; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | * Unicode Reminder メモ |
| 6 | 6 | ***************************************************************************/ |
| 7 | 7 | |
| 8 | -require __DIR__ . '/lib2/web.inc.php'; |
|
| 8 | +require __DIR__.'/lib2/web.inc.php'; |
|
| 9 | 9 | |
| 10 | 10 | $tpl->name = 'event_attendance'; |
| 11 | 11 | $tpl->popup = true; |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | "SELECT COUNT(*) |
| 102 | 102 | FROM `" . $table . "` |
| 103 | 103 | WHERE " . $this->getDateCondition($table, $dateField) . |
| 104 | - ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
| 104 | + ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
| 105 | 105 | 0 |
| 106 | 106 | ); |
| 107 | 107 | self::message(1, $objectCount . ' ' . $description); |
@@ -16,25 +16,25 @@ discard block |
||
| 16 | 16 | * Unicode Reminder メモ |
| 17 | 17 | ***************************************************************************/ |
| 18 | 18 | |
| 19 | -$opt['rootpath'] = __DIR__ . '/../../htdocs/'; |
|
| 20 | -require $opt['rootpath'] . 'lib2/cli.inc.php'; |
|
| 19 | +$opt['rootpath'] = __DIR__.'/../../htdocs/'; |
|
| 20 | +require $opt['rootpath'].'lib2/cli.inc.php'; |
|
| 21 | 21 | |
| 22 | 22 | if ($argc < 3 || $argc > 4) { |
| 23 | 23 | die( |
| 24 | - "usage: php email_recovery.php \"from-datetime\" \"to-datetime\" [option]\n" . |
|
| 25 | - "\n" . |
|
| 26 | - " Datetimes must be in YYYY-MM-DD HH:MM:SS format and are inclusive.\n" . |
|
| 27 | - "\n" . |
|
| 28 | - "options: <none> show information about all lost information\n" . |
|
| 29 | - " watchlist resend log notifications\n" . |
|
| 30 | - " newcaches resend new caches notifications\n" . |
|
| 24 | + "usage: php email_recovery.php \"from-datetime\" \"to-datetime\" [option]\n". |
|
| 25 | + "\n". |
|
| 26 | + " Datetimes must be in YYYY-MM-DD HH:MM:SS format and are inclusive.\n". |
|
| 27 | + "\n". |
|
| 28 | + "options: <none> show information about all lost information\n". |
|
| 29 | + " watchlist resend log notifications\n". |
|
| 30 | + " newcaches resend new caches notifications\n". |
|
| 31 | 31 | " registrations resend activation codes\n" |
| 32 | 32 | ); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $er = new EmailRecovery($argv[1], $argv[2], $errormsg); |
| 36 | 36 | if ($errormsg != '') { |
| 37 | - die($errormsg . "\n"); |
|
| 37 | + die($errormsg."\n"); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if ($argc < 4) { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $er->resendActivationCodes(); |
| 53 | 53 | break; |
| 54 | 54 | default: |
| 55 | - die('invalid option: '. $option . "\n"); |
|
| 55 | + die('invalid option: '.$option."\n"); |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
@@ -65,9 +65,9 @@ discard block |
||
| 65 | 65 | public function __construct($fromDT, $toDT, &$errormsg) |
| 66 | 66 | { |
| 67 | 67 | if (!self::verifyDateTime($fromDT)) { |
| 68 | - $errormsg = 'invalid from-datetime (must be SQL format): "' . $fromDT . '"'; |
|
| 68 | + $errormsg = 'invalid from-datetime (must be SQL format): "'.$fromDT.'"'; |
|
| 69 | 69 | } elseif (!self::verifyDateTime($toDT)) { |
| 70 | - $errormsg = 'invalid from-datetime (must be SQL format): "' . $toDT . '"'; |
|
| 70 | + $errormsg = 'invalid from-datetime (must be SQL format): "'.$toDT.'"'; |
|
| 71 | 71 | } else { |
| 72 | 72 | $this->fromDateTime = $fromDT; |
| 73 | 73 | $this->toDateTime = $toDT; |
@@ -85,26 +85,26 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | private static function message($level, $text) |
| 87 | 87 | { |
| 88 | - echo str_repeat(' ', 2 * $level) . $text . "\n"; |
|
| 88 | + echo str_repeat(' ', 2 * $level).$text."\n"; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | private function getDateCondition($table, $field) |
| 92 | 92 | { |
| 93 | 93 | return |
| 94 | - "`" . $table . "`.`" . $field . "` >= '" . sql_escape($this->fromDateTime) . "'" . |
|
| 95 | - " AND `" . $table . "`.`" . $field . "` <= '" . sql_escape($this->toDateTime) . "'"; |
|
| 94 | + "`".$table."`.`".$field."` >= '".sql_escape($this->fromDateTime)."'". |
|
| 95 | + " AND `".$table."`.`".$field."` <= '".sql_escape($this->toDateTime)."'"; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | private function showObjectCount($table, $dateField, $description, $andWhere = '') |
| 99 | 99 | { |
| 100 | 100 | $objectCount = sql_value( |
| 101 | 101 | "SELECT COUNT(*) |
| 102 | - FROM `" . $table . "` |
|
| 103 | - WHERE " . $this->getDateCondition($table, $dateField) . |
|
| 104 | - ($andWhere ? ' AND (' . $andWhere . ')' : ''), |
|
| 102 | + FROM `" . $table."` |
|
| 103 | + WHERE " . $this->getDateCondition($table, $dateField). |
|
| 104 | + ($andWhere ? ' AND ('.$andWhere.')' : ''), |
|
| 105 | 105 | 0 |
| 106 | 106 | ); |
| 107 | - self::message(1, $objectCount . ' ' . $description); |
|
| 107 | + self::message(1, $objectCount.' '.$description); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | |
@@ -153,16 +153,16 @@ discard block |
||
| 153 | 153 | JOIN `user` `user1` ON `user1`.`user_id` = `cache_logs_archived`.`user_id` |
| 154 | 154 | JOIN `user` `user2` ON `user2`.`user_id` = `cache_logs_archived`.`deleted_by` |
| 155 | 155 | JOIN `caches` ON `caches`.`cache_id` = `cache_logs_archived`.`cache_id` |
| 156 | - WHERE " . $this->getDateCondition('cache_logs_archived', 'deletion_date') . " |
|
| 156 | + WHERE " . $this->getDateCondition('cache_logs_archived', 'deletion_date')." |
|
| 157 | 157 | ORDER BY `cache_logs_archived`.`deletion_date` DESC" |
| 158 | 158 | ); |
| 159 | 159 | while ($r = sql_fetch_assoc($rs)) { |
| 160 | 160 | self::message( |
| 161 | 161 | 2, |
| 162 | 162 | $r['wp_oc'] |
| 163 | - . ' logged:' . $r['logdate'] |
|
| 164 | - . ' logger:' . $r['logger_name'] |
|
| 165 | - . ' deleter:' . $r['deleter_name'] |
|
| 163 | + . ' logged:'.$r['logdate'] |
|
| 164 | + . ' logger:'.$r['logger_name'] |
|
| 165 | + . ' deleter:'.$r['deleter_name'] |
|
| 166 | 166 | ); |
| 167 | 167 | } |
| 168 | 168 | sql_free_result($rs); |
@@ -175,12 +175,12 @@ discard block |
||
| 175 | 175 | `username` |
| 176 | 176 | FROM `user` |
| 177 | 177 | WHERE " . |
| 178 | - $this->getDateCondition('user', 'date_created') . " |
|
| 178 | + $this->getDateCondition('user', 'date_created')." |
|
| 179 | 179 | AND last_login IS NULL AND `activation_code` <> '' |
| 180 | 180 | ORDER BY `date_created` DESC" |
| 181 | 181 | ); |
| 182 | 182 | while ($r = sql_fetch_assoc($rs)) { |
| 183 | - self::message(2, $r['registration_date'] . ' ' . $r['username']); |
|
| 183 | + self::message(2, $r['registration_date'].' '.$r['username']); |
|
| 184 | 184 | } |
| 185 | 185 | sql_free_result($rs); |
| 186 | 186 | |
@@ -192,11 +192,11 @@ discard block |
||
| 192 | 192 | `user`.`username` `sender_name` |
| 193 | 193 | FROM `email_user` |
| 194 | 194 | JOIN `user` ON `user`.`user_id` = `email_user`.`from_user_id` |
| 195 | - WHERE " . $this->getDateCondition('email_user', 'date_created') . " |
|
| 195 | + WHERE " . $this->getDateCondition('email_user', 'date_created')." |
|
| 196 | 196 | ORDER BY `email_user`.`date_created` DESC" |
| 197 | 197 | ); |
| 198 | 198 | while ($r = sql_fetch_assoc($rs)) { |
| 199 | - self::message(2, $r['emaildate'] . ' from:' . $r['sender_name']); |
|
| 199 | + self::message(2, $r['emaildate'].' from:'.$r['sender_name']); |
|
| 200 | 200 | } |
| 201 | 201 | sql_free_result($rs); |
| 202 | 202 | } |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | JOIN `cache_status` ON `cache_status`.`id` = `caches`.`status` |
| 233 | 233 | JOIN `cache_watches` ON `cache_watches`.`cache_id` = `caches`.`cache_id` |
| 234 | 234 | WHERE |
| 235 | - " . $this->getDateCondition('cache_logs', 'date_created') . " |
|
| 235 | + " . $this->getDateCondition('cache_logs', 'date_created')." |
|
| 236 | 236 | AND `cache_status`.`allow_user_view` = 1" |
| 237 | 237 | ); |
| 238 | 238 | $watcher_notifications = sql_affected_rows(); |
@@ -247,13 +247,13 @@ discard block |
||
| 247 | 247 | JOIN `cache_list_items` ON `cache_list_items`.`cache_id` = `cache_logs`.`cache_id` |
| 248 | 248 | JOIN `cache_list_watches` ON `cache_list_watches`.`cache_list_id` = `cache_list_items`.`cache_list_id` |
| 249 | 249 | WHERE |
| 250 | - " . $this->getDateCondition('cache_logs', 'date_created') . " |
|
| 250 | + " . $this->getDateCondition('cache_logs', 'date_created')." |
|
| 251 | 251 | AND `cache_status`.`allow_user_view` = 1" |
| 252 | 252 | ); |
| 253 | 253 | $watcher_notifications += sql_affected_rows(); |
| 254 | 254 | |
| 255 | - self::message(0, $owner_notifications . ' owners will be notified'); |
|
| 256 | - self::message(0, $watcher_notifications . ' watchers will be notified'); |
|
| 255 | + self::message(0, $owner_notifications.' owners will be notified'); |
|
| 256 | + self::message(0, $watcher_notifications.' watchers will be notified'); |
|
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | public function resendCacheNotifications() |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | FROM `caches` |
| 266 | 266 | JOIN `cache_status` ON `cache_status`.`id` = `caches`.`status` |
| 267 | 267 | WHERE |
| 268 | - " . $this->getDateCondition('caches', 'date_created') . " |
|
| 268 | + " . $this->getDateCondition('caches', 'date_created')." |
|
| 269 | 269 | AND `cache_status`.`allow_user_view` = 1" |
| 270 | 270 | ); |
| 271 | 271 | while ($r = sql_fetch_assoc($rs)) { |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | |
| 281 | 281 | $new_notifications = |
| 282 | 282 | sql_value("SELECT COUNT(*) FROM `notify_waiting`", 0) - $notifies_wating; |
| 283 | - self::message(0, $new_notifications . ' new cache notifications will be sent'); |
|
| 283 | + self::message(0, $new_notifications.' new cache notifications will be sent'); |
|
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | public function resendActivationCodes() |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | "SELECT `user_id` |
| 290 | 290 | FROM `user` |
| 291 | 291 | WHERE |
| 292 | - " . $this->getDateCondition('user', 'date_created') . " |
|
| 292 | + " . $this->getDateCondition('user', 'date_created')." |
|
| 293 | 293 | AND last_login IS NULL |
| 294 | 294 | AND `activation_code` <> ''" |
| 295 | 295 | ); |
@@ -297,10 +297,10 @@ discard block |
||
| 297 | 297 | while ($r = sql_fetch_assoc($rs)) { |
| 298 | 298 | $user = new user($r['user_id']); |
| 299 | 299 | $user->sendRegistrationCode(); |
| 300 | - ++ $n; |
|
| 300 | + ++$n; |
|
| 301 | 301 | } |
| 302 | 302 | sql_free_result($rs); |
| 303 | - self::message(0, $n . ' users have been re-sent the activation code'); |
|
| 303 | + self::message(0, $n.' users have been re-sent the activation code'); |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | } |
@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | return $this->userCountry; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $userCountry |
|
| 24 | + */ |
|
| 22 | 25 | public function set_userCountry($userCountry) |
| 23 | 26 | { |
| 24 | 27 | $this->userCountry = $userCountry; |
@@ -98,7 +101,7 @@ discard block |
||
| 98 | 101 | * |
| 99 | 102 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 100 | 103 | * |
| 101 | - * @return object mysql result used by smarty assign_rs |
|
| 104 | + * @return resource mysql result used by smarty assign_rs |
|
| 102 | 105 | */ |
| 103 | 106 | private function cacheRs($args = null) |
| 104 | 107 | { |
@@ -150,7 +153,7 @@ discard block |
||
| 150 | 153 | * |
| 151 | 154 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 152 | 155 | * |
| 153 | - * @return object mysql result used by smarty assign_rs |
|
| 156 | + * @return resource mysql result used by smarty assign_rs |
|
| 154 | 157 | */ |
| 155 | 158 | private function eventRs($args = null) |
| 156 | 159 | { |
@@ -221,7 +224,7 @@ discard block |
||
| 221 | 224 | * |
| 222 | 225 | * @param array $args numeric array containing the parameter for "sql_slave" |
| 223 | 226 | * |
| 224 | - * @return object mysql result used by smarty assign_rs |
|
| 227 | + * @return resource mysql result used by smarty assign_rs |
|
| 225 | 228 | */ |
| 226 | 229 | private function ratingRs($args = null) |
| 227 | 230 | { |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | public function rsForSmarty($type, $args = null) |
| 52 | 52 | { |
| 53 | 53 | // check type |
| 54 | - if (method_exists($this, strtolower($type) . 'Rs')) { |
|
| 54 | + if (method_exists($this, strtolower($type).'Rs')) { |
|
| 55 | 55 | return call_user_func( |
| 56 | 56 | [ |
| 57 | 57 | $this, |
| 58 | - $type . 'Rs' |
|
| 58 | + $type.'Rs' |
|
| 59 | 59 | ], |
| 60 | 60 | $args |
| 61 | 61 | ); |
@@ -78,11 +78,11 @@ discard block |
||
| 78 | 78 | public function feedForSmarty($type, $items = null, $url = null, $timeout = null, $includetext = null) |
| 79 | 79 | { |
| 80 | 80 | // check type |
| 81 | - if (method_exists($this, strtolower($type) . 'Feed')) { |
|
| 81 | + if (method_exists($this, strtolower($type).'Feed')) { |
|
| 82 | 82 | return call_user_func( |
| 83 | 83 | [ |
| 84 | 84 | $this, |
| 85 | - $type . 'Feed' |
|
| 85 | + $type.'Feed' |
|
| 86 | 86 | ], |
| 87 | 87 | $items, |
| 88 | 88 | $url, |
@@ -203,6 +203,9 @@ |
||
| 203 | 203 | return $str; |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | +/** |
|
| 207 | + * @param string $str |
|
| 208 | + */ |
|
| 206 | 209 | function lf2crlf($str) |
| 207 | 210 | { |
| 208 | 211 | return str_replace("\r\r\n", "\r\n", str_replace("\n", "\r\n", $str)); |
@@ -116,10 +116,10 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | if ($r['html'] == 0) { |
| 118 | 118 | $thisline = mb_ereg_replace('{htmlwarn}', '', $thisline); |
| 119 | - $thisline = mb_ereg_replace('{desc}', decodeEntities(strip_tags($r['desc'])) . $license, $thisline); |
|
| 119 | + $thisline = mb_ereg_replace('{desc}', decodeEntities(strip_tags($r['desc'])).$license, $thisline); |
|
| 120 | 120 | } else { |
| 121 | 121 | $thisline = mb_ereg_replace('{htmlwarn}', " ($converted_from_html)", $thisline); |
| 122 | - $thisline = mb_ereg_replace('{desc}', html2txt($r['desc']) . $license, $thisline); |
|
| 122 | + $thisline = mb_ereg_replace('{desc}', html2txt($r['desc']).$license, $thisline); |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | $thisline = mb_ereg_replace('{type}', $r['type'], $thisline); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | $thislog = mb_ereg_replace('{text}', html2txt($rLog['text']), $thislog); |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | - $logentries .= $thislog . "\n"; |
|
| 200 | + $logentries .= $thislog."\n"; |
|
| 201 | 201 | } |
| 202 | 202 | $thisline = mb_ereg_replace('{logs}', $logentries, $thisline); |
| 203 | 203 | |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | if (!$bUseZip) { |
| 206 | 206 | echo $thisline; |
| 207 | 207 | } else { |
| 208 | - $phpzip->add_data($r['waypoint'] . '.txt', $thisline); |
|
| 208 | + $phpzip->add_data($r['waypoint'].'.txt', $thisline); |
|
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | 211 | mysql_free_result($rs); |