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
|
||||
|
||||
//MySQL setup
|
||||
|
||||
|
||||
|
||||
$sqlhost = "localhost";
|
||||
$sqluser = "user";
|
||||
$sqlpass = "password";
|
||||
$dbname = "BASE";
|
||||
$sqlpass = "";
|
||||
$dbname = "database";
|
||||
|
||||
// Board naming
|
||||
$boardname = "Board Name";
|
||||
$boardtitle = "Board Title";
|
||||
$siteurl = "http://example.com";
|
||||
$sitename = "Site Name";
|
||||
|
||||
$boardname = "Default";
|
||||
$boardtitle = "This file isn't actually used";
|
||||
$siteurl = "http://sorry.to.disappoi.nt";
|
||||
$sitename = "Oh well";
|
||||
// Default date/time formatting
|
||||
$dateformat = "m-d-y h:i:s A";
|
||||
$dateshort = "m-d-y";
|
||||
|
@ -59,7 +59,12 @@
|
||||
|
||||
$startingtime = $t[sec]+$t[usec]/1000000;
|
||||
$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';
|
||||
|
||||
|
||||
@ -114,6 +119,9 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$loguser = array();
|
||||
|
||||
@ -128,18 +136,25 @@
|
||||
$tzoff=$loguser[timezone]*3600;
|
||||
$scheme=$loguser[scheme];
|
||||
$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'");
|
||||
$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'] == 175 && !$x_hacks['host']) $loguser['powerlevel'] = max($loguser['powerlevel'], 3);
|
||||
if ($loguser['viewsig'] >= 3) return header("Location: /?sec=1");
|
||||
if ($loguser['powerlevel'] >= 1) $boardtitle = $boardtitle . $submessage;
|
||||
|
||||
} else {
|
||||
if($loguserid) {
|
||||
// setcookie("loguserid");
|
||||
// setcookie("logpassword");
|
||||
// setcookie("loguserid");
|
||||
// setcookie("logpassword");
|
||||
}
|
||||
$loguser['viewsig'] = 1;
|
||||
$loguserid = NULL;
|
||||
|
@ -27,12 +27,6 @@
|
||||
// if($forumid==30) $boardtitle = "<a href='./'><img src=\"images/poniecentral.gif\" title=\"YAAAAAAAAAAY\"></a>";
|
||||
// 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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user