Page 1 of 1

"localhost/security" not working

PostPosted: 25. April 2014 05:47
by WhiteHatSkiddie
The following error occurs
Warning: include(lang/1%00'=1.php): failed to open stream: No such file or directory in C:\xampp\security\htdocs\index.php on line 12

Warning: include(): Failed opening 'lang/1%00'=1.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\security\htdocs\index.php on line 12


Here is the code for index.php
Code: Select all
<?php
   if (file_get_contents("lang.tmp") == "") {
      header("Location: splash.php");
      exit;
   }
?>

<html>
   <head>
      <meta name="author" content="Kai Oswald Seidler, Kay Vogelgesang, Carsten Wiedmann">
      <link rel="icon" href="img/xampp.ico">
      <?php include "lang/".file_get_contents("lang.tmp").".php"; ?>
      <title><?php echo $TEXT['global-xampp']; ?> | Security Section</title>
   </head>

   <frameset rows="68,*" border="0" framespacing="0">
      <frame name="head" src="head.php" frameborder="0" scrolling="no">
      <frameset cols="170,*" border="0" framespacing="0">
         <frame name="navi" src="navi.php" frameborder="0" scrolling="auto">
         <frame name="content" src="security.php" frameborder="0" marginwidth="20">
      </frameset>
   </frameset>
</html>

Basically i want to make a root password and an internet password when going into the localhost
I am using the xampp version 1.8.3-4

Re: "localhost/security" not working

PostPosted: 13. May 2014 23:12
by brianlurie
in file -> lang.tmp write only en -> set up english language and all will be correct

Re: "localhost/security" not working

PostPosted: 04. November 2014 17:51
by Bamsen
Uhm.. What am i supposed to type?

Re: "localhost/security" not working

PostPosted: 04. November 2014 17:52
by Bamsen
brianlurie wrote:in file -> lang.tmp write only en -> set up english language and all will be correct

What am i supposed to write in lang.tmp?

Re: "localhost/security" not working

PostPosted: 04. November 2014 20:21
by Nobbie
en

Re: "localhost/security" not working

PostPosted: 13. May 2015 21:29
by Terry.Ryder
same issue.

contents of lang.tmp:

1%00'=1


How should complete contents read?

Re: "localhost/security" not working

PostPosted: 13. May 2015 21:32
by Terry.Ryder
Sorry, got it. Entire file contents are:

en

This is working.
Thanks.