Added admin module

This commit is contained in:
absurdo 2023-07-03 01:11:10 +02:00
parent 22b90ea1f6
commit fd88fff9d2
90 changed files with 13954 additions and 19 deletions

33
libraries/PDO.php Normal file
View file

@ -0,0 +1,33 @@
<?php
namespace PhangoApp\PDO;
class MySQL {
static public $host_db='';
static public $db='';
static public $login_db='';
static public $pass_db='';
//static public $conn=false;
static public function get_pdo_connection() {
if(MySQL::$host_db=='' || MySQL::$db=='') {
echo 'Cannot connect to the mysqldb';
exit();
}
$conn=new \PDO('mysql:host='.MySQL::$host_db.';dbname='.MySQL::$db, MySQL::$login_db, MySQL::$pass_db);
return $conn;
}
}