Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestbuffington committed Feb 6, 2023
1 parent ad6e8fd commit ca6fe87
Show file tree
Hide file tree
Showing 1,365 changed files with 53,172 additions and 25 deletions.
3 changes: 3 additions & 0 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
/*****[BEGIN]******************************************
[ Mod: Advanced Security Code Control v1.0.0 ]
******************************************************/
if(!isset($_POST['g-recaptcha-response']))
$_POST['g-recaptcha-response'] = '';

$gfxchk = array(1,5,6,7);
if (!security_code_check($_POST['g-recaptcha-response'], $gfxchk)){
/*****[END]********************************************
Expand Down
23 changes: 16 additions & 7 deletions includes/functions_evo.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ function get_user_field($field_name, $user, $is_name = false)
{
$sql = "SELECT * FROM ".USERS_TABLE." WHERE $where";
$actual_user[$user] = $db->sql_ufetchrow($sql);

if(!isset($actual_user[$user]['user_id']))
$actual_user[$user]['user_id'] = 1;
// We also put the groups data in the array.
$result = $db->sql_query('SELECT g.group_id,
g.group_name,
Expand Down Expand Up @@ -103,27 +106,33 @@ function get_user_field($field_name, $user, $is_name = false)
function get_admin_field($field_name, $admin)
{
global $db, $debugger;
static $fields = array();
if (!$admin) {
return array();
//static $fields = array();
static $fields = [];


if (!$admin) {
//return array();
return [];
}

if(!isset($fields[$admin]) || !is_array($fields[$admin])) {
$fields[$admin] = $db->sql_ufetchrow("SELECT * FROM "._AUTHOR_TABLE." WHERE `aid` = '" . str_replace("\'", "''", $admin) . "'");
//$fields[$admin] = $db->sql_ufetchrow("SELECT * FROM "._AUTHOR_TABLE." WHERE `aid` = '" . str_replace("\'", "''", $admin) . "'");
$fields[$admin] = $db->sql_ufetchrow("SELECT * FROM "._AUTHOR_TABLE." WHERE `aid` = '" . str_replace("\'", "''", (string) $admin) . "'");
}

if($field_name == '*') {
return $fields[$admin];
}
if(is_array($field_name)) {
$data = array();
//$data = array();
$data = [];

foreach($field_name as $fld) {
$data[$fld] = $fields[$admin][$fld];
}
return $data;
}

return $fields[$admin][$field_name];
return $fields[$admin][$field_name] ?? '';
}

/**
Expand Down
4 changes: 3 additions & 1 deletion modules/Blogs/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,9 @@ function CreateTopic ($xanonpost, $subject, $comment, $pid, $sid, $host_name, $m
switch(isset($op)) {

case "Reply":
reply($pid, $sid, isset($mode), isset($order), isset($thold));
if(!isset($pid))
$pid = '';
reply($pid, $sid, isset($mode), isset($order), isset($thold));
break;

case ""._PREVIEW."":
Expand Down
13 changes: 10 additions & 3 deletions modules/Forums/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,13 @@ function inarray($needle, $haystack)
/*****[END]********************************************
[ Mod: Advance Admin Index Stats v1.0.0 ]
******************************************************/
$start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']);
global $board_config;

if(empty($board_config['board_startdate']))
$board_config['board_startdate'] = '1672571760';

$boarddays = ( time() - $board_config['board_startdate'] ) / 86400;
$start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']);
$boarddays = ( time() - $board_config['board_startdate'] ) / 86400;

$posts_per_day = sprintf("%.2f", $total_posts / $boarddays);
$topics_per_day = sprintf("%.2f", $total_topics / $boarddays);
Expand Down Expand Up @@ -671,7 +675,10 @@ function inarray($needle, $haystack)
if(!isset($onlinerow_reg[$i]['user_allow_viewonline']))
$onlinerow_reg[$i]['user_allow_viewonline'] = '';

if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
if(!isset($hidden_users))
$hidden_users = 0;

if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
{
$registered_users++;
$hidden = FALSE;
Expand Down
7 changes: 5 additions & 2 deletions modules/Profile/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@
/*****[BEGIN]******************************************
[ Mod: Admin delete user with all postings v.1.0.5 ]
******************************************************/
if( $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN )
{
if(isset($userdata['session_logged_in']))
{
if($userdata['session_logged_in'] && $userdata['user_level'] == ADMIN)
{
include($phpbb_root_path.'language/lang_' . $userdata['user_lang'] . '/lang_user_delete.'.$phpEx);
}
}
/*****[END]********************************************
[ Mod: Admin delete user with all postings v.1.0.5 ]
Expand Down
21 changes: 14 additions & 7 deletions modules/Your_Account/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,20 @@ function yacookie($setuid, $setusername, $setpass, $setstorynum, $setumode, $set

$guest = 1;
$user_agent = $identify->identify_agent();
if (is_user()) {
$guest = 0;
} elseif($user_agent['engine'] == 'bot') {
$guest = 3;
}

if (!empty($setusername)) {

if(!isset($user_agent['engine']))
$user_agent['engine'] = '';

if (is_user())
{
$guest = 0;
}
elseif($user_agent['engine'] == 'bot')
{
$guest = 3;
}

if (!empty($setusername)) {
$uname = substr($setusername, 0,25);
if ($row = $db->sql_fetchrow($result)) {
$db->sql_query("UPDATE ".$prefix."_session SET uname='$setusername', time='$ctime', host_addr='$ip', guest='$guest' WHERE uname='$uname'");
Expand Down
21 changes: 16 additions & 5 deletions modules/Your_Account/public/new_confirm3.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,18 @@
ya_mailCheck($ya_user_email);
if (!$stop) {
$datekey = date("F j");
global $sitekey, $evoconfig;
global $sitekey, $evoconfig;

if(!isset($_POST['random_num']))
$_POST['random_num'] = '';
if(!isset($_POST['random_num']))
$_POST['random_num'] = '';

$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $_POST['random_num'] . $datekey));
$code = substr($rcode, 2, $evoconfig['codesize']);
$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $_POST['random_num'] . $datekey));
$code = substr($rcode, 2, $evoconfig['codesize']);
$gfxchk = array(3,4,6,7);

if(!isset($_POST['g-recaptcha-response']))
$_POST['g-recaptcha-response'] = '';

if (!security_code_check($_POST['g-recaptcha-response'], $gfxchk)) {
OpenTable();
echo "<center><span class='title'><strong>"._ERRORREG."</strong></span><br /><br />";
Expand Down Expand Up @@ -154,6 +158,13 @@
// echo "<tr><td><strong>"._YA_PASSWORD.":</strong> $user_password<br /></td></tr>";
echo "</table>";
echo "<center><form action='modules.php?name=$module_name' method='post'>";

if(!isset($nfield))
$nfield = '';
if(!isset($random_num))
$random_num = '';
if(!isset($gfx_check))
$gfx_check = '';

if (is_array($nfield))
{
Expand Down
4 changes: 4 additions & 0 deletions setup/steps/4.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,13 @@ function nuke_sqlerror($sql) { //Returns SQL Error
echo "</p>\n";
unset($installscript);

$time = time();

$sql="ALTER TABLE ".$db_prefix."_bbconfig
ADD PRIMARY KEY (`config_name`) ";
$result=$db->sql_query($sql);
$sql="UPDATE `nuke_bbconfig` SET `config_name` = 'board_startdate',`config_value` = '".$time."' WHERE `nuke_bbconfig`.`config_name` = 'board_startdate'; ";
$result=$db->sql_query($sql);
}

# Forum Disallow Config
Expand Down
Binary file added themes/DragonSkull/backgrounds/1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/2560x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/626x363.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/blackbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/box_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/chrome_borders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/copter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/glasstop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/newredbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/sidebox_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/top_box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/backgrounds/topright.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/center/blc.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/center/brc.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/center/invisible_pixel.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/DragonSkull/center/left_side.gif
Binary file added themes/DragonSkull/center/right_side.gif
Binary file added themes/DragonSkull/center/spacer.png
Binary file added themes/DragonSkull/center/tbm.gif
Binary file added themes/DragonSkull/center/tlc.gif
Binary file added themes/DragonSkull/center/tm.gif
Binary file added themes/DragonSkull/center/trc.gif
Loading

0 comments on commit ca6fe87

Please sign in to comment.