A fatal MySQL error occured\n\n".mysql_error()."\nQuery:\n------------\n".$query."\n-----------\nURL: http://".$HTTP_SERVER_VARS["HTTP_HOST"].$HTTP_SERVER_VARS["REQUEST_URI"]."\nDate: ".date($LANG["datetime_format"])); } die("A fatal MySQL error occured:

\n\n".mysql_error($CONN)."

\n\n ".$query); } } return($r); } function nmail($CONN) { GLOBAL $LANG,$COUNTER; $CONFIG=mysql_fetch_array(cnstats_sql_query("SELECT language FROM cns_config",$CONN)); include "lang/lang_".$CONFIG["language"].".php"; $MAIL=mysql_fetch_array(cnstats_sql_query("SELECT mail_day, mail_email, mail_subject, mail_content FROM cns_config",$CONN)); if (!empty($MAIL["mail_email"])) { $need=0;$per=1; if ($a["mail_day"]==0) {$need=1;$pper=$LANG["yesterday"];} else if ($a["mail_day"]==date("d",time()+$COUNTER["timeoffset"])) {$need=1;$per=7;$pper=$LANG["last7dayes"];} if ($need==1) { $mail=""; if (($MAIL["mail_content"]&1)!=0) { $mail.=$LANG["attendanceper"]." $pper\n\n ".$LANG["date"]." ".$LANG["hostss"]." ".$LANG["sessionss"]." ".$LANG["hitss"]."\n-------------------------------------------\n"; $r=cnstats_sql_query("select LEFT(date,10) as dt,hits,hosts,users from cns_counter_total ORDER BY date desc LIMIT $per",$CONN); while (($a=mysql_fetch_array($r))) { $str=sprintf("%s %10d %10d %10d\n",$a["dt"],$a["hosts"],$a["sessions"],$a["hits"]); $mail.=$str; } } if (($MAIL["mail_content"]&2)!=0) { $mail.="\n>------------------------------------------\n\n".$LANG["yesterdayreferers"]."\n\n".$LANG["count"]." ".$LANG["Ppage"]."\n----------+--------------------------------\n"; $t1=date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-1,date("Y"))+$COUNTER["timeoffset"]); $t2=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-1,date("Y"))+$COUNTER["timeoffset"]); $r=cnstats_sql_query("select referer,count(referer) as cnt from cns_log WHERE referer!='' AND date>='$t1' AND date<'$t2' group by referer order by 2 desc LIMIT 20",$CONN); while (($a=mysql_fetch_array($r))) { $a["referer"]=str_replace(" ","%20",$a["referer"]); while (strlen($a["cnt"])<10) $a["cnt"]=".".$a["cnt"]; $str=sprintf("%s|%s\n",$a["cnt"],$a["referer"]); $mail.=$str; } } if (($MAIL["mail_content"]&4)!=0) { $mail.="\n>------------------------------------------\n\n".$LANG["Sspages"]."\n\n".$LANG["count"]." ".$LANG["Ppage"]."\n----------+--------------------------------\n"; $r=cnstats_sql_query("select page,count(page) as cnt from cns_log WHERE page!='' AND date>='$t1' AND date<'$t2' group by page order by 2 desc LIMIT 20",$CONN); while (($a=mysql_fetch_array($r))) { while (strlen($a["cnt"])<10) $a["cnt"]=".".$a["cnt"]; $a["page"]=str_replace(" ","%20",urldecode($a["page"])); $str=sprintf("%s|%s\n",$a["cnt"],$a["page"]); $mail.=$str; } $mail=$mail.date("Y-m-d H:i:s",time()+$COUNTER["timeoffset"])."\n"; } $MAIL["mail_subject"]=str_replace("%Y",date("Y",time()+$COUNTER["timeoffset"]),$MAIL["mail_subject"]); $MAIL["mail_subject"]=str_replace("%d",date("d",time()+$COUNTER["timeoffset"]),$MAIL["mail_subject"]); $MAIL["mail_subject"]=str_replace("%m",date("m",time()+$COUNTER["timeoffset"]),$MAIL["mail_subject"]); mail($MAIL["mail_email"],$MAIL["mail_subject"],$mail,"From: \"CNStats\" <".$MAIL["mail_email"].">\nContent-type: text/plain; charset=windows-1251","-f".$MAIL["mail_email"]); } } } function midnight_calc() { global $COUNTER; $r=cnstats_sql_query("SHOW TABLE STATUS",$COUNTER["CONN"]); $size=0; while ($a=mysql_fetch_array($r,MYSQL_ASSOC)) { while (list ($key, $val) = each ($a)) { if ($key=="Data_length" && (substr($tname,0,4)=="cns_")) $size+=$val; if ($key=="Index_length" && (substr($tname,0,4)=="cns_")) $size+=$val; if ($key=="Name") $tname=$val; } } cnstats_sql_query("INSERT INTO cns_size SET date=NOW(), size='".$size."';",$COUNTER["CONN"]); $sdays=intval($COUNTER["savelog"]);if ($sdays<1 || $sdays>30) $sdays=30; cnstats_sql_query("DELETE FROM cns_today",$COUNTER["CONN"]); cnstats_sql_query("DELETE FROM cns_log WHERE date<'".date("Y-m-d H:i:s",mktime(0,0,0,date("m") ,date("d")-$sdays,date("Y"))+$COUNTER["timeoffset"])."'",$COUNTER["CONN"]); nmail($COUNTER["CONN"]); mysql_close($COUNTER["CONN"]); } function stats_hit($sqlhost,$sqluser,$sqlpassword,$db_name) { GLOBAL $HTTP_SERVER_VARS,$HTTP_COOKIE_VARS,$STATS_CONF,$COUNTER,$HTTP_GET_VARS; $noclose=false; $eip=ip2long($COUNTER["excludeip"]); $emask=ip2long($COUNTER["excludemask"]); if ((ip2long($HTTP_SERVER_VARS["REMOTE_ADDR"])&$emask)==($eip&$emask)) { $CONN=mysql_connect($STATS_CONF["sqlhost"],$STATS_CONF["sqluser"],$STATS_CONF["sqlpassword"],TRUE); mysql_select_db($STATS_CONF["dbname"],$CONN); $r=mysql_query("SELECT t_hits,hits,hosts FROM cns_counter") or die(mysql_error()); $STATS_CONF=mysql_fetch_array($r,MYSQL_ASSOC); mysql_close($CONN); return; } // Connecting to DB if (version_compare(phpversion(), "4.2.0", ">=")) [email protected]_connect($STATS_CONF["sqlhost"],$STATS_CONF["sqluser"],$STATS_CONF["sqlpassword"],TRUE); else [email protected]_connect($STATS_CONF["sqlhost"],$STATS_CONF["sqluser"],$STATS_CONF["sqlpassword"]); if (!$CONN) return; if ([email protected]_select_db($STATS_CONF["dbname"],$CONN)) return; $r=mysql_query("select GET_LOCK('cnstats',60);",$CONN); if (mysql_result($r,0,0)!=1) return; $r=cnstats_sql_query("SELECT DATE_FORMAT(last,'%d') FROM cns_counter",$CONN); if (mysql_result($r,0,0)!=date("d",time()+$COUNTER["timeoffset"])) { $date=date("Y-m-d H:i:s",mktime(0,0,0,date("m") ,date("d")-1,date("Y"))+$COUNTER["timeoffset"]); $r=cnstats_sql_query("SELECT hits,hosts,users FROM cns_counter",$CONN); cnstats_sql_query("UPDATE cns_counter SET hits=0, hosts=0, users=0, last='".date("Y-m-d H:i:s",time()+$COUNTER["timeoffset"])."';",$CONN); for ($i=0;$i=ip1 AND INET_ATON('".$nip."')<=ip2 LIMIT 1;",$CONN); if (mysql_num_rows($r)==1) $country=mysql_result($r,0,0); } cnstats_sql_query("INSERT DELAYED INTO cns_log (date,ip,type,proxy,page,agent,referer,language,type1,uid,res,depth,cookie,country) VALUES ('$date','$ip',$flag,'$proxy','$page','$agent','$referer','$language','$type1','$uid','$res','$depth','$c','".$country."')",$CONN); $r=cnstats_sql_query("SELECT hits,hosts,t_hits,t_hosts,users,t_users FROM cns_counter",$CONN); if (mysql_num_rows($r)!=1) { cnstats_sql_query("INSERT INTO cns_counter SET hits='1', hosts='1', t_hits='1', t_hosts='1', users='1', t_users='1'",$CONN); $hits=1; $hosts=1; $t_hits=1; $t_hosts=1; } else { $hits=mysql_result($r,0,0)+1; $t_hits=mysql_result($r,0,2)+1; $hosts=mysql_result($r,0,1); $t_hosts=mysql_result($r,0,3); $users=mysql_result($r,0,4); $t_users=mysql_result($r,0,5); if ($flag==1) { $hosts++; $t_hosts++; } if ($type1==1) { $users++; $t_users++; } cnstats_sql_query("UPDATE cns_counter SET hits='$hits', hosts='$hosts', t_hits='$t_hits', t_hosts='$t_hosts', users='$users', t_users='$t_users', last='".date("Y-m-d H:i:s",time()+$COUNTER["timeoffset"])."';",$CONN); } $STATS_CONF["hits"]=$hits; $STATS_CONF["hosts"]=$hosts; $STATS_CONF["t_hits"]=$t_hits; if (!$noclose) mysql_close($CONN); } stats_hit($STATS_CONF["sqlhost"], $STATS_CONF["sqluser"], $STATS_CONF["sqlpassword"], $STATS_CONF["dbname"]); ?>

Если Вы желаете совершенно бесплатно разместить свои работы в нашей галерее, или создать свою Персональную Виртуальную Галерею обращайтесь по адресу [email protected].

О МЛН-Галерее
Живописцы
Скульпторы
Валентин Зноба
Николай Зноба
Обратная связь
Карта сайта
В начало

Подписка на новости

File not found.

/",">",$randtext,1).''; } else { if ($COLOR != "") $randtext = "".$randtext.''; } return $randtext; } ?>

 
 

Николай Зноба (1974).
1997 – Киевский художественный институт (мастерская проф. В.Швецов).

Николай Зноба (1974) - Пегас. 1996 г. (Бронза)
для детального просмотра нажмите здесь

1. Пегас. 1996 г. (Бронза)

Николай Зноба (1974) - Футболисты. 1995 г. (Бронза)
для детального просмотра нажмите  здесь

2. Футболисты. 1995 г. (Бронза)

Николай Зноба (1974) - Гончар. 1997 г. (Модель, гипс)
для детального просмотра нажмите  здесь

3. Гончар. 1997 г. (Модель, гипс)

Арт портал
Техника рыбной ловли
Мониторинг обменных пунктов, лучшие курсы обмена электронных валют

Copyright © 2000-2012 WebClub