sql_fetchrow($db->sql_query("SELECT Count(cid) FROM ".$prefix."_video_comment WHERE cid='$cid'")); if ($numstories > 0) { $offset = ($num - 1) * $confc['num']; $numpages = ceil($numstories / $confc['num']); if ($confc['sort']) { $sort = "ASC"; $a = ($num) ? $offset+1 : 1; } else { $sort = "DESC"; $a = $numstories; if ($numstories > $offset) $a -= $offset; } $result = $db->sql_query("SELECT id, cid, UNIX_TIMESTAMP(date), uid, name, host_name, comment FROM ".$prefix."_video_comment WHERE cid='$cid' ORDER BY date ".$sort." LIMIT ".$offset.", ".$confc['num']); $c = 0; while (list($com_id, $com_cid, $com_date, $com_uid, $com_name, $com_host, $com_text) = $db->sql_fetchrow($result)) { $cmassiv[] = array($com_id, $com_cid, $com_date, $com_uid, $com_name, $com_host, $com_text); if ($c == 0) { $where = "'".$com_uid."'"; } else { $where .= ",'".$com_uid."'"; } $c++; } $result2 = $db->sql_query("SELECT user_id, user_name, user_email, user_website, user_avatar, user_regdate, user_icq, user_sig, user_viewemail, user_aim, user_yim, user_msnm, user_points, user_gender, user_votes, user_totalvotes FROM ".$prefix."_users WHERE user_id IN ($where)"); while (list($user_id, $user_name, $user_email, $user_website, $user_avatar, $user_regdate, $user_icq, $user_sig, $user_viewemail, $user_aim, $user_yim, $user_msn, $user_points, $user_gender, $user_votes, $user_totalvotes) = $db->sql_fetchrow($result2)) { $umassiv[] = array($user_id, $user_name, $user_email, $user_website, $user_avatar, $user_regdate, $user_icq, $user_sig, $user_viewemail, $user_aim, $user_yim, $user_msn, $user_points, $user_gender, $user_votes, $user_totalvotes); } // ---------------------------------------------------------------------------- if (is_user($user)) { getusrinfo($user); } // ---------------------------------------------------------------------------- open(); foreach ($cmassiv as $val) { $com_id = $val[0]; $com_cid = $val[1]; $com_date = $val[2]; $com_uid = $val[3]; $com_name = $val[4]; $com_host = $val[5]; $com_text = $val[6]; unset($user_id, $user_name, $user_email, $user_website, $user_avatar, $user_regdate, $user_icq, $user_sig, $user_viewemail, $user_aim, $user_yim, $user_msn, $user_points, $user_gender, $user_votes, $user_totalvotes); if ($umassiv) { foreach ($umassiv as $val2) { if (strtolower($com_uid) == strtolower($val2[0])) { $user_id = $val2[0]; $user_name = $val2[1]; $user_email = $val2[2]; $user_website = $val2[3]; $user_avatar = $val2[4]; $user_regdate = $val2[5]; $user_icq = $val2[6]; $user_sig = $val2[7]; $user_viewemail = $val2[8]; $user_aim = $val2[9]; $user_yim = $val2[10]; $user_msn = $val2[11]; $user_points = $val2[12]; $user_gender = $val2[13]; $user_votes = $val2[14]; $user_totalvotes = $val2[15]; } } } $c_name = _ANONYM." ".$com_name; $user_name = ($user_name) ? $user_name : $c_name; $avatar = ($user_avatar && file_exists($confu['adirectory']."/".$user_avatar)) ? "\"$user_name\"" : "\"$user_name\""; $user_regdate = ($user_regdate) ? format_time($user_regdate) : ""; $text = ($user_sig) ? bb_decode($com_text, $conf['name'])."
".bb_decode($user_sig, $conf['name']) : bb_decode($com_text, $conf['name']); $user_point = ($confu['point'] && $user_points) ? _POINTS.": ".$user_points : ""; $rate = ajax_rating(0, $user_id, "account", $user_votes, $user_totalvotes); $name = "".$user_name.""; $uscomd = _DATE.": ".date(_DATESTRING." "._TIMESTRING,$com_date); $uscomn = _COMMENT." #".$a; $usrdate = ($user_regdate) ? _REG_DATE.": ".$user_regdate : ""; $usgender = ($user_gender != "") ? " ".gender($user_gender, 2) : ""; $usinfo = ($user_name != $c_name) ? " ".user_info($user_name, 2) : ""; $ussite = ($user_website != "") ? " \"\"/" : ""; $usmail = ((is_moder() || $user_viewemail == 1) && $user_email) ? " \"\"/" : ""; $usicq = ($user_icq != "") ? " \"\"/" : ""; $usaim = ($user_aim != "") ? " \"\"/" : ""; $usyim = ($user_yim != "") ? " \"\"/" : ""; $usmsn = ($user_msn != "") ? " \"\"/" : ""; if (is_moder($conf['name'])) { $usip = " \"\"/"; $usban = " ".ad_bann($admin_file.".php?op=security_block&new_ip=".$com_host, $com_host); } if (($userinfo['user_name'] == $user_name) OR (is_moder($conf['name']))){ $usedit = " ".ad_edit("index.php?name=".$conf['name']."&op=video_comm_edit&id=".$com_id); $usdel = " ".ad_delete("index.php?name=".$conf['name']."&op=video_comm_del&id=$com_id&cid=$com_cid", cutstr(text_filter(bb_decode($com_text, $conf['name'])), 10)); } $info = "
".$user_point."".$uscomd." ".$uscomn."
"; $link = "
".$usrdate."".$usgender.$usinfo.$ussite.$usmail.$usicq.$usaim.$usyim.$usmsn.$usip.$usban.$usedit.$usdel."
"; comment($com_id, $name, $info, $avatar, $text, $rate, $link, $user_point, $uscomd, $uscomn, $usrdate, $usgender, $usinfo, $ussite, $usmail, $usicq, $usaim, $usyim, $usmsn, $usip, $usban, $usedit, $usdel); if ($confc['sort']) { $a++; } else { $a--; } } close(); num_page($conf['name'], $numstories, $numpages, $confc['num'], "op=view&id=".$cid.$pag."&"); } else { warning(_NOCOMMENTS, "", "", 2); } if (!is_user() && $confc['anonpost'] == 0) { warning(_NOANONCOMMENTS, "", "", 1); } else { open(); echo "
"; //onsubmit=\"ButtonDisable(this)\" if (is_user()) { echo "
"._YOURNAME.":
".text_filter(substr($user[1], 0, 25))."
"; } else { echo "
"._YOURNAME.":
"; } echo "
"._COMMENT.":
".textarea("1", "comment", "", $conf['name'], "5")."
" .captcha_random() ."
"; close(); } } # Save comments function video_save_com($postname, $comment, $cid) { global $prefix, $db, $user, $conf; include("config/config_comments.php"); $e = explode(" ", $comment); for ($a = 0; $a < sizeof($e); $a++) $o = strlen($e[$a]); $stop = ""; if ($comment == "") $stop = _CERROR1; if ($o > $confc['letter']) $stop = _CERROR2; if ((!is_user() && $postname == "") || (!is_user() && $confc['anonpost'] == 0)) $stop = _CERROR3; if (captcha_check(1)) $stop = _SECCODEINCOR; if (!$stop) { $postid = (is_user()) ? intval($user[0]) : "0"; $postname = (!is_user()) ? $postname : ""; $ip = getip(); $comment = save_text($comment); $res=$db->sql_query("INSERT INTO ".$prefix."_video_comment VALUES (NULL, '$cid', now(), '$postid', '$postname', '$ip', '$comment')"); if(!$res){ echo "Болт: INSERT INTO ".$prefix."_video_comment VALUES (NULL, '$cid', now(), '$postid', '$postname', '$ip', '$comment')"; }else{ Header("Location: index.php?name=".$conf['name']."&op=view_video&lid=".$cid); } } else { head(); title(_WORK); warning($stop."

"._GOBACK, "", "", 1); foot(); } } function video_comm_edit($id) { global $db, $prefix, $admin_file, $admin, $conf; if (is_user($user)) { getusrinfo($user); $author = $userinfo['user_name']; $authormail = $userinfo['user_email']; } $result = $db->sql_query("SELECT id, cid, name, comment FROM ".$prefix."_video_comment WHERE id='$id'"); list($id, $cid, $name, $com_text) = $db->sql_fetchrow($result); if (is_admin($admin) OR ($name == $author)){ head(); menu_video(); open(); echo "

"._EDIT."

" ."
" ."
"._YOURNAME.":
" ."
"._COMMENT.":
".textarea("1", "comment", $com_text, $conf['name'], "5")."
" ."
"._GOBACK."
"; close(); foot(); } else { Header("Location: index.php?name=".$conf['name'].""); } } function uplimpic($directory, $atypefile, $maxsize, $namefile, $width, $height) { global $stop; if (intval($_FILES['userimage']['size'])) { if (is_uploaded_file($_FILES['userimage']['tmp_name'])) { if ($_FILES['userimage']['size'] > $maxsize) { $stop = _ERROR_BIG."1"; return 0; } else { $type = strtolower(end(explode(".", $_FILES['userimage']['name']))); if (!check_file($type, $atypefile) && !check_size($_FILES['userimage']['tmp_name'], $width, $height)) { if (file_exists($directory."/".$type)) { $stop = _ERROR_EXIST."1"; return 0; } else { $newname = ($namefile) ? $namefile."-".gen_pass(10).".".$type : gen_pass(15).".".$type; $res = copy($_FILES['userimage']['tmp_name'], $directory."/".$newname); if (!$res) { $stop = _ERROR_UP."1"; return 0; } else { return $newname; } } } else { $stop = (!check_file($type, $atypefile)) ? check_size($_FILES['userimage']['tmp_name'], $width, $height) : check_file($type, $atypefile); return 0; } } } else { $stop = _ERROR_DOWN."1"; return 0; } } } ?> По игре :: Видео каталог :: Фильм АВАТАР, AVATAR - Джеймса Кэмерона. Игра по мотивам фильма.
 
 

Опрос

Понравился ли вам сюжет картины «АВАТАР»?

понравился, как раз то, что хочется сейчас посмотреть
в принципе понравился, хотя хотелось бы что-то интересней
нормально, но сюжет слишком банальный
не понравился вообще, не люблю такие истории
трудно ответить


Результаты
Другие опросы

Всего голосов: 365
Комментарии: 7

Фото


Категория: Постеры
11.21.09, 23:11
Просмотров: 3155
Отзывов: 0
The release is prepared by ARTGLOBALS, AS and RV