Putako CMS

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 40
  1. #16
    Banned SuperCode is offline
    BannedRank
    Mar 2011 Join Date
    12Posts

    Re: Putako CMS

    Viroware, that gave me an idea.
    Use the function <?php include("potaku.php"); ?> in order to shorten the code.

    This is simple to use And here is how:
    <?php

    include_once('_class/simpleCMS.php');
    $obj = new simpleCMS();

    /* CHANGE THESE SETTINGS FOR YOUR OWN DATABASE */
    $obj->host = 'localhost';
    $obj->username = 'root';
    $obj->password = '3124bk123';
    $obj->table = 'phoenix';
    $obj->connect();

    if ( $_POST )
    $obj->write($_POST);

    if (isset($_GET['admin'])){
    echo ( $_GET['admin'] == 1 ) ? $obj->display_admin() : $obj->display_public();
    } else {
    echo $obj->display_public();
    }

    ?>
    Add the above code into a file called "potakucms.php" and add the code <?php include("potakucms.php"); ?> to where ever on your web page you want this to be shown. Be sure to include "simpleCMS.php" Which you can refer to my other post in order to find out.

  2. #17
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    Quote Originally Posted by viroware View Post
    yo putako why didnt u just add that code i edited for u into the release instead of geting ppl to do it thereself? Its geting better i guess but more security is very inportant.
    Because it disables them from posting.
    Last edited by CrashOveride; 07-03-11 at 01:41 AM.

  3. #18
    Banned SuperCode is offline
    BannedRank
    Mar 2011 Join Date
    12Posts

    Re: Putako CMS

    If you wish to have a Login account Please refer to below.

    The posting is simple. Its in the adress bar too (/putakocms/index.php?admin=1) so we're going to work on that.

    You'll need a database called "potaku"
    First start off with an admin login page
    (This Our Main Login. "INDEX.PHP"):
    <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
    <form name="form1" method="post" action="checklogin.php">
    <td>
    <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
    <td colspan="3"><strong>Member Login </strong></td>
    </tr>
    <tr>
    <td width="78">Username</td>
    <td width="6">:</td>
    <td width="294"><input name="myusername" type="text" id="myusername"></td>
    </tr>
    <tr>
    <td>Password</td>
    <td>:</td>
    <td><input name="mypassword" type="text" id="mypassword"></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="Login"></td>
    </tr>
    </table>
    </td>
    </form>
    </tr>
    </table>
    So now we've got it connected to our MYSQL Database. Although we don't have a mysql database.
    Use this:
    CREATE TABLE `members` (
    `id` int(4) NOT NULL auto_increment,
    `username` varchar(12) NOT NULL default '',
    `password` varchar(32) NOT NULL default '',
    PRIMARY KEY (`id`)
    ) TYPE=MyISAM AUTO_INCREMENT=2 ;

    --
    -- Dumping data for table `members`
    --

    INSERT INTO `members` VALUES (1, 'admin', 'password');
    Now we've got the MYSQL Database and the Login page although it doesn't have a location to check if the information is on the database. Add "checklogin.php" (Where the Login will check):
    <?php
    $host="localhost"; // Host name
    $username=""; // Mysql username
    $password=""; // Mysql password
    $db_name="potaku"; // Database name
    $tbl_name="members"; // Table name

    // Connect to server and select databse.
    mysql_connect("$host", "$username", "$password")or die("cannot connect");
    mysql_select_db("$db_name")or die("cannot select DB");

    // username and password sent from form
    $myusername=$_POST['myusername'];
    $mypassword=$_POST['mypassword'];

    // To protect MySQL injection (more detail about MySQL injection)
    $myusername = stripslashes($myusername);
    $mypassword = stripslashes($mypassword);
    $myusername = mysql_real_escape_string($myusername);
    $mypassword = mysql_real_escape_string($mypassword);

    $sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
    $result=mysql_query($sql);

    // Mysql_num_row is counting table row
    $count=mysql_num_rows($result);
    // If result matched $myusername and $mypassword, table row must be 1 row

    if($count==1){
    // Register $myusername, $mypassword and redirect to file "login_success.php"
    session_register("myusername");
    session_register("mypassword");
    header("location:login_success.php");
    }
    else {
    echo "Wrong Username or Password";
    }
    ?>
    Now we've got the page where we have it all setup. So we'll have to now add some secuirty:
    <?
    session_start();
    if(!session_is_registered(myusername)){
    header("location:main_login.php");
    }
    ?>
    You'll need to add that to the page of which the login will go to (Login_success.php).

    In order to log out use:
    <?
    session_start();
    session_destroy();
    ?>
    (The Page "login_success.php" is where if "checklogin" wasn't wrong the user will be sent to. So Make sure to have The Session start code. Also THe Page "Login_success.php"
    Last edited by SuperCode; 06-03-11 at 07:45 PM.

  4. #19
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    Quote Originally Posted by SuperCode View Post
    If you wish to have a Login account Please refer to below.

    The posting is simple. Its in the adress bar too (/putakocms/index.php?admin=1) so we're going to work on that.



    First start off with an admin login page
    (This Our Main Login. "INDEX.PHP"):


    So now we've got it connected to our MYSQL Database. Although we don't have a mysql database.
    Use this:


    Now we've got the MYSQL Database and the Login page although it doesn't have a location to check if the information is on the database. Add "checklogin.php" (Where the Login will check):


    Now we've got the page where we have it all setup. So we'll have to now add some secuirty:

    You'll need to add that to the page of which the login will go to (Login_success.php).

    In order to log out use:
    We will have 3 different demos, one with the WYSIWYG editor and one with a login for security and one for original putako.

  5. #20
    Banned SuperCode is offline
    BannedRank
    Mar 2011 Join Date
    12Posts

    Re: Putako CMS

    Okay. I'll modify the "putakocm.zip" file in order to have the security required.

    Although we'll have to make it more confusing with login sessions and so fourth. So it will be for "fairly new" to PHP Users.

  6. #21
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    I hate to say that the devolpment has come to a stop do to lack of recources. My team brandon fucked me over so I cannot continue on putakoCMS v2, I will be releasing a brand new CMS later on. All the best, Jayden.
    Please close this thread

    ---------- Post added at 06:44 AM ---------- Previous post was at 05:25 AM ----------

    If you want in on the new cms contact me asap.

  7. #22
    Banned SuperCode is offline
    BannedRank
    Mar 2011 Join Date
    12Posts

    Re: Putako CMS

    This is not a cms. This is a guestbook, and no I didn't fuck you over. Last thing I remember is you being a poor sport, screwing up my website, tracking my location, calling my house at 11PM, and trying to act tough. So yeah You're the one who fucked me over.

    Bad Released....

  8. #23
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    Quote Originally Posted by SuperCode View Post
    This is not a cms. This is a guestbook, and no I didn't fuck you over. Last thing I remember is you being a poor sport, screwing up my website, tracking my location, calling my house at 11PM, and trying to act tough. So yeah You're the one who fucked me over.

    Bad Released....
    I do not belive so.. A cms is a content managment system were you can manage your content. This is a small cms I made for myself to work off of and get others opinions. You are clearly entitled to yours, I called you because you were making legal threats to sue me and such and you messaged my mothers private profile saying your sueing me LOL! So I contacted you to talk to you. Its not illegal to trace an ip address.

  9. #24
    Banned SuperCode is offline
    BannedRank
    Mar 2011 Join Date
    12Posts

    Re: Putako CMS

    Excuse me?
    Check your moms Chat again and notice that I didn't threaten you in any form. As for our discuissions. I also didn't threaten you therefore you're misleading others. Plus you're a huge idiot faking legal documents.

    Thanks. This isn't a CMS because there is no control panel, nor is there a management system.

  10. #25
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    Quote Originally Posted by SuperCode View Post
    Excuse me?
    Check your moms Chat again and notice that I didn't threaten you in any form. As for our discuissions. I also didn't threaten you therefore you're misleading others. Plus you're a huge idiot faking legal documents.

    Thanks. This isn't a CMS because there is no control panel, nor is there a management system.
    Actually you threatend me with "i am going to sue you if you call my mom again" or some shit. I have the chat logs and if you don't just drop this then I will seriously call your mother and ask her to monitor your little boy porn fetishes.

    ---------- Post added at 10:00 PM ---------- Previous post was at 08:55 PM ----------

    Oh shiz guiz guss wut? V2 is almost finished.

  11. #26
    Grenafukindear Grenadier is offline
    MemberRank
    Feb 2010 Join Date
    127.0.0.1Location
    1,299Posts

    Re: Putako CMS

    Good luck with this i hope it works out if were lucky UberCMS might be old news soon piece of... SHIT

  12. #27
    Entrepreneur & Investor chadderbox is offline
    MemberRank
    Jun 2008 Join Date
    Look Behind YouLocation
    2,229Posts

    Re: Putako CMS

    Live Demo is down..

  13. #28
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    Quote Originally Posted by chadderbox View Post
    Live Demo is down..
    Do not bump..

  14. #29
    Hm. foxx is offline
    MemberRank
    Sep 2006 Join Date
    Czech RepublicLocation
    5,257Posts

    Re: Putako CMS

    you mean like you just did?

  15. #30
    Account Upgraded | Title Enabled! Putako is offline
    MemberRank
    Mar 2011 Join Date
    CanadaLocation
    542Posts

    Re: Putako CMS

    Quote Originally Posted by foxx View Post
    you mean like you just did?
    It was already bumped, Lol. Just please let this thread die, It was an old project.



Page 2 of 3 FirstFirst 123 LastLast

Advertisement