Code: Select all
<?php
/* devish v0.1 configuration file.
developer: micke andersson
email: root@g33k.net
webpage: http://teksys.joshie.com/
*/
function theme_Index() {
global $PHP_ext,$index_file,$main_file,$login_file,$logout_file,$options_file,$function;
global $preferances_file,$uid,$upass,$name,$site_name,$tbl_color1,$tbl_color2;
?>
<!-- theme_Index(); starts here -->
</head>
<body bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top" align="center">
</td>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign="top" width="155"><table width="155" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
<tr>
<td width="155"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="<? print $tbl_color1 ?>">
<td><b><p align="center"><font color="#ffffff">navigation</font></b></td>
</tr>
<tr bgcolor="#ffffff">
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<font color="#000000">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>
</table>
<!-- NavigationLinks(); starts here -->
<?php NavigationLinks(); ?>
<!-- NavigationLinks(); ends here -->
</font> </td>
</tr>
</table></td>
</tr>
<?php
}
function theme_Nav() {
global $PHP_ext,$index_file,$main_file,$login_file,$logout_file,$options_file,$function;
global $preferances_file,$uid,$upass,$name,$site_name, $tbl_color1, $tbl_color2;
?>
<!-- theme_Nav(); starts here -->
<tr>
<td width="155"><table width="155" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="<? print $tbl_color1 ?>">
<td><b><p align="center"><font color="#ffffff"><? echo "user: " . user($uid, $upass, "name") . ""; ?></font></b></td>
</tr>
<tr bgcolor="#ffffff">
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr><td><font color="#000000">
<!-- UserLinks(); starts here -->
<? UserLinks(); ?>
<!-- UserLinks(); ends here -->
</font></td></tr></table></td></tr></table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<?php
}
function theme_Usersonline() {
global $uid,$upass,$name,$tbl_MiscSettings;
?>
<!-- useronline(); starts here -->
<td valign="top" width="100%">
<font color="#000000">
<dev align="left"><? if ($tbl_MiscSettingsїrandom_welcome] == "yes") { random_welcome(); } ?></div><div align="right"><b><? if ($tbl_MiscSettingsїusersonline] == "yes") { usersonline(); } ?></b>
</b></div></font><br>
<center><img src="<? print $root_path; ?>/misc/images/pixel_black.gif" width="100%" height="1"></center>
<?php
}
function theme_News() {
global $tbl_MiscSettings;
?>
<!-- theme_News(); starts here -->
<table width="100%" border="0" cellspacing="8" cellpadding="0">
<tr valign="top">
<td valign="top" width="70%"><font color="#000000">
<!-- randomslogan(); starts here -->
<b><?php if ($tbl_MiscSettingsїrandom_slogan] == "yes") { randomslogan(); br(); br(); } ?></b>
<!-- randomslogan(); ends here -->
<?php include('C:\www\Apache\htdocs\bin\devnews\news.php'); ?>
</font></td>
<?php
}
function theme_InternalNews() {
global $result,$total_news,$tables, $tbl_color1, $tbl_color2;
?>
<!-- theme_InternalNews(); starts here -->
<td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
<tr>
<td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="<? print $tbl_color1 ?>">
<td><b><p align="center"><font color="#ffffff">internal news</font></b></td>
</tr>
<tr bgcolor="#ffffff">
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr><td><font color="#000000">
<p><b><font ize="1"></b><? print "there are '<b>$total_news</b>' news posts in our table '<b>$tablesїnews]</b>'.<br>";
//br();
//br();
if(file_exists($root_path.'news.txt'))
include($root_path.'news.txt');
//include('C:\www\Apache\htdocs\news.txt');
br(); ?><br></font></p>
</font></td></tr></table></td></tr></table></td></tr></table>
</td>
</tr>
</table>
<?php
}
function theme_Footer() {
global $tbl_color1, $tbl_color2;
?>
<!-- theme_Footer(); starts here -->
<tr>
<table border="0" width="75%" cellspacing="0" cellpadding="1" tr align="center" valign="bottom" bgcolor="<? print $tbl_color1 ?>">
<td width="75%" align="center"><p align="center"><b><font color="#ffffff">
<table border="0" width="75%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font color="#ffffff"><?php
footer(); ?></font></b></td>
</tr>
</table>
</font></td>
</tr>
</tr>
</table>
</body>
</html>
<?php
}
function Codems_Index() {
global $tbl_color1, $tbl_color2;
?>
</head>
<body bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top" align="center">
<font face="Verdana" size="1"></font></td>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign="top" width="155"><table width="155" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
<tr>
<td width="155"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="<? print $tbl_color1 ?>">
<td><b><p align="center"><font face="Verdana" size="1" color="#ffffff">tekcodesys stats</font></b></td>
</tr>
<tr bgcolor="#ffffff">
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<font face="verdana" size="1">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>
</table>
<!-- stats starts here -->
<?php
// total comments.
tek_connect(localhost, root, whereisthelegend, codems); // connect to the codems database.
$result = mysql_query("select * from phpcodems_comments");
$total = mysql_num_rows($result);
echo "Total Comments: <b>$total</b><br>";
// end total comments.
echo 'Total Codes: <b>'.get_amount_submissions().'</b><br>';
// total categories
$result = mysql_query("select * from phpcodems_categories");
$total = mysql_num_rows($result);
echo "Total Categories: <b>$total</b><br>";
// end total categories.
// total users
$result = mysql_query("select * from phpcodems_users");
$total = mysql_num_rows($result);
echo "Total Users: <b>$total</b><br>";
// end total users
?>
<!-- stats ends here -->
</font> </td>
</tr>
</table></td>
</tr>
<?php
}
?>