Register for your free account! | Forgot your password?

You last visited: Today at 12:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Apacche(Xampp)

Discussion on Apacche(Xampp) within the Dekaron Private Server forum part of the Dekaron category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2007
Posts: 554
Received Thanks: 136
Apacche(Xampp)

So I want to password my PlayersOnline and Cash etc how would i go about doing this, sorry if its been posted before, but i couldn't seem to find any leads on how to perform these actions.
xfactorbowler is offline  
Old 03/25/2010, 18:56   #2
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
google .htaccess or .htpasswd
pieter is offline  
Old 03/25/2010, 19:29   #3
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
...Or just add this to the beginning of the php script:
PHP Code:
<!-- Zombe's password protection !-->
<form name = "form1" method = "POST">
    Enter password:
    <br>
    <input type = "password" name = "pass">
    <input type = "submit" value = "Accept">
</form>
<?php if($_POST[pass]) { if($_POST[pass] <> "yourpassword") die("<p>Incorrect password."); } else die(); ?>
Don't forget to edit your password...
Zombe is offline  
Thanks
2 Users
Old 03/25/2010, 19:29   #4
 
elite*gold: 0
Join Date: Aug 2007
Posts: 554
Received Thanks: 136
I like zombies way better woot
xfactorbowler is offline  
Old 03/25/2010, 19:43   #5
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
Alright, the previous thingie I made had a problem that it asks for a password every single time, so I improved it a bit, made kind of a login-system, so it asks for a password only once an hour, after it was entered successfully.

PHP Code:
<?php
/* Zombe's password protection */
ob_start();
session_start();
if(!
$_SESSION[$_SERVER[PHP_SELF]])
?>
    <!-- Zombe's password protection !-->
    <form name = "form1" method = "POST">
        Enter password:
        <br>
        <input type = "password" name = "pass">
        <input type = "submit" value = "Accept">
    </form>
    <?php
    
if($_POST[pass])
    {
        if(
$_POST[pass] <> "yourpassword") die("<p>Incorrect password.");
    }
    else die();
    
$_SESSION[$_SERVER[PHP_SELF]] = true;
}
ob_end_flush();
?>
Zombe is offline  
Thanks
2 Users
Old 03/25/2010, 20:14   #6
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
Quote:
Originally Posted by Zombe View Post
Alright, the previous thingie I made had a problem that it asks for a password every single time, so I improved it a bit, made kind of a login-system, so it asks for a password only once an hour, after it was entered successfully.

PHP Code:
<?php
/* Zombe's password protection */
ob_start();
session_start();
if(!
$_SESSION[$_SERVER[PHP_SELF]])
?>
    <!-- Zombe's password protection !-->
    <form name = "form1" method = "POST">
        Enter password:
        <br>
        <input type = "password" name = "pass">
        <input type = "submit" value = "Accept">
    </form>
    <?php
    
if($_POST[pass])
    {
        if(
$_POST[pass] <> "yourpassword") die("<p>Incorrect password.");
    }
    else die();
    
$_SESSION[$_SERVER[PHP_SELF]] = true;
}
ob_end_flush();
?>
Great job
gedimazs is offline  
Old 03/25/2010, 20:17   #7
 
elite*gold: 0
Join Date: Aug 2007
Posts: 554
Received Thanks: 136
awesome my friend just frikn awesome
xfactorbowler is offline  
Old 03/26/2010, 13:16   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 948
Received Thanks: 242
Zombe is noobi He should work on our website
+7 Reported At: Fri 26 Mar 2010 - 13:15:55 GMT +1 Cause: Request Close
iAslana is offline  
Old 03/26/2010, 13:22   #9
 
elite*gold: 0
Join Date: Aug 2008
Posts: 8,097
Received Thanks: 3,359
#Case Closed
trane. is offline  
Closed Thread


Similar Threads Similar Threads
Easy[GUIDE] to make MuWeb 0.9 & Xampp + secure Xampp
06/28/2011 - Private Server - 11 Replies
http://i2.tinypic.com/869d9jc.jpg MuWeb 0.9 Okei i made an easy guide ..Some of people might find it hard. In order to install MuWeb 0.9 You have to use xampp (unless you want to install Zend Optimizer manual on the other webservers like easyphp,apache and so, I prefer xampp so this guide is based on xampp)
xampp
04/19/2010 - Metin2 Private Server - 0 Replies
hilfe mien xampp spinnt wnen ich auf mysql start gehe gehts an und direkt wieder aus genauso mit apache was ist da los kann mir jmd helfen ?
Xampp
02/28/2010 - General Coding - 2 Replies
Hallu E*PvP ich habe mal ne frage kan man eig über die ip seines pc eine hp mit xampp machen ? mfg tony.
Von Xampp zu ????
12/29/2009 - Metin2 Private Server - 0 Replies
Hallo ich hab den script von Lucy genommen alles hat auch geklappt aber wie mach ich jetz das andere auf die seite kommen weil ich komm ja bis jetz auf die seite mit http://localhost/regi u.s.w wie mach ich das sie nen gescheiten z.B Websuche hat?????



All times are GMT +1. The time now is 12:03.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.