[ALPHA] CypeReboot

Status
Not open for further replies.
Pushed out an update this morning which adds initial support for custom database prefixes (eg instead of the default cype_ prefix, you can use mysite_ or whatever)
Also updated CSS to Bootstrap v3.0.2, and fixed some small styling issues.
Basically, I'm just fixing up all the backend, and some design problems to make the CMS ready for beta, which will include a brand new theme (yay)

11/30:
- Updated all the UCP files, those are almost ready for beta (along with main content pages, except rankings).
- Reimplemented Tickets, Mail should be coming soon..
- AdminCP is the next to be upgraded!
 
Last edited:
I saw this on your github before it was released, this is fantastic imo. THANKS! :D

Since I am just learning PHP (Not that far in AT ALL) there's an error in properties.php:
Code:
$prop = $properties->fetch_assoc();
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

No idea how to fix that. :O
P.S: Just testing out the site, going to see what I can do with my CSS knowledge. :D
 
Last edited:
I saw this on your github before it was released, this is fantastic imo. THANKS! :D

Since I am just learning PHP (Not that far in AT ALL) there's an error in properties.php:
Code:
$prop = $properties->fetch_assoc();
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

No idea how to fix that. :O
P.S: Just testing out the site, going to see what I can do with my CSS knowledge. :D
Thanks for reporting the bug, it will be fixed tonight (will update post when done)
EDIT: Found the problem, please redownload the latest revision and give it a go!
Edit2: Thought I fixed it, but now I've actually fixed it (along with some UCP bugs). I've also added support for dark themes.
 
Last edited:
Thanks for reporting the bug, it will be fixed tonight (will update post when done)
EDIT: Found the problem, please redownload the latest revision and give it a go!
Edit2: Thought I fixed it, but now I've actually fixed it (along with some UCP bugs). I've also added support for dark themes.
Thanks for the update! :)
Edit:
Code:
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

Still broken. No idea what's wrong.
 
Last edited:
Thanks for the update! :)
Edit:
Code:
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp\htdocs\cype\assets\config\properties.php on line 7

Still broken. No idea what's wrong.
Can you try doing a fresh install? Delete all your old cype sql tables and run the new installer again (updated last night).
If it doesn't work, I'll give it a try with xampp, since I develop with wamp.
 
Can you try doing a fresh install? Delete all your old cype sql tables and run the new installer again (updated last night).
If it doesn't work, I'll give it a try with xampp, since I develop with wamp.
Alright, it may have been due to the fact that I didn't delete my sql files. I will update you.

Edit:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop[''];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop[''];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("****","dick","fail","suck","cock","*****","ass","cunt","vagina","penis","cunt");
?>
I set-up the configs again, and made a new database.
PHP:
<?php
if(basename($_SERVER["PHP_SELF"]) == "database.php"){
    die("403 - Access Forbidden");
}
//SQL Information
$host['hostname'] = 'localhost'; // Hostname [Usually locahost]
$host['user'] = 'root'; // Database Username [Usually root]
$host['password'] = ''; // Database Password [Leave blank if unsure]
$host['database'] = 'cype'; // Database Name

//Database Prefix
$prefix = "";
// What is your server`s log in port - Don`t change if you aren`t sure.
$loginport = "7575";
// What is your server`s world port - Don`t change if you aren`t sure.
$worldport = "8484";

/* Don`t touch. */
$mysqli = new MySQLi($host['hostname'],$host['user'],$host['password'],$host['database']);

?>
So, it must be an issue with xampp. Or, I'm doing something wrong (which I don't think I am.)
 
Last edited:
Alright, it may have been due to the fact that I didn't delete my sql files. I will update you.

Edit:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop[''];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop[''];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("****","dick","fail","suck","cock","*****","ass","cunt","vagina","penis","cunt");
?>
I set-up the configs again, and made a new database.
PHP:
<?php
if(basename($_SERVER["PHP_SELF"]) == "database.php"){
    die("403 - Access Forbidden");
}
//SQL Information
$host['hostname'] = 'localhost'; // Hostname [Usually locahost]
$host['user'] = 'root'; // Database Username [Usually root]
$host['password'] = ''; // Database Password [Leave blank if unsure]
$host['database'] = 'cype'; // Database Name

//Database Prefix
$prefix = "";
// What is your server`s log in port - Don`t change if you aren`t sure.
$loginport = "7575";
// What is your server`s world port - Don`t change if you aren`t sure.
$worldport = "8484";

/* Don`t touch. */
$mysqli = new MySQLi($host['hostname'],$host['user'],$host['password'],$host['database']);

?>
So, it must be an issue with xampp. Or, I'm doing something wrong (which I don't think I am.)

