- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
DBconfig.php
<?
function sql_connect($mysqlhost,$mysqluser,$mysqlpass,$mysqldb){
$sql_conn=mysql_connect($mysqlhost,$mysqluser,$mysqlpass) or die("mysql_query error: " .mysql_error());
mysql_select_db($mysqldb);
}
function sql_execute($query, $get_counter = false)
{
static $sqlquerycounter = 0;
if(isset($_GET['_dbg']) && isset($_GET['_sql'])){pr('['.$sqlquerycounter.'] '.$query);}
if(!$get_counter)
{
if (!$query = mysql_query($query)) {
trigger_error('MySQL Error: '.mysql_error());
}
$sqlquerycounter++;
return $query;
}
else {return $sqlquerycounter;}
}
function sql_close(){
mysql_close($sql_conn);
}
?>
file.php
sql_connect($_CONFIG["mysqlhost"], $_CONFIG["mysqluser"], $_CONFIG["mysqlpass"], $_CONFIG["mysqldb"]);
$sql = sql_execute("SET NAMES UTF8");
$sql = sql_execute("SELECT * FROM publications WHERE id='$_GET[id]' LIMIT 0,1");
$res = mysql_fetch_array($sql);
Konardinho 12.11.2019 00:49 # +1
guest8 12.11.2019 00:52 # −999
koshka_Sviborga 12.11.2019 07:06 # 0
guest8 12.11.2019 13:30 # −999
koshka_Sviborga 12.11.2019 15:46 # +2
https://iprofiles.ru/
Stallman 12.11.2019 22:09 # 0
koshka_Sviborga 12.11.2019 22:22 # +1
https://iprofiles.ru/access.log
bormand 12.11.2019 22:43 # 0
guest8 12.11.2019 22:45 # −999
nyTuH_nugop 12.11.2019 22:47 # 0
BJlADuMuPCKuu_nemyx 25.11.2019 22:16 # 0
guest8 25.11.2019 22:24 # −999
Fike 12.11.2019 10:24 # 0
gost 12.11.2019 10:30 # 0
guest8 25.11.2019 17:40 # −999