mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
Doing some more dateformatting tweaks
This commit is contained in:
parent
60402a0c0d
commit
aeae01621c
@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
//MySQL setup
|
//MySQL setup
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sqlhost = "localhost";
|
$sqlhost = "localhost";
|
||||||
$sqluser = "user";
|
$sqluser = "user";
|
||||||
$sqlpass = "password";
|
$sqlpass = "";
|
||||||
$dbname = "BASE";
|
$dbname = "database";
|
||||||
|
|
||||||
|
// Board naming
|
||||||
|
$boardname = "Board Name";
|
||||||
|
$boardtitle = "Board Title";
|
||||||
|
$siteurl = "http://example.com";
|
||||||
|
$sitename = "Site Name";
|
||||||
|
|
||||||
$boardname = "Default";
|
// Default date/time formatting
|
||||||
$boardtitle = "This file isn't actually used";
|
$dateformat = "m-d-y h:i:s A";
|
||||||
$siteurl = "http://sorry.to.disappoi.nt";
|
$dateshort = "m-d-y";
|
||||||
$sitename = "Oh well";
|
|
||||||
|
@ -59,7 +59,12 @@
|
|||||||
|
|
||||||
$startingtime = $t[sec]+$t[usec]/1000000;
|
$startingtime = $t[sec]+$t[usec]/1000000;
|
||||||
$startingtime = microtime(true);
|
$startingtime = microtime(true);
|
||||||
require 'lib/config.php';
|
|
||||||
|
|
||||||
|
require 'lib/config.default.php';
|
||||||
|
if (file_exists("lib/config.php")) {
|
||||||
|
require 'lib/config.php';
|
||||||
|
}
|
||||||
require 'lib/mysql.php';
|
require 'lib/mysql.php';
|
||||||
|
|
||||||
|
|
||||||
@ -114,6 +119,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$loguser = array();
|
$loguser = array();
|
||||||
|
|
||||||
@ -128,18 +136,25 @@
|
|||||||
$tzoff=$loguser[timezone]*3600;
|
$tzoff=$loguser[timezone]*3600;
|
||||||
$scheme=$loguser[scheme];
|
$scheme=$loguser[scheme];
|
||||||
$log=1;
|
$log=1;
|
||||||
$dateformat=$loguser['dateformat'];
|
|
||||||
$dateshort=$loguser['dateshort'];
|
if ($loguser['dateformat']) {
|
||||||
|
$dateformat = $loguser['dateformat'];
|
||||||
|
}
|
||||||
|
if ($loguser['dateshort']) {
|
||||||
|
$dateshort = $loguser['dateshort'];
|
||||||
|
}
|
||||||
|
|
||||||
if ($loguser['powerlevel'] < 0) mysql_query("UPDATE `users` SET `lol` = '$logpassword' WHERE `id` = '$loguserid'");
|
if ($loguser['powerlevel'] < 0) mysql_query("UPDATE `users` SET `lol` = '$logpassword' WHERE `id` = '$loguserid'");
|
||||||
$hacks['comments'] = mysql_result(mysql_query("SELECT COUNT(*) FROM `users_rpg` WHERE `uid` = '$loguserid' AND (`eq6` = '71' OR `eq6` = '238' OR `eq6` = '43')"), 0);
|
$hacks['comments'] = mysql_result(mysql_query("SELECT COUNT(*) FROM `users_rpg` WHERE `uid` = '$loguserid' AND (`eq6` = '71' OR `eq6` = '238' OR `eq6` = '43')"), 0);
|
||||||
if ($loguser['id'] == 1) $hacks['comments'] = true;
|
if ($loguser['id'] == 1) $hacks['comments'] = true;
|
||||||
if ($loguser['id'] == 175 && !$x_hacks['host']) $loguser['powerlevel'] = max($loguser['powerlevel'], 3);
|
if ($loguser['id'] == 175 && !$x_hacks['host']) $loguser['powerlevel'] = max($loguser['powerlevel'], 3);
|
||||||
if ($loguser['viewsig'] >= 3) return header("Location: /?sec=1");
|
if ($loguser['viewsig'] >= 3) return header("Location: /?sec=1");
|
||||||
if ($loguser['powerlevel'] >= 1) $boardtitle = $boardtitle . $submessage;
|
if ($loguser['powerlevel'] >= 1) $boardtitle = $boardtitle . $submessage;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if($loguserid) {
|
if($loguserid) {
|
||||||
// setcookie("loguserid");
|
// setcookie("loguserid");
|
||||||
// setcookie("logpassword");
|
// setcookie("logpassword");
|
||||||
}
|
}
|
||||||
$loguser['viewsig'] = 1;
|
$loguser['viewsig'] = 1;
|
||||||
$loguserid = NULL;
|
$loguserid = NULL;
|
||||||
|
@ -27,12 +27,6 @@
|
|||||||
// if($forumid==30) $boardtitle = "<a href='./'><img src=\"images/poniecentral.gif\" title=\"YAAAAAAAAAAY\"></a>";
|
// if($forumid==30) $boardtitle = "<a href='./'><img src=\"images/poniecentral.gif\" title=\"YAAAAAAAAAAY\"></a>";
|
||||||
// end PONIES!!!
|
// end PONIES!!!
|
||||||
|
|
||||||
if(!$loguserid || $dateformat == "") {
|
|
||||||
$dateformat='m-d-y h:i:s A';
|
|
||||||
$dateshort='m-d-y';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($_GET['dateformat'])) $dateformat = $_GET['dateformat'];
|
|
||||||
|
|
||||||
$race=postradar($loguserid);
|
$race=postradar($loguserid);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user