I'll try it out with xampp tonight. Will update this post later.
EDIT: I forgot to delete the installdone.txt from the install directory, which means you never really installed the CMS. This means that you'll have to go to assets/config/install and delete installdone.txt, navigate to Cype in your browser, run the installer, and it should work.
 
Last edited:
I'll try it out with xampp tonight. Will update this post later.
EDIT: I forgot to delete the installdone.txt from the install directory, which means you never really installed the CMS. This means that you'll have to go to assets/config/install and delete installdone.txt, navigate to Cype in your browser, run the installer, and it should work.
The installer does work now, but there is a few other issues:

PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop['http://www.google.com'];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop['/forum'];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['7'];
/* Accounts Per IP */
$MaxAcc = $prop['15'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("****","dick","fail","suck","cock","*****","ass","cunt","vagina","penis","cunt");
?>
 
The installer does work now, but there is a few other issues:

PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['Cype'];
/* Site title */
$sitetitle = $prop['Cype'];
$pb = " (Powered by Cype)";
$siteurl = $prop['http://localhost/cype'];
/* Download link for client */
$client = $prop['http://www.google.com'];
/* Server Version */
$version = $prop['v117.2'];
/* Forum url*/
$forumurl = $prop['/forum'];
/* Server Rates */
$exprate = $prop['10'];
$mesorate = $prop['8'];
$droprate = $prop['2'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['7'];
/* Accounts Per IP */
$MaxAcc = $prop['15'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("****","dick","fail","suck","cock","*****","ass","cunt","vagina","penis","cunt");
?>
You've modified your core files, you cannot expect the CMS to work if you do this. Here is a clean properties.php:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['name'];
/* Site title */
$sitetitle = $prop['name'];
$pb = " (Powered by Cype)";
$siteurl = $prop['siteurl'];
/* Download link for client */
$client = $prop['client'];
/* Server Version */
$version = $prop['version'];
/* Forum url*/
$forumurl = $prop['forumurl'];
/* Server Rates */
$exprate = $prop['exprate'];
$mesorate = $prop['mesorate'];
$droprate = $prop['droprate'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("****","dick","fail","suck","cock","*****","ass","cunt","vagina","penis","cunt");
?>
 
You've modified your core files, you cannot expect the CMS to work if you do this. Here is a clean properties.php:
PHP:
<?php 
if(basename($_SERVER["PHP_SELF"]) == "properties.php"){
	die("403 - Access Forbidden");
}
/* Site Controls */
$properties = $mysqli->query("SELECT * FROM ".$prefix."properties");
$prop = $properties->fetch_assoc();
$ipaddress = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

/* Name of server */
$servername = $prop['name'];
/* Site title */
$sitetitle = $prop['name'];
$pb = " (Powered by Cype)";
$siteurl = $prop['siteurl'];
/* Download link for client */
$client = $prop['client'];
/* Server Version */
$version = $prop['version'];
/* Forum url*/
$forumurl = $prop['forumurl'];
/* Server Rates */
$exprate = $prop['exprate'];
$mesorate = $prop['mesorate'];
$droprate = $prop['droprate'];
/* Flood Prevention */
$cypeflood = $prop['flood'];
$pcap = $prop['pcap'];
/* Flood Interval */
$cypefloodint = $prop['floodint'];
/* Level for GMs and up */
$gmlevel = $prop['gmlevel'];
/* Accounts Per IP */
$MaxAcc = $prop['maxaccounts'];
/* Get Theme */
$theme = $prop['theme'];
$getdarkhemes = array("cyborg", "slate");
if (in_array($theme, $getdarkhemes)) {
    $themetype = "dark";
} else{
	$themetype = "light";
}
/*Get Vote Config*/
$vlink = $prop['vlink'];
$gnx = $prop['gnx'];
$gvp = $prop['gvp'];
$colnx = $prop['colnx'];
$colvp = $prop['colvp'];
$vtime = $prop['vtime'];
	
$censored = array("****","dick","fail","suck","cock","*****","ass","cunt","vagina","penis","cunt");
?>
Oh, I thought you were supposed to edit that! D: My bad, thanks for the update anyways. :)
 
Oh, I thought you were supposed to edit that! D: My bad, thanks for the update anyways. :)

No problem. By the way, if you're planning on testing Cype out, then update it from github. I've pushed out some major bug fixes which basically revamped the public, gmcp, ucp, misc, structure, and public folders (still need to do admin). I also fixed the GM Panel issues.
EDIT: Added background configuration (as well as banner config):
92VrJGJ - [ALPHA] CypeReboot - RaGEZONE Forums



EDIT2: Added centering options:
jbwAFyk - [ALPHA] CypeReboot - RaGEZONE Forums


ITAdfV1 - [ALPHA] CypeReboot - RaGEZONE Forums
 
Last edited:
Status
Not open for further replies.
Back