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