MyCMS
Hello, RaGEZONE, today I am here to announce the official development of MyCMS!
MyCMS is a CMS based on nothing at all, completely from scratch! The CMS uses it's own include method, and is very secure, from how it is now!
This CMS will hopefully be a success! As I have just learnt PHP, so I am always upgrading the CMS, and fixing any errors I come across!
The CMS was developed by myself and PowahAlert, and he has left the rest of the work to me, so I can improve my PHP skills!
Image(s):
What have we coded?
Login - 100%
Register - 0%
Me.php - 50%
SSO - 100%
Logout - 100%
Client - 60%
The layout is being coded, right this second.
Snippet(s):
Me.php
Global.phpPHP Code:<?php
//###############################################
// MyKi's CMS.
// Help from PowahAlert
//###############################################
// Requiring Files.
@require_once 'global.php';
// Has the user logged in? If not, then they can gtfo to the index page!
if(!isset($_SESSION['MK_USER']))
{
Header("Location: index.php");
}
?>
PHP Code:if(isset($_SESSION['MK_USER']))
{
$username = $_SESSION['MK_USER'];
$query = mysql_query("SELECT * FROM users WHERE username = '$username'");
$assoc = mysql_fetch_assoc($query);
$password = $assoc['password'];
$coins = $assoc['credits'];
$mail = $assoc['mail'];
$look = $assoc['look'];
}
Class.core SSOPHP Code:// Variables for My CMS.
$fetch = mysql_fetch_assoc(mysql_query("SELECT * FROM server_status"));
$hotel_name = $fetch['site_name'];
$server = $fetch['server_ver'];
Password encryptionPHP Code:function SSO_TICKET($username)
{
$rand1 = rand(100000, 999999);
$rand2 = rand(10000, 99999);
$rand3 = rand(10000, 99999);
$rand4 = rand(10000, 99999);
$rand5 = rand(10000, 99999);
$rand6 = rand(1, 9);
$ip=@$REMOTE_ADDR;
$ticket = "ST-".$rand1."-".$rand2.$rand3."-".$rand4.$rand5."-mycms-".$rand6;
mysql_query("UPDATE users SET auth_ticket = '" . $ticket . "' WHERE username = '" . $username . "'");
mysql_query("UPDATE users SET last_ip = '$ip' WHERE username = '$username'");
return $ticket;
}
}
What emulator will this work with?PHP Code:$password = sha1(md5($_POST['password'] . $salt) . $salt);
The CMS will work with Phoenix Emulator!
There are no images, yet. I will keep you guys updated on what's going on with the CMS.
I will also be re-coding everything into functions, instead of everything in the global.php.
If you have any constructive criticism, post!
Please, don't spam me, I'm quite new to PHP, so to me, this ig good work, so far.
Thanks to PowahAlert for all the help he's given me!





![MyCMS [PHP, Secure, Fast]](http://ragezone.com/hyper728.png)


