scrutinizing
This commit is contained in:
parent
d2d2a9b73a
commit
fa2f17817e
8 changed files with 4 additions and 9 deletions
|
@ -3,4 +3,4 @@ imports:
|
|||
- php
|
||||
|
||||
filter:
|
||||
excluded_paths: [lib/*,ext/tagger/script.js]
|
||||
excluded_paths: [lib/*,ext/tagger/script.js,ext/chatbox/*]
|
||||
|
|
|
@ -328,8 +328,9 @@ class StaticConfig extends BaseConfig {
|
|||
*/
|
||||
public function __construct($filename) {
|
||||
if(file_exists($filename)) {
|
||||
$config = array();
|
||||
require_once $filename;
|
||||
if(isset($config)) {
|
||||
if(!empty($config)) {
|
||||
$this->values = $config;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -66,7 +66,6 @@ class CommentListTheme extends Themelet {
|
|||
|
||||
$comment_count = count($comments);
|
||||
if($comment_limit > 0 && $comment_count > $comment_limit) {
|
||||
$hidden = $comment_count - $comment_limit;
|
||||
$comment_html .= '<p>showing '.$comment_limit.' of '.$comment_count.' comments</p>';
|
||||
$comments = array_slice($comments, -$comment_limit);
|
||||
$this->show_anon_id = false;
|
||||
|
@ -233,7 +232,6 @@ class CommentListTheme extends Themelet {
|
|||
|
||||
$i_uid = int_escape($comment->owner_id);
|
||||
$h_name = html_escape($comment->owner_name);
|
||||
$h_poster_ip = html_escape($comment->poster_ip);
|
||||
$h_timestamp = autodate($comment->posted);
|
||||
$h_comment = ($trim ? truncate($tfe->stripped, 50) : $tfe->formatted);
|
||||
$i_comment_id = int_escape($comment->comment_id);
|
||||
|
|
|
@ -15,7 +15,6 @@ class IPBanTheme extends Themelet {
|
|||
global $database, $user;
|
||||
$h_bans = "";
|
||||
$prefix = ($database->get_driver_name() == "sqlite" ? "bans." : "");
|
||||
$prefix2 = ($database->get_driver_name() == "sqlite" ? "users." : "");
|
||||
foreach($bans as $ban) {
|
||||
$end_human = date('Y-m-d', $ban[$prefix.'end_timestamp']);
|
||||
$h_bans .= "
|
||||
|
|
|
@ -143,7 +143,6 @@ class Tag_History extends Extension {
|
|||
}
|
||||
|
||||
// lets get the values out of the result
|
||||
$stored_result_id = $result['id'];
|
||||
$stored_image_id = int_escape($result['image_id']);
|
||||
$stored_tags = $result['tags'];
|
||||
|
||||
|
|
|
@ -80,7 +80,6 @@ class Update extends Extension {
|
|||
global $config, $page;
|
||||
|
||||
$commitSHA = $_GET['sha'];
|
||||
$g_userrepo = $config->get_string('update_guserrepo');
|
||||
|
||||
log_info("update", "Download succeeded. Attempting to update Shimmie.");
|
||||
$config->set_bool("in_upgrade", TRUE);
|
||||
|
|
|
@ -459,7 +459,7 @@ function write_config() { // {{{
|
|||
folder manually. Make sure that when you save it, there is no whitespace
|
||||
before the "<?php" or after the "?>"
|
||||
|
||||
<p><textarea cols="80" rows="2">$file_content</textarea>
|
||||
<p><textarea cols="80" rows="2">$h_file_content</textarea>
|
||||
|
||||
<p>Once done, <a href="index.php">Click here to Continue</a>.
|
||||
<br/><br/>
|
||||
|
|
|
@ -35,7 +35,6 @@ class CustomUserPageTheme extends UserPageTheme {
|
|||
}
|
||||
|
||||
public function display_user_block(Page $page, User $user, $parts) {
|
||||
$h_name = html_escape($user->name);
|
||||
$html = "";
|
||||
$blocked = array("Pools", "Pool Changes", "Alias Editor", "My Profile");
|
||||
foreach($parts as $part) {
|
||||
|
|
Reference in a new issue