BlackJacket |
01-28-2009 10:28 AM |
Quote:
Originally Posted by Dismounted
(Post 1727053)
Just blank out the username and password (should only be once, anyway), and post the code. Unless there is more sensitive information?
|
Ok. :)
HTML Code:
<?php
$curdir = getcwd ();
chdir('Edited..html/community');
require_once('edited/community/global.php');
chdir ($curdir);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>1320LEGEND | Legend Manual</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="description" content="Guide to playing 1320LEGEND. Learn to Race, Tune, Shop, plus much more on the Free Online Drag Racing game, 1320LEGEND!" />
<meta name="keywords" content="1320, 1320 legend, guide, tune help, learn tuning, manual" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<link href="../layout.css" rel="stylesheet" type="text/css" />
</head>
<body id="page3">
<div class="tail-top">
<div class="tail-center">
<div id="main">
<!-- header -->
<div id="header">
<!--Valid flash version 8.0-->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="980" height="295">
<param name="movie" value="flash/header3_fv8.swf?button=3" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
<!--[if !IE]> <-->
<object data="flash/header3_fv8.swf?button=3"
width="980" height="295" type="application/x-shockwave-flash">
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
<param name="wmode" value="transparent" />
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</div>
<!-- content -->
<div id="content">
<div class="main-box">
<div class="top">
<div class="bottom">
<div class="inside">
<div class="wrapper">
<div class="left-column">
<div class="box">
<div class="top">
<div class="bottom">
<div class="inner">
<h2>1320LEGEND Login</h2>
<div class="inner1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<?php
require_once('/home/content/n/i/t/nittospace/html/community/login_inc.php');
?>
</td>
</tr>
</table>
</div>
<h3>Recent Topics</h3>
<div class="inner1">
<?php
##########################################################################
// RECENT TOPICS by LBmtb
// Version 1.03
// webmaster@socaltrailriders.org OR aim: LBmtb
//
// Do not remove copyright unless you donate $5 via paypal
// to the above email address, thanks
// CUSTOMIZED from a www.phase1media.com script found here:
// https://vborg.vbsupport.ru/showpost.php?p=589067&postcount=7
##########################################################################
## CUSTOMIZE THE FOLLOWING ##############################################
// DATABASE & URL SETTINGS
$db_host = "p50mysql283.secureserver.net"; // Change this if your MySQL database host is different.
$db_name = ""; // Change this to the name of your database.
$db_user = ""; // Change this to your database username.
$db_pw = ""; // Change this to your database password.
$db_prefix = ""; // Change to your tables' prefix. Usually vb_
$forum_url = "http://www.1320legend.com/community"; // Change this to reflect to your forum's URL.
// APEARANCE OPTIONS
$seperator = "@"; // this goes between last poster and date
$limit = "3"; // Number of posts displayed
$post_date_format = "1"; // leave as 1 for "12/18/06 05:26 PM" or change to 2 for "05:26 PM"
// use one or the other, not both. if left blank the script will return threads from any forum
$fid_raw = ""; // ONLY include threads from these forums. seperate each ID with a comma
$fidx_raw = ""; // Exclude threads from these forum. seperate each ID with a comma
// CSS CLASSES
$recent_topics = "vb_topics"; // you can use CSS to adjust the presentation of the list
$recent_poster = "vb_last_post"; // you can use CSS to adjust the presentation the last poster and date
## NO NEED TO TOUCH ANYTHING BELOW #####################################
#############################################################################
if (!($recent_topics_connection = mysql_connect("$db_host", "$db_user", "$db_pw")))
die ("could not connect");
if (!(mysql_select_db("$db_name", $recent_topics_connection)))
mysql_error();
echo "<ul class=\"$recent_topics\">\n";
$fid_array = explode (',', $fid_raw);
if ($fid_raw) {
$fid_final .= "AND (";
foreach( $fid_array as $key => $value){
if ($key == 0) { $fid_final .= "t.forumid=".$value; }
else { $fid_final .= " OR t.forumid=".$value; }
}
$fid_final .= ")";
}
$fidx_array = explode (',', $fidx_raw);
if ($fidx_raw) {
$fidx_final .= "AND NOT (";
foreach( $fidx_array as $key => $value){
if ($key == 0) { $fidx_final .= "t.forumid=".$value; }
else { $fidx_final .= " OR t.forumid=".$value; }
}
$fidx_final .= ")";
}
$thread_sql = mysql_query("SELECT SQL_CACHE t.threadid,t.title,t.lastpost,t.lastposter,t.forumid,substring(p.pagetext,1,90) as post_text
FROM ".$GLOBALS['db_prefix']."thread t
INNER JOIN ".$GLOBALS['db_prefix']."post p
ON t.firstpostid = p.postid
WHERE t.visible=1
AND t.open=1 $fidi_final $fidx_final
ORDER BY t.lastpost desc
LIMIT $limit");
while($thread_get=@mysql_fetch_array($thread_sql))
{
$lastpost = $thread_get['lastpost'];
$poster = $thread_get['lastposter'];
$tid = $thread_get['threadid'];
$text = $thread_get['post_text'];
if ($post_date_format == "1") { $date2 = date ("m/d/y h:i A" ,$lastpost); }
elseif ($post_date_format == "2") { $date2 = date ("h:i A" ,$lastpost); }
else { $date2 = date ("m/d/y h:i A" ,$lastpost); }
echo "<li><a href=\"$forum_url/showthread.php?t=$tid\" title=\"".$text."\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n";
}
mysql_close($recent_topics_connection);
?>
<div class="txt1"><strong>
<a href=""></a></strong></div>
</div>
<div class="alignright">
<a class="link1" href="../community/index.php">Read More</a></div>
</div>
</div>
</div>
</div>
</div>
<div class="center-column">
<div class="box1">
<div class="border-top">
<div class="border-right">
<div class="border-bot">
<div class="border-left">
<div class="left-top-corner">
<div class="right-top-corner">
<div class="right-bot-corner">
<div class="left-bot-corner">
<div class="inner2">
<h2>Legend Guide</h2>
<p>Welcome to the Moderator Control Panel. More info will be posted soon as well as more tools. The navigation links above (Garage, Forums, etc...) are not working yet. Please
<a href="http://1320legend.com/index.php">click here</a> to go to the index or Garage.</p>
<p><a href="http://1320legend.com/community/forumdisplay.php?f=35" target="_blank">Click here</a> for Mod Lounge</p>
<p><a href="http://1320legend.com/community/modcp/index.php" target="_blank">Mod Control Panel for forum</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer -->
<div id="footer">
<p>1320LEGEND ? 2008 | ReaxtionStudios.com
| <a href="privacy-policy.html">Privacy Policy</a> |
<a href="refund-policy.html">Refund Policy</a></p>
<p><span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=164585129504c246eb212711e1ddf4d2b17df9063538959879293121"></script><br/></span></p> </div>
</div>
</div>
</div>
</body>
</html>
|