Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed Configure.php

  • Loading branch information...
commit 994e3f561bde783715171c74a9bcfd054b064ff3 1 parent d860dbc
@Helias authored
Showing with 9 additions and 42 deletions.
  1. +0 −32 Configure.php
  2. +8 −8 Connect.php
  3. +1 −2  characters.php
View
32 Configure.php
@@ -1,32 +0,0 @@
-<?php
-$s=$_GET['server'];
-$user=$_GET['username'];
-$pwd=$_GET['password'];
-$mangos=$_GET['mangos'];
-$characters=$_GET['characters'];
-$nomefile="db-config.php";
-$file = fopen($nomefile, "w+");
-$testo= "<?php
-\$Server=\"$s\";
-\$Username=\"$user\";
-\$Password=\"$pwd\";
-\$Database=\"$mangos\";
-\$Characters=\"$characters\";
-\$db=mysql_connect(\$Server, \$Username, \$Password);
-\$Databases=mysql_select_db(\"\$Database\", \$db);
-if (!\$db)
-{
- echo \"Can't connect to mysql!\";
-}
-if (!\$Databases)
-{
- echo \"Can't connect to the database!\";
- header(\"location:Connect.html\");
-}
-?>
-";
-fwrite($file, $testo);
-fclose($file);
-
-header("location:index.php");
-?>
View
16 Connect.php
@@ -98,14 +98,14 @@ function config(form)
$nomefile="db-config.php";
$file = fopen($nomefile, "w+");
$testo= "<?php
- \$Server=\"$server\";
- \$Username=\"$user\";
- \$Password=\"$pwd\";
- \$Database=\"$world\";
- \$Characters=\"$characters\";
- \$connect=mysql_connect(\$Server, \$Username, \$Password);
- \$Databases=mysql_select_db(\"\$Database\", \$connect);
- ?>
+\$Server=\"$server\";
+\$Username=\"$user\";
+\$Password=\"$pwd\";
+\$Database=\"$world\";
+\$Characters=\"$characters\";
+\$connect=mysql_connect(\$Server, \$Username, \$Password);
+\$Databases=mysql_select_db(\"\$Database\", \$connect);
+?>
";
fwrite($file, $testo);
fclose($file);
View
3  characters.php
@@ -24,7 +24,6 @@
$guid="Write guid";
$row="";
}
-$online=htmlspecialchars($row['online']);
?>
<style type="text/css">
.input_box {
@@ -52,7 +51,7 @@
<td>cinematic</td>
</tr>
<tr>
-<td><input type="checkbox" <?php if($online==1){echo "checked=\"true\"";}?> name="online"></td>
+<td><input type="checkbox" <?php if(htmlspecialchars($row['online'])==1){echo "checked=\"true\"";}?> name="online"></td>
<td><input type="checkbox" <?php if (htmlspecialchars($row['is_logout_resting']) == 1){echo "checked=\"true\"";}?> name="is_logout_resting"></td>
<td><input type="checkbox" <?php if (htmlspecialchars($row['at_login']) == 1){echo "checked=\"true\"";} ?> name="at_login"></td>
<td><input type="checkbox" <?php if (htmlspecialchars($row['cinematic']) == 1){echo "checked=\"true\"";} ?> name="cinematic"></td>
Please sign in to comment.
Something went wrong with that request. Please try again.