@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $error_suffix = '</span>'; |
| 72 | 72 | |
| 73 | 73 | $htmlnotice = |
| 74 | - '<tr><td class="spacer" colspan="2"></td></tr> |
|
| 74 | + '<tr><td class="spacer" colspan="2"></td></tr> |
|
| 75 | 75 | <tr> |
| 76 | 76 | <td class="help" colspan="2"> |
| 77 | 77 | <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice') . '" title="' . t('Notice') . '" /> |
@@ -22,13 +22,13 @@ discard block |
||
| 22 | 22 | tpl_set_var('loginbox', ' '); |
| 23 | 23 | tpl_set_var( |
| 24 | 24 | 'functionsbox', |
| 25 | - '<a href="index.php?page=suche">' . t('Search') . '</a> | <a href="index.php?page=sitemap">' . t('Sitemap') . '</a>' |
|
| 25 | + '<a href="index.php?page=suche">'.t('Search').'</a> | <a href="index.php?page=sitemap">'.t('Sitemap').'</a>' |
|
| 26 | 26 | ); |
| 27 | 27 | tpl_set_var('runtime', ''); |
| 28 | 28 | |
| 29 | 29 | //set up main template specific string |
| 30 | 30 | $sLoggedOut = |
| 31 | - '<form action="' . ($opt['page']['https']['force_login'] ? $opt['page']['absolute_https_url'] : '') . 'login.php" method="post" enctype="application/x-www-form-urlencoded" name="login" dir="ltr" style="display: inline;"><b>' |
|
| 31 | + '<form action="'.($opt['page']['https']['force_login'] ? $opt['page']['absolute_https_url'] : '').'login.php" method="post" enctype="application/x-www-form-urlencoded" name="login" dir="ltr" style="display: inline;"><b>' |
|
| 32 | 32 | . t('User:') |
| 33 | 33 | . '</b> <input name="email" size="10" type="text" class="textboxes" value="" /> <b>' |
| 34 | 34 | . t('Password:') |
@@ -43,14 +43,14 @@ discard block |
||
| 43 | 43 | . '</a></b>'; |
| 44 | 44 | |
| 45 | 45 | // target in Loginbox setzen |
| 46 | -$target = basename($_SERVER['PHP_SELF']) . '?'; |
|
| 46 | +$target = basename($_SERVER['PHP_SELF']).'?'; |
|
| 47 | 47 | |
| 48 | 48 | // REQUEST-Variablen durchlaufen und an target anhaengen |
| 49 | 49 | $allowed = ['cacheid', 'userid', 'logid', 'desclang', 'descid']; |
| 50 | 50 | reset($_REQUEST); |
| 51 | 51 | while (list ($varname, $varvalue) = each($_REQUEST)) { |
| 52 | 52 | if (in_array($varname, $allowed)) { |
| 53 | - $target .= $varname . '=' . $varvalue . '&'; |
|
| 53 | + $target .= $varname.'='.$varvalue.'&'; |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | if (mb_substr($target, - 1) == '?' || mb_substr($target, - 1) == '&') { |
@@ -76,10 +76,10 @@ discard block |
||
| 76 | 76 | '<tr><td class="spacer" colspan="2"></td></tr> |
| 77 | 77 | <tr> |
| 78 | 78 | <td class="help" colspan="2"> |
| 79 | - <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice') . '" title="' . t('Notice') . '" /> |
|
| 79 | + <img src="lang/de/ocstyle/images/misc/hint.gif" border="0" width="15" height="11" alt="' . t('Notice').'" title="'.t('Notice').'" /> |
|
| 80 | 80 | ' . t('Your HTML code will be changed again by a special filter. This is necessary to avoid dangerous HTML-tags, |
| 81 | 81 | such as <script>. A list of allowed HTML tags, you can find |
| 82 | - <a href="articles.php?page=htmltags">here</a>') . ' |
|
| 82 | + <a href="articles.php?page=htmltags">here</a>').' |
|
| 83 | 83 | </td> |
| 84 | 84 | </tr> |
| 85 | 85 | '; |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | //common vars |
| 23 | 23 | $dateformat = $opt['locale'][$locale]['format']['date']; |
| 24 | -$reset = t('Reset'); // obsolete |
|
| 24 | +$reset = t('Reset'); // obsolete |
|
| 25 | 25 | $yes = t('Yes'); |
| 26 | 26 | $no = t('No'); |
| 27 | 27 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class purge_logs |
| 13 | 13 | { |
| 14 | 14 | public $name = 'purge_logs'; |
| 15 | - public $interval = 86400; // daily |
|
| 15 | + public $interval = 86400; // daily |
|
| 16 | 16 | |
| 17 | 17 | public function run() |
| 18 | 18 | { |
@@ -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) |
@@ -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'; |
@@ -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); |