this is on my 74th line.
$pcap = $prop['100'];
Here it is :]
PHP Code:<?php
/*
Copyright (C) 2008 Murad H. <murad8@live.com>
Josh L. <uber_programmer15@hotmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Site Controls */
$properties = mysql_query("SELECT * FROM cype_properties");
$prop = mysql_fetch_array($properties);
if(isset($_SESSION['id'])){
$getsty = mysql_query("SELECT * FROM accounts WHERE id=".$_SESSION['id']."");
$showsty = mysql_fetch_array($getsty);
if($showsty['style'] == NULL){
$style = "1";
}else{
$style = $showsty['style'];
}
$getstyle = mysql_query("SELECT * FROM cype_styles WHERE id=".$style."");
$showstyle = mysql_fetch_array($getstyle);
}
/* RebellionStory */
$servername = $prop['RebellionStory'];
/* Welcome To RebellionStory! */
$sitetitle = $prop['Welcome To RebellionStory'];
/* Download link for client */
$client = $prop['client'];
/* Server Version */
$version = $prop['62'];
/* Forum url*/
$forumurl = $prop['forumurl'];
/* Site url */
$siteurl = $prop['siteurl'];
/* Cype Dir */
$cypedir = $prop['cypedir'];
/* Email */
$adminemail = @$prop['email'];
/* Vote Link */
$vote = $prop['vote'];
/* Vote Enabled */
$vcheck = $prop['vcheck'];
/* Vote Banner Link */
$vbanner = $prop['vbanner'];
/* Server Rates */
$exprate = $prop['700'];
$mesorate = $prop['500'];
$droprate = $prop['50'];
/* Middle Banner Link */
$mbanner = $prop['mbanner'];
/* Middle Link */
$mblink = $prop['mblink'];
/* Menu Message */
$message = $prop['Rebels'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
/* Scrolling Message */
$scroller = $prop['Welcome To RebellionStory's Website, The Server Is Still In Development.'];
$pcap = $prop['100'];
/* Where is the style located? */
if(isset($_SESSION['id'])){
$styledir = $showstyle['C:\wamp\www'];
}else{
$styledir = $prop['C:\wamp\www'];
}
?>
Use this...
PHP Code:<?php
/*
Copyright (C) 2008 Murad H. <murad8@live.com>
Josh L. <uber_programmer15@hotmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Site Controls */
$properties = mysql_query("SELECT * FROM cype_properties");
$prop = mysql_fetch_array($properties);
if(isset($_SESSION['id'])){
$getsty = mysql_query("SELECT * FROM accounts WHERE id=".$_SESSION['id']."");
$showsty = mysql_fetch_array($getsty);
if($showsty['style'] == NULL){
$style = "1";
}else{
$style = $showsty['style'];
}
$getstyle = mysql_query("SELECT * FROM cype_styles WHERE id=".$style."");
$showstyle = mysql_fetch_array($getstyle);
}
/* Name of server */
$servername = $prop['name'];
/* Site title */
$sitetitle = $prop['title'];
/* Download link for client */
$client = $prop['client'];
/* Server Version */
$version = $prop['version'];
/* Forum url*/
$forumurl = $prop['forumurl'];
/* Site url */
$siteurl = $prop['siteurl'];
/* Cype Dir */
$cypedir = $prop['cypedir'];
/* Email */
$adminemail = @$prop['email'];
/* Vote Link */
$vote = $prop['vote'];
/* Vote Enabled */
$vcheck = $prop['vcheck'];
/* Vote Banner Link */
$vbanner = $prop['vbanner'];
/* Server Rates */
$exprate = $prop['exprate'];
$mesorate = $prop['mesorate'];
$droprate = $prop['droprate'];
/* Middle Banner Link */
$mbanner = $prop['mbanner'];
/* Middle Link */
$mblink = $prop['mblink'];
/* Menu Message */
$message = $prop['message'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
/* Scrolling Message */
$scroller = $prop['scroller'];
/* Where is the style located? */
if(isset($_SESSION['id'])){
$styledir = $showstyle['dir'];
}else{
$styledir = $prop['styledir'];
}
?>
Josh is being bombarded with questions...
Last edited by Horizon; 23-01-09 at 10:49 PM.
Yes he is. And since he's nice, he's also answering them. :]
Mind fixing one last problem?
I keep getting this error whenever i switch the theme
There is nothing at line 27 in properties.php, but after it is:Code:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Abyss Web Server\htdocs\config\properties.php on line 27 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Abyss Web Server\htdocs\index.php on line 44
And this is on line 44 on my index.php:Code:if($showsty['style'] == NULL){
Thanks in advance.Code:$getname = $getn2['name'];![]()
@josho192837:
The "open new tab" for the forum works like a charm :)
I have 1 more question tho :P
Um, my players wants the rankings to count rebirths too, is there any way for me to do so? (And if possible, show how many rebirths a person has)
Thanks for all your support josho192837, been very very helpful ^_^
I can't see anything in "gm style's"
how do you add something it thare? (i'm useing the pack repack, think it has something to do with gm levels)