
ZoMM
Mirstīgais-
Posts
45 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Everything posted by ZoMM
-
Uzrakstiju appser/www/tur bija index.php : <link rel="shortcut icon" href="http://head.do.am/favicon.ico" type="image/x-icon" /> Nekā nenotika?!?!?!Kautko nepareizi izdariju>??
-
Kā nomainīt To favicion(Mazā bildīte kur rakstās http) uz PHP weba?!?!?
-
Aiz viņa es nevaru jaunu sadaļu sataisīt... Warning: opendir(../images/news_cats/) [function.opendir]: failed to open dir: Invalid argument in C:\AppServ\www\maincore.php on line 538 Warning: readdir(): supplied argument is not a valid Directory resource in C:\AppServ\www\maincore.php on line 539 Warning: closedir(): supplied argument is not a valid Directory resource in C:\AppServ\www\maincore.php on line 546 Ko te vajag rediģēt?Ja varat palīdzat: <?php /*---------------------------------------------------+ | PHP-Fusion 6 Content Management System +----------------------------------------------------+ | Copyright ? 2002 - 2006 Nick Jones | http://www.php-fusion.co.uk/ +----------------------------------------------------+ | Released under the terms & conditions of v2 of the | GNU General Public License. For details refer to | the included gpl.txt file or visit http://gnu.org +----------------------------------------------------*/ if (eregi("maincore.php", $_SERVER['PHP_SELF'])) die(); // If register_globals is turned off, extract super globals (php 4.2.0+) if (ini_get('register_globals') != 1) { if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE); if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE); } // Prevent any possible XSS attacks via $_GET. foreach ($_GET as $check_url) { if ((eregi("<[^>]*script*\"?[^>]*>", $check_url)) || (eregi("<[^>]*object*\"?[^>]*>", $check_url)) || (eregi("<[^>]*iframe*\"?[^>]*>", $check_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $check_url)) || (eregi("<[^>]*meta*\"?[^>]*>", $check_url)) || (eregi("<[^>]*style*\"?[^>]*>", $check_url)) || (eregi("<[^>]*form*\"?[^>]*>", $check_url)) || (eregi("\([^>]*\"?[^)]*\)", $check_url)) || (eregi("\"", $check_url))) { die (); } } unset($check_url); // Start Output Buffering ob_start(); // Locate config.php and set the basedir path $folder_level = ""; while (!file_exists($folder_level."config.php")) { $folder_level .= "../"; } require_once $folder_level."config.php"; define("BASEDIR", $folder_level); // If config.php is empty, activate setup.php script if (!isset($db_name)) redirect("setup.php"); // Establish mySQL database connection $link = dbconnect($db_host, $db_user, $db_pass, $db_name); // Fetch the Site Settings from the database and store them in the $settings variable $settings = dbarray(dbquery("SELECT * FROM ".$db_prefix."settings")); // Sanitise $_SERVER globals $_SERVER['PHP_SELF'] = cleanurl($_SERVER['PHP_SELF']); $_SERVER['QUERY_STRING'] = isset($_SERVER['QUERY_STRING']) ? cleanurl($_SERVER['QUERY_STRING']) : ""; $_SERVER['REQUEST_URI'] = isset($_SERVER['REQUEST_URI']) ? cleanurl($_SERVER['REQUEST_URI']) : ""; $PHP_SELF = cleanurl($_SERVER['PHP_SELF']); // Common definitions define("IN_FUSION", TRUE); define("FUSION_REQUEST", isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] != "" ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']); define("FUSION_QUERY", isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : ""); define("FUSION_SELF", basename($_SERVER['PHP_SELF'])); define("USER_IP", $_SERVER['REMOTE_ADDR']); define("QUOTES_GPC", (ini_get('magic_quotes_gpc') ? TRUE : FALSE)); // Path definitions define("ADMIN", BASEDIR."administration/"); define("IMAGES", BASEDIR."images/"); define("IMAGES_A", IMAGES."articles/"); define("IMAGES_N", IMAGES."news/"); define("IMAGES_NC", IMAGES."news_cats/"); define("INCLUDES", BASEDIR."includes/"); define("LOCALE", BASEDIR."locale/"); define("LOCALESET", $settings['locale']."/"); define("FORUM", BASEDIR."forum/"); define("INFUSIONS", BASEDIR."infusions/"); define("PHOTOS", IMAGES."photoalbum/"); define("THEMES", BASEDIR."themes/"); // MySQL database functions function dbquery($query) { $result = @mysql_query($query); if (!$result) { echo mysql_error(); return false; } else { return $result; } } function dbcount($field,$table,$conditions="") { $cond = ($conditions ? " WHERE ".$conditions : ""); $result = @mysql_query("SELECT Count".$field." FROM ".DB_PREFIX.$table.$cond); if (!$result) { echo mysql_error(); return false; } else { $rows = mysql_result($result, 0); return $rows; } } function dbresult($query, $row) { $result = @mysql_result($query, $row); if (!$result) { echo mysql_error(); return false; } else { return $result; } } function dbrows($query) { $result = @mysql_num_rows($query); return $result; } function dbarray($query) { $result = @mysql_fetch_assoc($query); if (!$result) { echo mysql_error(); return false; } else { return $result; } } function dbarraynum($query) { $result = @mysql_fetch_row($query); if (!$result) { echo mysql_error(); return false; } else { return $result; } } function dbconnect($db_host, $db_user, $db_pass, $db_name) { $db_connect = @mysql_connect($db_host, $db_user, $db_pass); $db_select = @mysql_select_db($db_name); if (!$db_connect) { die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to establish connection to MySQL</b><br>".mysql_errno()." : ".mysql_error()."</div>"); } elseif (!$db_select) { die("<div style='font-family:Verdana;font-size:11px;text-align:center;'><b>Unable to select MySQL database</b><br>".mysql_errno()." : ".mysql_error()."</div>"); } } // Initialise the $locale array $locale = array(); // Load the Global language file include LOCALE.LOCALESET."global.php"; // Check if users full or partial ip is blacklisted $sub_ip1 = substr(USER_IP,0,strlen(USER_IP)-strlen(strrchr(USER_IP,"."))); $sub_ip2 = substr($sub_ip1,0,strlen($sub_ip1)-strlen(strrchr($sub_ip1,"."))); if (dbcount("(*)", "blacklist", "blacklist_ip='".USER_IP."' OR blacklist_ip='$sub_ip1' OR blacklist_ip='$sub_ip2'")) { header("Location: http://www.google.com/"); exit; } // PHP-Fusion user cookie functions if (!isset($_COOKIE['fusion_visited'])) { $result=dbquery("UPDATE ".$db_prefix."settings SET counter=counter+1"); setcookie("fusion_visited", "yes", time() + 31536000, "/", "", "0"); } if (isset($_POST['login'])) { $user_pass = md5($_POST['user_pass']); $user_name = preg_replace(array("/\=/","/\#/","/\sOR\s/"), "", stripinput($_POST['user_name'])); $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name='$user_name' AND (user_password='".md5($user_pass)."' OR user_password='$user_pass')"); if (dbrows($result) != 0) { $data = dbarray($result); if ($data['user_password'] == $user_pass) { $result = dbquery("UPDATE ".$db_prefix."users SET user_password='".md5($user_pass)."' WHERE user_id='".$data['user_id']."'"); } $cookie_value = $data['user_id'].".".$user_pass; if ($data['user_status'] == 0) { $cookie_exp = isset($_POST['remember_me']) ? time() + 3600*24*30 : time() + 3600*3; header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'"); setcookie("fusion_user", $cookie_value, $cookie_exp, "/", "", "0"); redirect(BASEDIR."setuser.php?user=".$data['user_name'], "script"); } elseif ($data['user_status'] == 1) { redirect(BASEDIR."setuser.php?error=1", "script"); } elseif ($data['user_status'] == 2) { redirect(BASEDIR."setuser.php?error=2", "script"); } } else { redirect(BASEDIR."setuser.php?error=3"); } } if (isset($_COOKIE['fusion_user'])) { $cookie_vars = explode(".", $_COOKIE['fusion_user']); $cookie_1 = isNum($cookie_vars['0']) ? $cookie_vars['0'] : "0"; $cookie_2 = (preg_match("/^[0-9a-z]{32}$/", $cookie_vars['1']) ? $cookie_vars['1'] : ""); $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$cookie_1' AND user_password='".md5($cookie_2)."'"); unset($cookie_vars,$cookie_1,$cookie_2); if (dbrows($result) != 0) { $userdata = dbarray($result); if ($userdata['user_status'] == 0) { if ($userdata['user_theme'] != "Default" && file_exists(THEMES.$userdata['user_theme']."/theme.php")) { define("THEME", THEMES.$userdata['user_theme']."/"); } else { define("THEME", THEMES.$settings['theme']."/"); } if ($userdata['user_offset'] <> 0) { $settings['timeoffset'] = $settings['timeoffset'] + $userdata['user_offset']; } if (empty($_COOKIE['fusion_lastvisit'])) { setcookie("fusion_lastvisit", $userdata['user_lastvisit'], time() + 3600, "/", "", "0"); $lastvisited = $userdata['user_lastvisit']; } else { $lastvisited = $_COOKIE['fusion_lastvisit']; } } else { header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'"); setcookie("fusion_user", "", time() - 7200, "/", "", "0"); setcookie("fusion_lastvisit", "", time() - 7200, "/", "", "0"); redirect(BASEDIR."index.php", "script"); } } else { header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'"); setcookie("fusion_user", "", time() - 7200, "/", "", "0"); setcookie("fusion_lastvisit", "", time() - 7200, "/", "", "0"); redirect(BASEDIR."index.php", "script"); } } else { define("THEME", THEMES.$settings['theme']."/"); $userdata = ""; $userdata['user_level'] = 0; $userdata['user_rights'] = ""; $userdata['user_groups'] = ""; } // Redirect browser using the header function function redirect($location, $type="header") { if ($type == "header") { header("Location: ".$location); } else { echo "<script type='text/javascript'>document.location.href='".$location."'</script>\n"; } } // Fallback to safe area in event of unauthorised access function fallback($location) { header("Location: ".$location); exit; } // Clean URL Function, prevents entities in server globals function cleanurl($url) { $bad_entities = array("&", "\"", "'", '\"', "\'", "<", ">", "(", ")", "*"); $safe_entities = array("&", "", "", "", "", "", "", "", "", ""); $url = str_replace($bad_entities, $safe_entities, $url); return $url; } // Strip Input Function, prevents HTML in unwanted places function stripinput($text) { if (QUOTES_GPC) $text = stripslashes($text); $search = array("\"", "'", "\\", '\"', "\'", "<", ">", " "); $replace = array(""", "'", "\", """, "'", "<", ">", " "); $text = str_replace($search, $replace, $text); return $text; } // stripslash function, only stripslashes if magic_quotes_gpc is on function stripslash($text) { if (QUOTES_GPC) $text = stripslashes($text); return $text; } // stripslash function, add correct number of slashes depending on quotes_gpc function addslash($text) { if (!QUOTES_GPC) { $text = addslashes(addslashes($text)); } else { $text = addslashes($text); } return $text; } // htmlentities is too agressive so we use this function function phpentities($text) { $search = array("&", "\"", "'", "\\", "<", ">"); $replace = array("&", """, "'", "\", "<", ">"); $text = str_replace($search, $replace, $text); return $text; } // Trim a line of text to a preferred length function trimlink($text, $length) { $dec = array("\"", "'", "\\", '\"', "\'", "<", ">"); $enc = array(""", "'", "\", """, "'", "<", ">"); $text = str_replace($enc, $dec, $text); if (strlen($text) > $length) $text = substr($text, 0, ($length-3))."..."; $text = str_replace($dec, $enc, $text); return $text; } // Validate numeric input function isNum($value) { return (preg_match("/^[0-9]+$/", $value)); } // Parse smiley bbcode into HTML images function parsesmileys($message) { $smiley = array( "#\:\)#si" => "<img src='".IMAGES."smiley/smile.gif' alt='smiley'>", "#\;\)#si" => "<img src='".IMAGES."smiley/wink.gif' alt='smiley'>", "#\:\(#si" => "<img src='".IMAGES."smiley/sad.gif' alt='smiley'>", "#\:\|#si" => "<img src='".IMAGES."smiley/frown.gif' alt='smiley'>", "#\:o#si" => "<img src='".IMAGES."smiley/shock.gif' alt='smiley'>", "#\:p#si" => "<img src='".IMAGES."smiley/pfft.gif' alt='smiley'>", "#b\)#si" => "<img src='".IMAGES."smiley/cool.gif' alt='smiley'>", "#\:d#si" => "<img src='".IMAGES."smiley/grin.gif' alt='smiley'>", "#\:@#si" => "<img src='".IMAGES."smiley/angry.gif' alt='smiley'>" ); foreach($smiley as $key=>$smiley_img) $message = preg_replace($key, $smiley_img, $message); return $message; } // Show smiley icons in comments, forum and other post pages function displaysmileys($textarea) { $smiles = ""; $smileys = array ( ":)" => "smile.gif", ";)" => "wink.gif", ":|" => "frown.gif", ":(" => "sad.gif", ":o" => "shock.gif", ":p" => "pfft.gif", "B)" => "cool.gif", ":D" => "grin.gif", ":@" => "angry.gif" ); foreach($smileys as $key=>$smiley) $smiles .= "<img src='".IMAGES."smiley/$smiley' alt='smiley' onClick=\"insertText('$textarea', '$key');\">\n"; return $smiles; } // Parse bbcode into HTML code function parseubb($text) { $text = preg_replace('#\[b\](.*?)\[/b\]#si', '<b>\1</b>', $text); $text = preg_replace('#\[i\](.*?)\[/i\]#si', '<i>\1</i>', $text); $text = preg_replace('#\[u\](.*?)\[/u\]#si', '<u>\1</u>', $text); $text = preg_replace('#\[center\](.*?)\[/center\]#si', '<center>\1</center>', $text); $text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\' target=\'_blank\'>\2\3</a>', $text); $text = preg_replace('#\[url\]([\r\n]*)([^\s\'\";\+]*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\'>\2</a>', $text); $text = preg_replace('#\*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\' target=\'_blank\'>\4</a>', $text); $text = preg_replace('#\*)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\'>\3</a>', $text); $text = preg_replace('#\[mail\]([\r\n]*)([^\s\'\";:\+]*?)([\r\n]*)\[/mail\]#si', '<a href=\'mailto:\2\'>\2</a>', $text); $text = preg_replace('#\[mail=([\r\n]*)([^\s\'\";:\+]*?)\](.*?)([\r\n]*)\[/mail\]#si', '<a href=\'mailto:\2\'>\3</a>', $text); $text = preg_replace('#\[small\](.*?)\[/small\]#si', '<span class=\'small\'>\1</span>', $text); $text = preg_replace('#\(.*?)\[/color\]#si', '<span style=\'color:\1\'>\2</span>', $text); $text = preg_replace('#\[flash width=([0-9]*?) height=([0-9]*?)\]([^\s\'\";:\+]*?)(\.swf)\[/flash\]#si', '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://active.macromedia.com/flash6/cabs/swflash.cab#version=6,0,0,0\' id=\'\3\4\' width=\'\1\' height=\'\2\'><param name=movie value=\'\3\4\'><param name=\'quality\' value=\'high\'><param name=\'bgcolor\' value=\'#ffffff\'><embed src=\'\3\4\' quality=\'high\' bgcolor=\'#ffffff\' width=\'\1\' height=\'\2\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\'></embed></object>', $text); $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<img src=\'\\1'.str_replace(array('.php','?','&','='),'','\\3').'\\4\' style=\'border:0px\'>'",$text); $qcount = substr_count($text, "
-
Vot kods.(Kā sataisīt,lai man rādītu manu dizainu,bet manu rakstīto ko es gribu lai rādītu) <?php /*---------------------------------------------------+ | PHP-Fusion 6 Content Management System +----------------------------------------------------+ | Copyright ? 2002 - 2006 Nick Jones | http://www.php-fusion.co.uk/ +----------------------------------------------------+ | Released under the terms & conditions of v2 of the | GNU General Public License. For details refer to | the included gpl.txt file or visit http://gnu.org +----------------------------------------------------*/ require_once "maincore.php"; require_once "subheader.php"; require_once "side_left.php"; if (isset($readmore) && !isNum($readmore)) fallback(FUSION_SELF); // Predefined variables, do not edit these values if ($settings['news_style'] == "1") { $i = 0; $rc = 0; $ncount = 1; $ncolumn = 1; $news_[0] = ""; $news_[1] = ""; $news_[2] = ""; } else { $i = 1; } // This number should be an odd number to keep layout tidy $items_per_page = 11; if (!isset($readmore)) { $rows = dbcount("(news_id)", "news", groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")"); if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0; if ($rows != 0) { $result = dbquery( "SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_sticky DESC, news_datestamp DESC LIMIT $rowstart,$items_per_page" ); $numrows = dbrows($result); if ($settings['news_style'] == "1") $nrows = round((dbrows($result) - 1) / 2); while ($data = dbarray($result)) { $news_cat_image = ""; $news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']); if ($data['news_cat_image']) { $news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>"; } else { $news_cat_image = ""; } $news_news = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']); if ($news_cat_image != "") $news_news = $news_cat_image.$news_news; $news_info = array( "news_id" => $data['news_id'], "user_id" => $data['user_id'], "user_name" => $data['user_name'], "news_date" => $data['news_datestamp'], "news_ext" => $data['news_extended'] ? "y" : "n", "news_reads" => $data['news_reads'], "news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"), "news_allow_comments" => $data['news_allow_comments'] ); if ($settings['news_style'] == "1") { if ($rows <= 2 || $ncount == 1) { $news_[0] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n"; $news_[0] .= "<tr>\n<td class='tbl2'><b>$news_subject</b></td>\n</tr>\n"; $news_[0] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$news_news</td>\n</tr>\n"; $news_[0] .= "<tr>\n<td align='center' class='tbl2'>\n"; if (iSUPERADMIN && checkrights("N")) $news_[0] .= "<form name='editnews".$news_info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$news_info['news_id']."'>\n"; $news_[0] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['041'].showdate("longdate", $news_info['news_date'])." ·\n"; if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) { $news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : ""; $news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : ""; $news_[0] .= $news_info['news_reads'].$locale['044']." ·\n"; } $news_[0] .= "<a href='print.php?type=N&item_id=".$news_info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>"; if (iSUPERADMIN && checkrights("N")) { $news_[0] .= " · <input type='hidden' name='edit' value='edit'><a href='java script:document.editnews".$news_info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $news_[0] .= "</span>\n"; } $news_[0] .= "</td>\n</tr>\n</table>\n"; if ($ncount != $rows) $news_[0] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n"; } else { if ($i == $nrows && $ncolumn != 2) { $ncolumn = 2; $i = 0; } $row_color = ($rc % 2 == 0 ? "tbl2" : "tbl1"); $news_[$ncolumn] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n"; $news_[$ncolumn] .= "<tr>\n<td class='tbl2'><b>$news_subject</b></td>\n</tr>\n"; $news_[$ncolumn] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$news_news</td>\n</tr>\n"; $news_[$ncolumn] .= "<tr>\n<td align='center' class='tbl2'>\n"; if (iSUPERADMIN && checkrights("N")) $news_[$ncolumn] .= "<form name='editnews".$news_info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$news_info['news_id']."'>\n"; $news_[$ncolumn] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['041'].showdate("longdate", $news_info['news_date']); if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) { $news_[$ncolumn] .= "<br>\n"; $news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : ""; $news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : ""; $news_[$ncolumn] .= $news_info['news_reads'].$locale['044']." ·\n"; } else { $news_[$ncolumn] .= " ·\n"; } $news_[$ncolumn] .= "<a href='print.php?type=N&item_id=".$news_info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>\n"; if (iSUPERADMIN && checkrights("N")) { $news_[$ncolumn] .= " · <input type='hidden' name='edit' value='edit'><a href='java script:document.editnews".$news_info['news_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $news_[$ncolumn] .= "</span>\n"; } $news_[$ncolumn] .= "</td>\n</tr>\n</table>\n"; if ($ncolumn == 1 && $i < ($nrows - 1)) $news_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n"; if ($ncolumn == 2 && $i < (dbrows($result) - $nrows - 2)) $news_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n"; $i++; $rc++; } $ncount++; } else { render_news($news_subject, $news_news, $news_info); if ($i != $numrows) { tablebreak(); } $i++; } } if ($settings['news_style'] == "1") { opentable($locale['046']); echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n"; echo $news_[0]; echo "</td>\n</tr>\n<tr>\n<td style='width:50%;vertical-align:top;'>\n"; echo $news_[1]; echo "</td>\n<td style='width:10px'><img src='".THEME."images/blank.gif' alt='' width='10' height='1'></td>\n<td style='width:50%;vertical-align:top;'>\n"; echo $news_[2]; echo "</td>\n</tr>\n</table>\n"; closetable(); } if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n"; } else { opentable($locale['046']); echo "<center><br>\n".$locale['047']."<br><br>\n</center>\n"; closetable(); } } else { include INCLUDES."comments_include.php"; include INCLUDES."ratings_include.php"; $result = dbquery( "SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id WHERE news_id='$readmore'" ); if (dbrows($result)!=0) { $data = dbarray($result); if (checkgroup($data['news_visibility'])) { $news_cat_image = ""; if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) { $result2 = dbquery("UPDATE ".$db_prefix."news SET news_reads=news_reads+1 WHERE news_id='$readmore'"); $data['news_reads']++; } $news_subject = $data['news_subject']; if ($data['news_cat'] != 0) { $result2 = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data['news_cat']."'"); if (dbrows($result2)) { $data2 = dbarray($result2); $news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>"; } } $news_news = stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']); if ($data['news_breaks'] == "y") { $news_news = nl2br($news_news); } if ($news_cat_image != "") $news_news = $news_cat_image.$news_news; $news_info = array( "news_id" => $data['news_id'], "user_id" => $data['user_id'], "user_name" => $data['user_name'], "news_date" => $data['news_datestamp'], "news_ext" => "n", "news_reads" => $data['news_reads'], "news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"), "news_allow_comments" => $data['news_allow_comments'] ); render_news($news_subject, $news_news, $news_info); if ($data['news_allow_comments']) showcomments("N","news","news_id",$readmore,FUSION_SELF."?readmore=$readmore"); if ($data['news_allow_ratings']) showratings("N",$readmore,FUSION_SELF."?readmore=$readmore"); } else { redirect(FUSION_SELF); } } else { redirect(FUSION_SELF); } } require_once "side_right.php"; require_once "footer.php"; ?>
-
ES NE PAR FACION!!!A man tur normālu lielu bānneri vajag... Kādu kodu?iedod Man nereāli iereģistrēties Phpmyadmin man neiet tas links..raksta Not found
-
1)Kā ielikt Tur Foto? 2)Kā sataisīt lai tur parāditu ari web Dizainu..bet ne baltu lappu|????!?!?!/ 3)Kā sataisīt lai tur butu ka tabula?!?Nu apkart malinas butu!?!?! 4)Un Iedodiet kāds REGISTRACiju normālu..jo iereģistrēties nereāli... 5)Kā sataisīt Datu bāzi?..(Varbūt tāpēc nevar iereģistrēties)
-
tnx..ko vel labu zini?
-
Nesapratu...Tad boksīti ir izraktenis?
-
5)Kāpēc austrālijas augi un dzīvnieki ievērojami atšķiras un citu kontinentu augiem un dzīvniekiem? 6)Kuri no minētajiem apstākļiem piesaista Okeānijai visvairāk tūristu? a)Faraonu piramīdas b)Iespēja iepazīt dažādas tautas un to dzīvesveidu. c)Var redzēt polārblazmu. d)Dzīvnieki,kuri nekur citur pasaulē nedzīvo 1 gudra galva ir
-
No Spam Da grāmata hz kur ir Palīdzi ja vari
-
Palīdzat lūdzu: 1)Kas tas ir?: Boksīti- Totēms- Papucisi- Skrēbs- Molohs- 2)Kāpēc tieši minētās valstis ir Austrālijas lielākās tirdzniecības partneres?Savieno valsti,un tai atbilstošo apgalvojumu: Lielbritānija - *Tuvākā kaimiņvalsts. ASV - *Valstij ļoti trūkst izejvielu. Japāna - *Seni,vēsturiski izveidojušies sakari. Jaunzēlande - *Augsti attīstīta valsts,tas iedzīvotājiem nepieciešams ļoti daudzas un dažādas preces. 3)Austrālijas derīģie izrakteņi un to izmantošana. Derīģie izrakteni: Izmanto: 1 - 2 - 3 - 4 - 4)Kā sauc katru no aprakstītajiem augiem un dzīvniekiem? a)putna aste atgādina kādu mūzikas instrumentu; b)dzīvnieks var būt 2m augsts,taču mazulis tam piedzimsts valrieksta lielumā un pusgadu dzīvo un aug mātes soma c)Ezim līdzīgs dzīvnieks,kurš pārtieks no skudrām,termītiem un tārpiem ,ko sakēr ar garo lipīgo mēli d)putns dzīvo vierīgi Jaunzēlande,un tā attēls ir uz daudzām šīs valsts pastmarkām 5)Kāpēc austrālijas augi un dzīvnieki ievērojami atšķiras un citu kontinentu augiem un dzīvniekiem? 6)Kuri no minētajiem apstākļiem piesaista Okeānijai visvairāk tūristu? a)Faraonu piramīdas b)Iespēja iepazīt dažādas tautas un to dzīvesveidu. c)Var redzēt polārblazmu. d)Dzīvnieki,kuri nekur citur pasaulē nedzīvo Lūdzu palīdzat atbildēt
-
Nē,es gribu ne Flash spēli bet pilnu uz kompja lai spēlēt ...Tikai Bezmaksas HELP
-
Palīdzat atrast šo spēli,lai nevaidzētu maksāt lai paspēlētu... Lai nevaidzētu maksāt un lai nebūtu tur 60minutes paspēlē un viss Ļoti vajag
-
Tēmu close..Visu izdariju
-
Nolādēju Gta san andreas...Padomāju paspēlēt pa internetu.. Tad nolādētu TE samp....Ielādēju to kompi un instalēju Gta san andreas mapē...tad kad izvēlējos serveri man prasa gta_san.exe un kad man prasa norādīt to vietu..man to exe failu nerāda...Ko man darīt?Varbūt es kautko netā darU?
-
Temu Close
-
Kad es lieku ban speletājam(amx_ban niks laiks iemesls)vins tikunta ieiet serveri!!!!!! Man teica cilveks ka man palīdzēs amx banip plugins bet vinu neevaru atrast... VAI ka sataisit kad es lieku banu caur amx_banmenu un kad lieku uz tiesho laiku un vinam raksta you are baned tik un tik UN KAPEC(piemeram:You are banned from this servers,5minutes 4itus off!!!) Bet kad es lieku ban caur amx_banmenu tur jau parasti raksta you are banned from this server...Bet es veletos sataisit lai raditu ari IEMESLU un LAIKU!!!!
-
Hi all Palīdziet atrast amx_banip pluginu lai varētu banot ar komandu tur: amx_ban vai banip Niks laiks kapec!!! Un lai vairaks neieietu vai pec dazam minutem!!?!?!! Vai ka uztādit kad banoju caur amx_Banmenu tur kautka uzrakstit reason!?!? Piemeram ja banoju caur amx_banmenu uz 5 minutem vinam raksta you are baned 5minutes 4itus on Pingus OF!!piemeram taa...
-
Tādi jautājumi... Kur var atrast to root?kur visi tie ir DB names un paroles? rakstiju tur visu un to un to neka nesanaaca!!!kur to atrast? * Solis 1 - AmxBans Instalācija Database server - localhost vai jūsu ip atkarīgi kāda jums ir iekš PhPMyAdmin DB Name - rakstam amxbans (datubāze, kuru tikko izveidojām) DB Username - Jūsu PhPMyAdmin lietotājvārds DB Password - Jūsu PhPMyAdmin parole Tālāk spiežam uz check connection un spiežam step2 Un vel!! Un te ar demo..drusku nesapratu vot te: Tur kur nosaukums..ka man uzrakstit ja man demo mape izveidota deskopa un taja saglabasies?vai demo ir citur mape?help! foreach (glob("demo/demo_nosaukums-*.zip") as $filename) { if (preg_match('/^demo\/demo_nosaukums\-\d{10}\-[a-zA-Z0-9_\-\.]{1,200}\.zip$/', $filename)) { Un te ari demo: Piemeram mape demo mape?es uztaisiju deskopa demo,tad rakstit tur c:/document........!?! DAtus:sodienas vai ka? Ludzu skaidrak! <? $web_lang['hltv_name'] = "Mape"; $web_lang['hltv_date'] = "Datums"; $web_lang['hltv_chose_date'] = "Izvēlieties datumu"; $web_lang['hltv_size'] = "Izmērs(Kb)"; ?>
-
a viņam nevaiga neka rakstit konsole?
-
Kā iedod acc tikai ar niku?es zinu kā bet uzrakstiet norm....un ko vajag raksit lai cilvēkam vins strādātu!>??!!?!?parasti vinam ip mainās ka zekes vot vajag uz niku
-
Guski tu visur esi tas es Elvis22