-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php7 + recreated (All?) the tables in a SQL
- Loading branch information
Showing
9 changed files
with
159 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<?php | ||
|
||
$db = mysql_connect("***", "***", "***") or die("Could not connect."); | ||
$db = mysqli_connect("localhost", "root","YOURPASSWORD","db123450_merveilles") or die("Could not connect."); | ||
if(!$db) | ||
die("no db"); | ||
if(!mysql_select_db("db124350_merveilles",$db)) | ||
if(!mysqli_select_db($db,"db123450_merveilles")) | ||
die("No database selected."); | ||
if(!get_magic_quotes_gpc()) | ||
{ | ||
$_GET = array_map('mysql_real_escape_string', $_GET); | ||
$_POST = array_map('mysql_real_escape_string', $_POST); | ||
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); | ||
$_GET = array_map(array($db, 'real_escape_string'), $_GET); | ||
$_POST = array_map(array($db, 'real_escape_string'), $_POST); | ||
$_COOKIE = array_map(array($db, 'real_escape_string'), $_COOKIE); | ||
} | ||
else | ||
{ | ||
$_GET = array_map('stripslashes', $_GET); | ||
$_POST = array_map('stripslashes', $_POST); | ||
$_GET = array_map('stripslashes', $_GET); | ||
$_POST = array_map('stripslashes', $_POST); | ||
$_COOKIE = array_map('stripslashes', $_COOKIE); | ||
$_GET = array_map('mysql_real_escape_string', $_GET); | ||
$_POST = array_map('mysql_real_escape_string', $_POST); | ||
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); | ||
$_GET = array_map(array($db, 'real_escape_string'), $_GET); | ||
$_POST = array_map(array($db, 'real_escape_string'), $_POST); | ||
$_COOKIE = array_map(array($db, 'real_escape_string'), $_COOKIE); | ||
} | ||
|
||
?> | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
-- MySQL dump 10.16 Distrib 10.1.31-MariaDB, for Linux (x86_64) | ||
-- | ||
-- Host: localhost Database: db123450_merveilles | ||
-- ------------------------------------------------------ | ||
-- Server version 10.1.31-MariaDB | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
|
||
-- | ||
-- Table structure for table `xiv_merveilles` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `xiv_merveilles`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `xiv_merveilles` ( | ||
`mv_name` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`mv_password` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`x` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`y` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`floor` int(11) DEFAULT NULL, | ||
`max_floor` int(11) DEFAULT NULL, | ||
`xp` int(11) DEFAULT NULL, | ||
`hp` int(11) DEFAULT NULL, | ||
`mp` int(11) DEFAULT NULL, | ||
`kill` tinyint(1) DEFAULT NULL, | ||
`save` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`message` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`message_timestamp` datetime DEFAULT NULL, | ||
`avatar_head` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`avatar_body` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`warp1` int(11) DEFAULT NULL, | ||
`warp2` int(11) DEFAULT NULL, | ||
`warp3` int(11) DEFAULT NULL, | ||
`warp4` int(11) DEFAULT NULL, | ||
`mv_time` int(11) DEFAULT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Table structure for table `xiv_merveilles_monsters` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `xiv_merveilles_monsters`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `xiv_merveilles_monsters` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`x` int(11) DEFAULT NULL, | ||
`y` int(11) DEFAULT NULL, | ||
`health` int(11) DEFAULT NULL, | ||
`time` int(11) DEFAULT NULL, | ||
`floor` int(11) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
||
-- | ||
-- Table structure for table `xiv_merveilles_special` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `xiv_merveilles_special`; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `xiv_merveilles_special` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`x` int(11) DEFAULT NULL, | ||
`y` int(11) DEFAULT NULL, | ||
`message` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | ||
`to_floor` int(11) DEFAULT NULL, | ||
`to_x` int(11) DEFAULT NULL, | ||
`to_y` int(11) DEFAULT NULL, | ||
`image` int(11) DEFAULT NULL, | ||
`floor` int(11) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||
|
||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
|
||
-- Dump completed on 2018-04-10 0:04:54 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- MySQL dump 10.16 Distrib 10.1.31-MariaDB, for Linux (x86_64) | ||
-- | ||
-- Host: localhost Database: xiv_merveilles | ||
-- ------------------------------------------------------ | ||
-- Server version 10.1.31-MariaDB | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8 */; | ||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |