PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    forgot password,register,welcome, FREE_REGISTRATION mysql

    Share
    avatar
    saglik216

    Number of posts : 2
    Registration date : 2009-07-29

    forgot password,register,welcome, FREE_REGISTRATION mysql

    Post  saglik216 on Thu Oct 21, 2010 2:42 am

    1:)create new table settings

    Code:
    CREATE TABLE `settings` (
      `id` int(11) NOT NULL default '1',
      `site_name` varchar(100) character set utf8 NOT NULL,
      `site_title` varchar(500) character set utf8 NOT NULL,
      `descripts` text character set utf8 NOT NULL,
      `keywords` text character set utf8 NOT NULL,
      `site_url` varchar(500) character set utf8 NOT NULL,
      `free_reg` enum('true','false') character set utf8 NOT NULL,
      `aktivasyon` enum('true','false') character set utf8 NOT NULL,
      `reaktivasyon` enum('true','false') character set utf8 NOT NULL,
      `forgot_password` enum('true','false') character set utf8 NOT NULL,
      `istatistik` enum('true','false') character set utf8 NOT NULL,
      `istatistik_sayi` enum('true','false') character set utf8 NOT NULL,
      `welcome` enum('true','false') character set utf8 NOT NULL,
      `from` varchar(100) character set utf8 NOT NULL,
      `site_mail` varchar(100) character set utf8 NOT NULL,
      `personal_msg` enum('true','false') character set utf8 NOT NULL,
      `site_rules` text character set utf8 NOT NULL,
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE=ucs2_turkish_ci;

    INSERT INTO `settings` VALUES (1, 'cepprogramlama.com', 'cepprogramlama sites', mobile', 'python,programming', 'http://cepprogramlama.com/', 'true', 'true', 'true', 'true', 'true', 'true', 'true', 'admin', 'admin@cepprogramlama.com', 'true', '<ul><li>Rule 1. <br></li><li>Rule 2. <br></li><li>Rule 3. <br></li><li>Rule 4.</li></ul>');

    2:) find and replace below code
    Code:

    <title><?php echo $site_title; ?></title>
    <meta name="description" content="<?php echo $descripts; ?>" />
    <meta name="keywords" content="<?php echo $keywords; ?>" />
    find include/constants.php and below code paste here
    Code:

    $site_title=    $row_settings["site_title"];
    $descripts=      $row_settings["descriptler"];
    $keywords=      $row_settings["keywordler"];
    $site_name=      $row_settings["site_name"];
    $site_url=      $row_settings["site_url"];
    $free_register=  $row_settings["free_register"];
    $aktivasyon=    $row_settings["aktivasyon"];
    $reaktivasyon=  $row_settings["reaktivasyon"];
    $forgot_password=$row_settings["forgot_password"];
    $istatistik=    $row_settings["istatistik"];
    $istatistik_sayi=$row_settings["istatistik_sayi"];
    $welcome=        $row_settings["welcome"];
    $personal_msg=  $row_settings["personal_msg"];
    $site_mail=      $row_settings["site_mail"];
    $from=          $row_settings["from"];
    $site_rules=    $row_settings["site_rules"];


    Code:
    <?
    /**
     * User has already logged in, so display relavent links, including
     * a link to the admin center if the user is an administrator.
     */
    if($session->logged_in){
      if($personal_msg=="true")






    Code:


    <?php if($free_register=="true"){
       echo "<font size='2'><a href='register.php'>Register</a>";
    }
    if($forgot_password=="true"){
       echo " | <a href="forgot_password.php">Forgot Password?</a>";
    }
    if($Welcome=="true"){
       if($reaktivasyon=="true"){
          echo " | <a href='validate.php'>Validate Required?</a>";
          }
       }
    ?>

    avatar
    saglik216

    Number of posts : 2
    Registration date : 2009-07-29

    register.php

    Post  saglik216 on Thu Oct 21, 2010 2:48 am

    Code:
    <strong><?php echo iconv("iso-8859-9", "utf-8", $site_rules); ?></strong>


    Code:

    <br>
    <p ><td valign="bottom">
    <form action="process.php" method="POST">
          <table width="100%" border="0">
            <tr>
              <td>&nbsp;</td>
                <td><input type="checkbox" name="accept_terms" value="1">
                  I Read and accept this rules.</td>
                <td><?php echo $form->error("accept_terms"); ?></td>


      Current date/time is Mon Nov 20, 2017 9:33 am