Free website template

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Apprentice blietzkrieg is offline
    MemberRank
    Jul 2013 Join Date
    8Posts

    cool Free website template

    Here is a free TANTRA ONLINE website template for everyone. Feel free to use but please dont alter the credits. ;)

    If you have questions you can ask or need help.

    If you need customized and premium site as well just contact me or leave a message.

    Here is the LINK : http://www.4shared.com/rar/_V0r-aBgb...eTemplate.html

    Preview is attached below.



    Enjoy!
    Attached Thumbnails Attached Thumbnails 10258051_1625578294334027_7819000142474215383_n.jpg  
    Last edited by blietzkrieg; 07-07-14 at 11:11 PM.


  2. #2
    Account Upgraded | Title Enabled! GMDeveloper1 is offline
    MemberRank
    Mar 2013 Join Date
    328Posts

    Re: Free website template

    Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 49

    Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 53





    error found

  3. #3
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Re: Free website template

    Quote Originally Posted by GMDeveloper1 View Post
    Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 49

    Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'LoginAttempts'. (severity 16) in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\config\auth.php on line 53





    error found

    You need the table "LoginAttempts" in "UserLogin" database. It's what it say the error log.

  4. #4
    Valued Member John Ray is offline
    MemberRank
    Jan 2013 Join Date
    Zamboanga City,Location
    143Posts

    Re: Free website template

    error here! help!!

    Warning: mssql_query() [function.mssql-query]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_query() [function.mssql-query]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 49

    Warning: mssql_query() [function.mssql-query]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_query() [function.mssql-query]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 53

    here is the auth.php
    <?phprequire_once('config/config.php');


    session_start();


    if($_POST["txtUsername"] != "" && $_POST["txtPassword"] != "") {


    $loginusername = str_replace("'", "''", $_POST["txtUsername"]); //anti sql injections para nws
    $loginusername = str_replace("</", "&lt/", $_POST["txtUsername"]);
    $loginusername = str_replace("#", "&#35", $_POST["txtUsername"]);
    $loginusername = str_replace("'", "&apos;", $_POST["txtUsername"]);


    $loginpassword = str_replace("'", "''", $_POST["txtPassword"]);
    $loginpassword = str_replace("</", "&lt/", $_POST["txtPassword"]);
    $loginpassword = str_replace("#", "&#35", $_POST["txtPassword"]);
    $loginpassword = str_replace("'", "&apos;", $_POST["txtPassword"]);




    if(isset($loginusername) && isset($loginpassword)){


    $result2=mssql_query("select * from Account
    where UserID='" . $loginusername . "' and Password='" . $loginpassword . "'");




    $num2=mssql_num_rows($result2);
    }


    if($num2 = 1){


    $_SESSION['username']= $loginusername;
    $_SESSION['password']= $loginpassword;
    }
    }


    if (isset($_SESSION['username']) && isset($_SESSION['password'])) {


    $result=mssql_query("select * from Account
    where UserID='" . $_SESSION['username'] . "' and Password='" . $_SESSION['password'] . "'");




    $num=mssql_num_rows($result);


    }




    $IP = $_SERVER['REMOTE_ADDR'];


    $select = mssql_query("SELECT * FROM LoginAttempts WHERE IP = '$IP'");
    $selectrow = mssql_fetch_array($select);
    $LastLogin = $selectrow["IP"];
    $Attempts = $selectrow["Attempts"];
    $selectdiff = mssql_query("SELECT DATEDIFF(n,LastLogin,getdate()) FROM LoginAttempts WHERE IP = '$IP'");
    $selecteddiff = mssql_fetch_array($selectdiff);


    if($num < 1 && $_POST["txtUsername"] != "" && $_POST["txtPassword"] != ""){


    if($LastLogin == ''){
    mssql_query("INSERT INTO LoginAttempts VALUES('$IP', '1', getdate())");


    }


    elseif($LastLogin != ''){
    if($Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] < '5')
    {
    $Attemps1 = $Attempts + 1;
    mssql_query("UPDATE LoginAttempts SET Attempts='$Attemps1', LastLogin=getdate() WHERE IP='$IP'");
    }


    elseif($Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] >= '5'){
    mssql_query("UPDATE LoginAttempts SET Attempts='1', LastLogin = getdate() WHERE IP='$IP'");
    }
    }








    $logeado = 2;
    }


    elseif ($num < 1) {
    if($LastLogin == ''){
    $logeado = 0;
    }
    elseif($LastLogin != '' && $Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] < '5'){
    $logeado = 2;
    }
    elseif($LastLogin != '' && $Attempts >= '1' && $Attempts <= '4' && $selecteddiff[0] >= '5'){
    $logeado = 0;
    mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
    }
    elseif($LastLogin != '' && $Attempts == '5'){
    $logeado = 2;
    }
    elseif($LastLogin != '' && $Attempts == '5' && $selecteddiff[0] < '15'){
    $logeado = 0;
    mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
    }


    }




    else {


    if($Attempts < '5'){
    $logeado = 1;
    mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
    }


    elseif($Attempts == '5' && $selecteddiff[0] >= '15'){
    $logeado = 1;
    $delete = mssql_query("DELETE From LoginAttempts WHERE IP='$IP' ");
    }


    elseif($Attempts == '5' && $selecteddiff[0] < '15'){
    $logeado = 2;
    }


    }



    ?>

    Last edited by John Ray; 14-08-14 at 07:48 AM.

  5. #5
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Re: Free website template

    Quote Originally Posted by John Ray View Post
    error here! help!!

    Warning: mssql_query() [function.mssql-query]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_query() [function.mssql-query]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 48

    Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 49

    Warning: mssql_query() [function.mssql-query]: Unable to connect to server: (null) in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_query() [function.mssql-query]: A link to the server could not be established in C:\xampp\htdocs\config\auth.php on line 52

    Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\config\auth.php on line 53

    here is the auth.php

    Your problem are in the info of config.php

  6. #6
    Unknown marcuel is offline
    MemberRank
    Mar 2010 Join Date
    499Posts

    Re: Free website template

    edit the config.php and connect it to you're database guys,

  7. #7
    Account Upgraded | Title Enabled! GMDeveloper1 is offline
    MemberRank
    Mar 2013 Join Date
    328Posts

    Re: Free website template

    <?php
    //
    // Description : Script anti flood
    // Version : 0.0.1
    // Auteur : Atmoner
    // Url : http://httpscript.org
    //
    if (!isset($_SESSION)) {
    session_start();
    }
    // anti flood protection
    if($_SESSION['last_session_request'] > time() - 2){
    // users will be redirected to this page if it makes requests faster than 2 seconds
    header("location: http://httpscript.org");
    exit;
    }
    $_SESSION['last_session_request'] = time();
    ?>

  8. #8
    Tantra Freelancer A v a r a is offline
    MemberRank
    Apr 2014 Join Date
    In Your HeadLocation
    554Posts

    Re: Free website template

    I hope you guys can share on how to send item using website.

  9. #9
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Re: Free website template

    Quote Originally Posted by A v a r a View Post
    I hope you guys can share on how to send item using website.
    OLD's admin panel...

  10. #10
    Tantra Freelancer A v a r a is offline
    MemberRank
    Apr 2014 Join Date
    In Your HeadLocation
    554Posts

    Re: Free website template

    Quote Originally Posted by John View Post
    OLD's admin panel...
    Where can I find that? is the owner name "OLD" or do you mean literally old ?

  11. #11
    Ronin Dev John is offline
    MemberRank
    Mar 2011 Join Date
    /dev/nullLocation
    382Posts

    Re: Free website template

    Sorry, the old admin panel.

  12. #12
    Account Upgraded | Title Enabled! GMDeveloper1 is offline
    MemberRank
    Mar 2013 Join Date
    328Posts

    Re: Free website template

    can anyone help me with my problem I used to activate the accounts manually b'coz it won't send to their respective emails can anyone share their knowledge here

  13. #13
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Free website template


  14. #14
    Tantra Freelancer A v a r a is offline
    MemberRank
    Apr 2014 Join Date
    In Your HeadLocation
    554Posts

    Re: Free website template

    Quote Originally Posted by John View Post
    Sorry, the old admin panel.
    I still didn't get what you mean. Could you be so kind to post the link of this old admin panel?

  15. #15
    Account Upgraded | Title Enabled! GMDeveloper1 is offline
    MemberRank
    Mar 2013 Join Date
    328Posts

    Re: Free website template

    @jbeitz stmp won't work in xampp 1.7.3 it won't save in email



Page 1 of 2 12 LastLast

Advertisement