[DEV] PixableCMS [r63 / PHP / HTML]

Status
Not open for further replies.

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Hey guys, this project is not a fail like ProjectET on which i have given up!
This project is going to be used on my own hotel Pixable,
I am going to make a demo of this cms so you can experience it with me.

So far i have an index & the config... The registration pages are nearly completed.
The login system is PHP & MySQL i doubt it will fail
I hope you enjoy the Snippets, Screenies and Development




To be done:
  • Index [100%]
  • Register [100%]
  • Me [5%]
  • News [5%]
  • Staff [5%]
  • Client [5%]
  • Config [100%]
  • /images [100%]
  • /inc [70%]
  • /css [50%]
  • /housekeeping [5%]
  • /install [100%]
  • /widgets [30%]
Snippets:
HTML:
<table><tr>
 
<td valign="top">
<div class="box_top"></div>
<div class="box_center">
 
<div class="testo"><img align="right" src="images/pesce.gif"><b>Note 1: <?php include '/widgets/note1.php' ?></b></a></div>
 
</div>
<div class="box_bottom"></div>
 
<div class="box_top"></div>
<div class="box_center">
 
<div class="testo"><img align="right" src="images/gruppo.gif"><b>Note 2: <?php include '/widgets/note2.php' ?></b></div>
 
</div>
<div class="box_bottom"></div>
 
<div class="box_top"></div>
<div class="box_center">
 
<div class="testo"><img align="right" src="images/papera.gif"><b>Note 3: <?php include '/widgets/note3.php' ?></b></div>
 
</div>
<div class="box_bottom"></div>
</td>
PHP:
<?php
<form action="">
Username: <input type="text" name="user"><br>
Password: <input type="password" name="password"></form>
<a href="/securitycheck.php"><button type="button">Login</button></a>
 
<p><b>Note:</b> The Login System is Glitched, you may need to login 2 times!</p>
?>
PHP:
<?php
 
$config['Site']['www'] = "http://localhost";
 
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "";
$config['MySQL']['database'] = "pixable";
 
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "http://127.0.0.1";
$config['MUS']['port'] = 30000;
 
//Edit your client on the /widgets/client.php file!
 
?>

Screenies:
2r3jyuq.png




20sdq8l.png



Thats all for now

-Legitimate.
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
New Feature:
Ive decided to learn more Javascript
and make the users choose what theme they want,

Themes:
Original
Habbo
Mango [RevCMS Based]
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Hope you can actually take this somewhere.

Good-Luck.
Haha, i will, this is only a beginners project,
when i learn more javascript v2.0 will be AMAZING,

like popup logins ect. 
1htrap.png


Based on Rev 3.0,
to make the configuration into my type of theme / style
was preee easy,

if a team rev person wants me to remove,
i understand! 
NEW:
me.php page is finished
wmo2dg.png


The bar on top is suppost to be links,
forgot to add x]
 

Sway

Ruby and Python are married.
Dec 19, 2010
194
76
That installation design is amazing,
good job Kryptos.

I wish you luck on this CMS development, it may turn out to be big but it is named after your hotel, which stinks.
Good luck, again.
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Im saving housekeeping & client for last,
i can edit it all through db atm,

im currently working on a templating system!
it will look like xenforo,
when you have just posted or made a thread,
at the top a grey box will pop up,
and reload you in the theme
:]

To add custom themes [EVEN FROM REV]
add it into the /themes folder & edit it in config,

This project is going to have OOP, MySQLi
And alot of javascript
 

AlexFallen

Developer
Jul 19, 2011
490
64
Just saying. That theme is a fansite theme :p
OT:
Looks good :D Keep it up and I hope to see this be finished!
 

Habbos

Member
Jul 3, 2010
140
4
Don't like the CMS exactly because it's based off a Fansite layout and though that the overall installation has been took from the Phoenix housekeeping
As well good luck
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Don't like the CMS exactly because it's based off a Fansite layout and though that the overall installation has been took from the Phoenix housekeeping
As well good luck
The installation layout (and almost everything) was from RevCMS 3.0, get your facts right...
Im going to do a new theme,
:]
Expecting that Ethan.. keep up the good work. Much better if it'll somehow reflect to the Habbo Illumina UI. :)
 

Habbos

Member
Jul 3, 2010
140
4
The installation layout (and almost everything) was from RevCMS 3.0, get your facts right...

Expecting that Ethan.. keep up the good work. Much better if it'll somehow reflect to the Habbo Illumina UI. :)

Fag :> those are right facts i just don't like it that it's based off the Layout i would notice better
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
The installation layout (and almost everything) was from RevCMS 3.0, get your facts right...

Expecting that Ethan.. keep up the good work. Much better if it'll somehow reflect to the Habbo Illumina UI. :)
The Layout is being changed,
and lol, my codes like
658097745x Different & Worse then rev.
 

Zak

Posting Freak
Mar 12, 2011
848
453
Haha, i will, this is only a beginners project,
when i learn more javascript v2.0 will be AMAZING,

like popup logins ect. 
1htrap.png


Based on Rev 3.0,
to make the configuration into my type of theme / style
was preee easy,

if a team rev person wants me to remove,
i understand! 
NEW:
me.php page is finished
wmo2dg.png


The bar on top is suppost to be links,
forgot to add x]

