[FEAT] Move Legacy code into a legacy directory

This commit is contained in:
NADAL Jean-Baptiste
2026-02-13 10:44:51 +01:00
parent bfb703e6b9
commit 5066e1d54f
142 changed files with 194 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
class Database{
// specify your own database credentials
private $host = "localhost";
private $db_name = "ohmj2";
private $username = "ohmj2";
private $password = "2j9eywip";
private $connect_db;
public $conn;
public function connect ()
{
$this->connect_db = @mysql_connect ($this->host, $this->username, $this->password);
return true;
}
public function close ()
{
MYSQL_CLOSE;
}
public function execute($query)
{
return mysql_db_query($this->db_name, $query, $this->connect_db);
}
}