| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/radvre_old/ |
Upload File : |
<?php
/******************************
Project: Radno vreme, 2023.
Version: PHP 5-7
Author : M. Kukic
Note :
******************************/
// date and time
date_default_timezone_set("Europe/Belgrade");
$today = date("Y-m-d");
$time = date("H:i:s");
// db NET-NAS
/*$db=5;
$host_name = 'localhost';
$user_name = 'Misko';
$pass_word = 'skomi32';
$database_name = 'radvre';
*/
// db Rasin
$db=7;
$host_name = 'localhost';
$user_name = 'root';
$pass_word = 'lhmQZ193lGTMXKXs';
$database_name = 'radvre';
if ($db==5){
$dbh = mysql_connect($host_name, $user_name, $pass_word) or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db($database_name);
}else{
$dbh = mysqli_connect($host_name, $user_name, $pass_word, $database_name) or die ('I cannot connect to the database because: ' . mysqli_error($dbh));
mysqli_select_db($database_name);
}
?>