BossBey File Manager
PHP:
7.3.33
OS:
Linux
User:
cp181240
Root
/
home
/
cp181240
/
public_html
/
mystric.com
/
install
📤 Upload
📝 New File
📁 New Folder
Close
Editing: index.php
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require 'vendor/autoload.php'; use App\SQLiteConnection as SQLiteConnection; use App\SQLiteCreateTable as SQLiteCreateTable; use App\SQLiteInsert as SQLiteInsert; $pdo = (new SQLiteConnection())->connect(); $sql_create = new SQLiteCreateTable($pdo); $sql_insert = new SQLiteInsert($pdo); $sql_create->deleteTables(); $sql_create->createTables(); $domainname = $_SERVER['HTTP_HOST']; $password = '12345678'; $domain_id = 9000; $theme_id = 9999; $sql_insert->insertConfig($domain_id,$domainname,$theme_id,'th'); $sql_insert->insertUser($domain_id,$domainname,$password); $sql_insert->insertCountry(); $sql_insert->insertState(); $sql_insert->insertLayout($domain_id); $tables = $sql_create->getTableList(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content="sqlitetutorial.net"> <title>PHP SQLite CREATE TABLE Demo</title> <link href="http://v4-alpha.getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="page-header"> <h1>PHP SQLite CREATE TABLE Demo</h1> </div> <table class="table table-bordered"> <thead> <tr> <th>Tables</th> </tr> </thead> <tbody> <?php foreach ($tables as $table) : ?> <tr> <td><?php echo $table ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> </body> </html>
Save
Cancel