| 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/vtg-3/ |
Upload File : |
<!DOCTYPE html>
<!--
******************************
Project: VetroIng, 2023
Version: PHP 5-7
Author : M. Kukic
Note :
******************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<title>VetroIng</title>
</head>
<body>
<?php
//
include "config.php";
//
include "hed.php";
//
$niv = $_GET["niv"];
$poruka = $_GET["poruka"];
$link_l = $_GET["link_l"];
$link_n = $_GET["link_n"];
//
echo "<h3>VetroIng - Admin</h3>";
// Eksterni poziv za INSERT
if ($poruka!=""){
$sql = "SET NAMES 'utf8' COLLATE 'utf8_unicode_ci'";
$result = mysql_query($sql, $dbh) or die (mysql_error($dbh));
if ($ser=='LTZ'){
$sql = "INSERT INTO info (id, dattim, niv, poruka, link_l, link_n) VALUES ('0',NOW(),'$niv','$poruka','$link_l','$link_n')";
}
if ($ser=='RTZ'){
include "now_rtz.php";
$sql = "INSERT INTO info (id, dattim, niv, poruka, link_l, link_n) VALUES ('0','$vreme','$niv','$poruka','$link_l','$link_n')";
}
$result = mysql_query($sql, $dbh) or die (mysql_error($dbh));
$poruka="";
$ok="Status: OK!";
}else{
$ok="Status: XX!";
//mysql_close($dbh);
}
if ($niv!=""){
$sql = "SET NAMES 'utf8' COLLATE 'utf8_unicode_ci'";
$result = mysql_query($sql, $dbh) or die (mysql_error($dbh));
$sql = "SELECT * FROM info WHERE niv='".$niv."' ORDER BY dattim DESC LIMIT 1";
$result = mysql_query($sql, $dbh) or die (mysql_error($dbh));
$row = mysql_fetch_array($result);
$niv=$row['niv'];
$poruka=$row['poruka'];
$link_l=$row['link_l'];
$link_n=$row['link_n'];
echo "<br>Vreme: ".$row['dattim']."<br><br>";
if ($vap==5) {
mysql_close($dbh);
}else{
mysqli_close($dbh);
}
}
echo "<form action='admin.php'>";
echo "Nivo: <input type='text' name='niv' id='niv' value='$niv' size='2'>";
echo "<br><br>";
//echo "Poruka: <input type='text' name='poruka' id='poruka' value='$poruka' size='80'>";
echo "Poruka: <textarea name='poruka' rows='5' cols='80'>".$poruka."</textarea>";
echo "<br><br>";
echo "Link: <input type='text' name='link_l' id='link_l' value='$link_l' size='48'>";
echo "<br><br>";
echo "Opis: <input type='text' name='link_n' id='link_n' value='$link_n' size='24'>";
echo "<br><br>";
echo " ".$ok;
echo str_repeat(' ',128)."<input type='submit' value='Enter'>";
echo "</form>";
echo "</table>";
if ($vap==5) {
mysql_close($dbh);
}else{
mysqli_close($dbh);
}
?>
<hr>
<img src="img/b_white-2.png">
<a href="javascript:history.go(-1)"><img src="img/r_ret.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="infoca.php"><img src="img/r_up.png" width="" height="48"></a><img src="img/b_white-2.png">
<a href="../infoca/admin.php?niv=1"><img src="img/r_1.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="../infoca/admin.php?niv=2"><img src="img/r_2.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="../infoca/admin.php?niv=3"><img src="img/r_3.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="../infoca/admin.php?niv=4"><img src="img/r_4.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="../infoca/admin.php?niv=5"><img src="img/r_5.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="../infoca/dbdel.php?ok=0"><img src="img/r_x.png" width="" height="48"></a>
</div>
<?php include "fut.php";?>
</body>
</html>