Shouldn't be a problem, long as credits are given to rightful owner.
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Shouldn't be a problem, long as credits are given to rightful owner.
yep, :] 
New:
For the login, the one im using, is fucking up, you have to login 3 times,
so i was thinking code a custom sha1 login? 
Security Check is FINISHED
my mate told me, why did the security check end halfway for login?
i said wat? then i checked,
i feel like a total noob,
well ive finished it :]

PHP:
<?php
include 'config.php';
/* check they filled in what they were supposed to and authenticate */
if(!$_POST['uname'] || !$_POST['passwd']) {
echo "You have not entered all your information.";
} else {
// Replace bad characters //
$_POST['uname'] = safe($_POST['uname']);
$_POST['passwd'] = safe($_POST['passwd']);
$qry = "SELECT * FROM users WHERE username = '".$_POST['uname']."'";
$sqlmembers = mysql_query($qry);
$info = mysql_fetch_array($sqlmembers);
$check = mysql_num_rows($sqlmembers);
if ($check == 0) {
echo "The username you have given does not exist.  Please try again.";
} else {
// check passwords match
$_POST['passwd'] = stripslashes($_POST['passwd']);
$passwrd = sha1($salt.$_POST['passwd']);
if ($passwrd != $info['password']) {
echo "The password you entered was incorrect.";
} else {
// if we get here username and password are correct,
//register cookie variables.
$usr = mysql_query("SELECT * FROM users WHERE username = '".$_POST['uname']."'");
        $msga = mysql_fetch_array($usr);
        $ida = $msga['id'];
 
        if($_POST['logon_all'] == 1) {
        $expire=time()+60*60*24*15;
        setcookie("username", $_POST['uname'], $expire);
       
        $expire=time()+60*60*24*15;
        setcookie("id", $ida, $expire);
       
        $expire=time()+60*60*24*15;
        setcookie("password", $passwrd, $expire);
 
        } else {
        $expire=time()+60*60;
        setcookie("username", $_POST['uname'], $expire);
       
        $expire=time()+60*60;
        setcookie("id", $ida, $expire);
       
        $expire=time()+60*60;
        setcookie("password", $passwrd, $expire);
       
        }
?>
&lt;script type="text/javascript">
<!--
window.location = "/index.php?id=profile"
//-->
</script>
<?php
}
}
}
?>

If you find any bugs in there please alert me
 

Predict

Active Member
Jun 27, 2011
126
63
I really like the look of this design, looks great! If you don't mind, could I offer you some screenshots on how to improve it from my own perspective?

I just looked at your PHP source above me and I've kinda messed around with it inside Notepad, might be an improvement.

PHP:
<?php
require_once ("config.php");
 
if (isset($_POST['uname']) && isset($_POST['passwd']))
{
    echo "You have not entered all your information.";
}
else
{
    $query1 = mysql_query("SELECT id, username, password FROM users WHERE username = '".safe($_POST['uname'])."' LIMIT 1");
    if (mysql_num_rows($query1) == 0)
    {
        echo "The username you have given does not exist.  Please try again.";
    }
    else
    {
        $row1 = mysql_fetch_assoc($query1);
        if (sha1($salt.$_POST['passwd']) != $row1['password'])
        {
            echo "The password you entered was incorrect.";
        }
        else
        {
            if ($_POST['logon_all'] == 1)
            {
                $expire = time() + 60*60*24*15;
                setcookie("username", $row1['username'], $expire);
                setcookie("id", $row1['id'], $expire);
                setcookie("password", $row1['password'], $expire);
 
            }
            else
            {
                $expire = time() + 60*60;
                setcookie("username", $row1['username'], $expire);
                setcookie("id", $row1['id'], $expire);
                setcookie("password", $row1['password'], $expire);
            }
           
            header ("Location: index.php?id=profile");
            exit;
        }
    }
}
?>
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
I really like the look of this design, looks great! If you don't mind, could I offer you some screenshots on how to improve it from my own perspective?

I just looked at your PHP source above me and I've kinda messed around with it inside Notepad, might be an improvement.

PHP:
<?php
require_once ("config.php");
 
if (isset($_POST['uname']) && isset($_POST['passwd']))
{
    echo "You have not entered all your information.";
}
else
{
    $query1 = mysql_query("SELECT id, username, password FROM users WHERE username = '".safe($_POST['uname'])."' LIMIT 1");
    if (mysql_num_rows($query1) == 0)
    {
        echo "The username you have given does not exist.  Please try again.";
    }
    else
    {
        $row1 = mysql_fetch_assoc($query1);
        if (sha1($salt.$_POST['passwd']) != $row1['password'])
        {
            echo "The password you entered was incorrect.";
        }
        else
        {
            if ($_POST['logon_all'] == 1)
            {
                $expire = time() + 60*60*24*15;
                setcookie("username", $row1['username'], $expire);
                setcookie("id", $row1['id'], $expire);
                setcookie("password", $row1['password'], $expire);
 
            }
            else
            {
                $expire = time() + 60*60;
                setcookie("username", $row1['username'], $expire);
                setcookie("id", $row1['id'], $expire);
                setcookie("password", $row1['password'], $expire);
            }
         
            header ("Location: index.php?id=profile");
            exit;
        }
    }
}
?>

Thanks man, this works,
im currently working on the css. 
Ive been working too hard, and ive got 20MB on my harddrive left,
Ill be on my laptop [not my desktop computer] for 1 - 2 weeks.
Since the files are on my computer ill be putting my project on hold.

Moderator please close thread untill I PM?
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Closed on request, message me for reopen.
 
Status
Not open for further replies.

Users who are viewing this thread

Top