causefx 9 лет назад
Родитель
Сommit
b40001c828
3 измененных файлов с 9 добавлено и 13 удалено
  1. 1 1
      index.php
  2. 3 7
      settings.php
  3. 5 5
      setup.php

+ 1 - 1
index.php

@@ -1,5 +1,5 @@
 <?php
-
+error_reporting (E_ALL ^ E_NOTICE);
 try {
     $config = parse_ini_file('settings.ini.php', true);
 } catch(Exception $e) {

+ 3 - 7
settings.php

@@ -1,9 +1,9 @@
 <?php
-
+error_reporting (E_ALL ^ E_NOTICE);
 try {
     $config = parse_ini_file('settings.ini.php', true);
 } catch(Exception $e) {
-    die('<b>Unable to read config.ini.php. Did you rename it from settings.ini.php-example?</b><br><br>Error message: ' .$e->getMessage());
+    die('<b>Unable to read config.ini.php. Did you rename it from example.ini.php?</b><br><br>Error message: ' .$e->getMessage());
 }
 
 foreach ($config as $keyname => $section) {
@@ -68,12 +68,8 @@ function write_ini_file($content, $path) {
     return $success; 
 }
 
-//ini_set('display_errors',1);  error_reporting(E_ALL);
-
 $configfile = 'settings.ini.php';
 
-
-
 //Password crap
 if(array_key_exists('category-0', $_POST) == true){
     foreach ($config as $keyname => $section) { if(($keyname == "general")) { $nopass = $section["password"]; } }
@@ -600,7 +596,7 @@ if(array_key_exists('category-0', $_POST) == true){
 
         <!-- Bootstrap-Iconpicker -->
         <script type="text/javascript" src="js/bootstrap-iconpicker.min.js"></script>
-                <script src="https://code.jquery.com/jquery-2.2.2.min.js"></script>
+        <script src="https://code.jquery.com/jquery-2.2.2.min.js"></script>
         <script src="js/bootstrap-colorpicker.js"></script>
 
     </body>

+ 5 - 5
setup.php

@@ -1,11 +1,11 @@
 <?php
-
+error_reporting (E_ALL ^ E_NOTICE);
 $configfile = 'settings.ini.php';
 $examplefile = 'example.ini.php';
 
 if(isset($_GET["action"])){$action = $_GET["action"];}
 
-if(!file_exists($filename) && !file_exists($examplefile)){
+if(!file_exists($configfile) && !file_exists($examplefile)){
     die('You are missing the ini configuration file, please download and refresh this page');
 }
 
@@ -28,7 +28,7 @@ if(!file_exists($configfile)){
 try {
     $config = parse_ini_file('settings.ini.php', true);
 } catch(Exception $e) {
-    die('<b>Unable to read config.ini.php. Did you rename it from settings.ini.php-example?</b><br><br>Error message: ' .$e->getMessage());
+    die('<b>Unable to read config.ini.php. Did you rename it from example.ini.php?</b><br><br>Error message: ' .$e->getMessage());
 }
 
 foreach ($config as $keyname => $section) {
@@ -67,8 +67,8 @@ if($_COOKIE["logged"] == $hash_pass){
 
 if(!password_verify($pass, $hash_pass)){
 
-    echo "<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css'>";
-    echo "<center><B>Please Login to Contiune<br/><br/>";
+    echo "<link rel='stylesheet prefetch' href='css/bootstrap.min.css'>";
+    echo "<center><B>Please Login to Continue<br/><br/>";
     echo $error . "<br/>";
     echo "<form action=\"?action=write\" method='POST'>";
     echo "<div class=\"form-group clearfix well well-sm\" style=\"width: 300px; padding-bottom: 0px; padding-top: 10px; margin-bottom: 5px;\">";