Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
yra va tep
ramon.php?yra=labai kiec
o turi buti tep
ramon.php?yra=labai-kiec
MMOG.lt - atrask naują pasaulį |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Na tai darik su str_replace() funk.:
Linkas : str_reaplce(" ", "-", $id);
SQL Uzkllausa : str_replace("-", " ", $id);
2+(2*2)*2+2*2 =
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
vajezau kaip tingiu mastyt... kur cia viska kist tai va... godžirą veizdėju
MMOG.lt - atrask naują pasaulį
Redagavo Gugiss 2008 Rugp. 30 22:08:15 |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Nu gi jmj $kintamaji i array idek t.y. : $id = str_reaplce(" ", "-", $id);
$id = str_replace("-", " ", $id);
Arba : $id = str_reaplce(" ", "-", $id);
$id .= str_replace("-", " ", $id);
Tai dek pres uzklausa...
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Tu man nepatinki
Fatal error: Call to undefined function str_reaplce() in C:\wamp\www\mmo\games.php on line 26
MMOG.lt - atrask naują pasaulį |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
wamp... dek i hosta ir tikrink nes as nezaidziu su wamperiu...
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
uploadinau y hosta tai isvis nesusikuria puslapis, o redirectina y indexa
MMOG.lt - atrask naują pasaulį |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Kaip gali redirectint jei ten nera nekur tos funkcijos?
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Ka as zn
MMOG.lt - atrask naują pasaulį |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Noriu padaryti seo url bet kazkas nezigauna...
Error:
Notice: Use of undefined constant page_title - assumed 'page_title' in /xxx/xxx/xxx/includes/theme_functions_include.php on line 89
Notice: Undefined variable: row in /xxx/xxx/xxx/includes/theme_functions_include.php on line 89
Čia dėl to str_replace... O čia ta xujova vieta:
$sres = dbquery(
"SELECT link_window, link_visibility, link_url, link_name FROM ".DB_SITE_LINKS."
WHERE ".groupaccess('link_visibility')." AND link_position>='2' AND link_url!='---' ORDER BY link_order ASC"
);
if(dbrows($sres)) {
$i = 0;
$title_start = preg_replace('/[^a-zA-Z0-9 *]/', '', $row[page_title]);
$title_seo = str_replace(' ', '-', $title_start);
$res = "<ul>\n";
while ($sdata = dbarray($sres)) {
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$li_class = ($i == 0 ? " class='first-link".($class ? " $class" : "")."'" : ($class ? " class='$class'" : ""));
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<li".$li_class.">".$sep."<a href='".$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
} else {
$res .= "<li".$li_class.">".$sep."<a href='".BASEDIR.$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
}
$i++;
}
$res .= "</ul>\n";
return $res;
}
}
MMOG.lt - atrask naują pasaulį
Redagavo Gugiss 2008 Rugp. 31 19:08:41 |
DuRaCeLL
VIP narys
Generolas
Pranešimai: 1033
Įstojęs: 2007 Rugp. 18 21:08:14
|
ramon parašė:
2+(2*2)*2+2*2 = 14
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Ko nori?
MMOG.lt - atrask naują pasaulį |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Yo, yo niggaz. Help plyzzzzz
Notice: Undefined index: news_subject in /home/gugis/test.kar.lt/includes/theme_functions_include.php on line 125
Čia viso failo turinys:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: theme_functions_include.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
function check_panel_status($side) {
global $settings;
$exclude_list = "";
if ($side == "left") {
if ($settings['exclude_left'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_left']);
}
} elseif ($side == "upper") {
if ($settings['exclude_upper'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_upper']);
}
} elseif ($side == "lower") {
if ($settings['exclude_lower'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_lower']);
}
} elseif ($side == "right") {
if ($settings['exclude_right'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_right']);
}
}
if (is_array($exclude_list)) {
$script_url = explode("/", $_SERVER['PHP_SELF']);
$url_count = count($script_url);
$base_url_count = substr_count(BASEDIR, "/")+1;
$match_url = "";
while ($base_url_count != 0) {
$current = $url_count - $base_url_count;
$match_url .= "/".$script_url[$current];
$base_url_count--;
}
if (!in_array($match_url, $exclude_list) && !in_array($match_url.(FUSION_QUERY ? "?".FUSION_QUERY : ""), $exclude_list)) {
return true;
} else {
return false;
}
} else {
return true;
}
}
function showbanners() {
global $settings;
ob_start();
if ($settings['sitebanner2']) {
eval("?><div style='float: right;'>".stripslashes($settings['sitebanner2'])."</div>\n<?php ");
}
if ($settings['sitebanner1']) {
eval("?>".stripslashes($settings['sitebanner1'])."\n<?php ");
} elseif ($settings['sitebanner']) {
echo "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' style='border: 0;' /></a>\n";
} else {
echo "<a href='".$settings['siteurl']."'>".$settings['sitename']."</a>\n";
}
$output = ob_get_contents();
ob_end_clean();
return $output;
}
function showsublinks($sep = "·", $class = "") {
$sres = dbquery(
"SELECT link_window, link_visibility, link_url, link_name FROM ".DB_SITE_LINKS."
WHERE ".groupaccess('link_visibility')." AND link_position>='2' AND link_url!='---' ORDER BY link_order ASC"
);
if(dbrows($sres)) {
$i = 0;
$res = "<ul>\n";
while ($sdata = dbarray($sres)) {
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$li_class = ($i == 0 ? " class='first-link".($class ? " $class" : "")."'" : ($class ? " class='$class'" : ""));
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<li".$li_class.">".$sep."<a href='".$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
} else {
$res .= "<li".$li_class.">".$sep."<a href='".BASEDIR.$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
}
$i++;
}
$res .= "</ul>\n";
return $res;
}
}
function showsubdate() {
global $settings;
return ucwords(showdate($settings['subheaderdate'], time()));
}
function newsposter($info,$sep = "",$class = "") {
global $locale;
$res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
$res .= $locale['global_071'].showdate("longdate", $info['news_date']);
$res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
return "<!--news_poster-->".$res;
}
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='naujiena-".$info['news_id']."-".$info['news_subject'].".html'>".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--news_opts-->".$res;
}
function articleposter($info, $sep = "", $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." ".$locale['global_070']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
$res .= $locale['global_071'].showdate("longdate", $info['article_date']);
$res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
return "<!--article_poster-->".$res;
}
function articleopts($info, $sep) {
global $locale; $res = "";
if ($info['article_allow_comments']) { $res = "<a href='articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep."\n"; }
$res .= $info['article_reads'].$locale['global_074']." ".$sep."\n";
$res .= "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--article_opts-->".$res;
}
function itemoptions($item_type, $item_id) {
global $locale, $aidlink; $res = "";
if ($item_type == "N") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_news_opts--> · <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
} elseif ($item_type == "A") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_admin_opts--> · <a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
}
return $res;
}
function showcopyright($class = "") {
$link_class = $class ? " class='$class' " : "";
$res = "Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.<br />\n";
$res .= "Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'".$link_class.">GNU Affero GPL</a> v3.\n";
return $res;
}
function showcounter() {
global $locale,$settings;
return "<!--counter-->".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
}
function panelbutton($state, $bname) {
if (isset($_COOKIE["fusion_box_".$bname])) {
if ($_COOKIE["fusion_box_".$bname] == "none") {
$state = "off";
} else {
$state = "on";
}
}
return "<img src='".get_image("panel_".($state == "on" ? "off" : "on"))."' id='b_$bname' class='panelbutton' alt='' onclick=\"javascript:flipBox('$bname')\" />";
}
function panelstate($state, $bname) {
if (isset($_COOKIE["fusion_box_".$bname])) {
if ($_COOKIE["fusion_box_".$bname] == "none") {
$state = "off";
} else {
$state = "on";
}
}
return "<div id='box_$bname'".($state == "off" ? " style='display:none'" : "").">\n";
}
// v6 compatibility
function opensidex($title, $state = "on") {
openside($title, true, $state);
}
function closesidex() {
closeside();
}
function tablebreak() {
return true;
}
?>
MMOG.lt - atrask naują pasaulį
Redagavo Gugiss 2008 Rugs. 1 23:09:55 |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Mokeciau - padeciau ()
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Kuom tas news_subject užkliūna... o news_id neužkliūna... keista. Ramūn, tu kiec, aš tavim tikiu!
MMOG.lt - atrask naują pasaulį |
ramon
Narys
Ekspertas
Pranešimai: 2977
Įstojęs: 2006 Gru. 18 11:12:50
|
Ramun tu kiec as tavim netikiec!
|
Karolis
Administratorius
Ekspertas
Pranešimai: 3087
Įstojęs: 2008 Rugp. 12 01:08:42
|
Gugiss gaidys man subine laižys.
|
_MaZvE_
VIP narys
Generolas
Pranešimai: 1002
Įstojęs: 2008 Sau. 14 17:01:39
|
o ozonez jau senai jas laizo.Parodk pavizdy kaip reikia?
www.svarosspektras.lt |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Keršija suvartytas vaikas
MMOG.lt - atrask naują pasaulį |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Yra tokia užklausa:
$result0 = dbquery("SELECT * FROM ".DB_NEWS."");
$data0 = dbarray($result0);
o kintamasis $data0['news_subject'] visada atvaizduoja pirmosios eilutės duomenis. Kas blogai?
MMOG.lt - atrask naują pasaulį |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
ciklą daryk
while ($data0 = dbarray($result0)) {
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Jo? :D
Tai dabar tipo šitaip turi atrodyti?
$result0 = dbquery("SELECT * FROM ".DB_NEWS."");
while ($data0 = dbarray($result0)) {
MMOG.lt - atrask naują pasaulį
Redagavo Gugiss 2008 Rugs. 3 18:09:23 |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Labas!
MMOG.lt - atrask naują pasaulį |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
Nu taip. O vėliau eit turi lentelių kodai ir t.t.
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Kas?
MMOG.lt - atrask naują pasaulį |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
Nu <tr><td> ir panašiai.
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Parse error: syntax error, unexpected $end in /home/gugis/test.kar.lt/includes/theme_functions_include.php on line 204 :)
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$result0 = dbquery("SELECT * FROM ".DB_NEWS."");
while ($data0 = dbarray($result0)) {
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='naujiena-".$data0['news_id']."-".$data0['news_subject'].".html'>".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--news_opts-->".$res;
}
MMOG.lt - atrask naują pasaulį |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
gale dar vieną } uždėk.
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Vistiek rodo visada pirmos naujienos pavadinimą.
MMOG.lt - atrask naują pasaulį |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
MMOG.lt - atrask naują pasaulį |
Dandžu
Narys
Ekspertas
Pranešimai: 3265
Įstojęs: 2007 Lie. 23 13:07:47
|
Try now.
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$result = dbquery("SELECT * FROM ".DB_NEWS."");
while ($data = dbarray($result)) {
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='naujiena-".$data0['news_id']."-".$data0['news_subject'].".html'>".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--news_opts-->".$res;
}
}
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Nu pasidariau tuos friendly url su .htaccess, bet pasirodo tikrasis url kaip ka nors parasai shoutboxe arba ką nors įvertini. wtf? shoutbox:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
$link = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
$link = preg_replace("^(&|\?)s_action=(edit|delete)&shout_id=\d*^", "", $link);
$sep = stristr($link, "?") ? "&" : "?";
if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == "delete") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
if ((iADMIN && checkrights("S")) || (iMEMBER && dbcount("(shout_id)", DB_SHOUTBOX, "shout_id='".$_GET['shout_id']."' AND shout_name='".$userdata['user_id']."'"))) {
$result = dbquery("DELETE FROM ".DB_SHOUTBOX." WHERE shout_id='".$_GET['shout_id']."'".(iADMIN ? "" : " AND shout_name='".$userdata['user_id']."'"));
}
redirect($link);
}
function sbwrap($text) {
$i = 0; $tags = 0; $chars = 0; $res = "";
$str_len = strlen($text);
for ($i = 0; $i < $str_len; $i++) {
$chr = substr($text, $i, 1);
if ($chr == "<") {
if (substr($text, ($i + 1), 6) == "a href" || substr($text, ($i + 1), 3) == "img") {
$chr = " ".$chr;
$chars = 0;
}
$tags++;
} elseif ($chr == "&") {
if (substr($text, ($i + 1), 5) == "quot;") {
$chars = $chars - 5;
} elseif (substr($text, ($i + 1), 4) == "amp;" || substr($text, ($i + 1), 4) == "#39;" || substr($text, ($i + 1), 4) == "#92;") {
$chars = $chars - 4;
} elseif (substr($text, ($i + 1), 3) == "lt;" || substr($text, ($i + 1), 3) == "gt;") {
$chars = $chars - 3;
}
} elseif ($chr == ">") {
$tags--;
} elseif ($chr == " ") {
$chars = 0;
} elseif (!$tags) {
$chars++;
}
if (!$tags && $chars == 18) {
$chr .= "<br />";
$chars = 0;
}
$res .= $chr;
}
return $res;
}
openside($locale['global_150']);
if (iMEMBER || $settings['guestposts'] == "1") {
include_once INCLUDES."bbcode_include.php";
if (isset($_POST['post_shout'])) {
$flood = false;
if (iMEMBER) {
$shout_name = $userdata['user_id'];
} elseif ($settings['guestposts'] == "1") {
$shout_name = trim(stripinput($_POST['shout_name']));
$shout_name = preg_replace("(^[0-9]*)", "", $shout_name);
if (isnum($shout_name)) { $shout_name = ""; }
include_once INCLUDES."securimage/securimage.php";
$securimage = new Securimage();
if (!isset($_POST['sb_captcha_code']) || $securimage->check($_POST['sb_captcha_code']) == false) { redirect($link); }
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == "edit") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
$comment_updated = false;
if ((iADMIN && checkrights("S")) || (iMEMBER && dbcount("(shout_id)", DB_SHOUTBOX, "shout_id='".$_GET['shout_id']."' AND shout_name='".$userdata['user_id']."'"))) {
if ($shout_message) {
$result = dbquery("UPDATE ".DB_SHOUTBOX." SET shout_message='$shout_message' WHERE shout_id='".$_GET['shout_id']."'".(iADMIN ? "" : " AND shout_name='".$userdata['user_id']."'"));
}
}
redirect($link);
} elseif ($shout_name && $shout_message) {
require_once INCLUDES."flood_include.php";
if (!flood_control("shout_datestamp", DB_SHOUTBOX, "shout_ip='".USER_IP."'")) {
$result = dbquery("INSERT INTO ".DB_SHOUTBOX." (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
}
}
redirect($link);
}
if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == "edit") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
$esresult = dbquery(
"SELECT ts.*, tu.user_id, tu.user_name FROM ".DB_SHOUTBOX." ts
LEFT JOIN ".DB_USERS." tu ON ts.shout_name=tu.user_id
WHERE ts.shout_id='".$_GET['shout_id']."'"
);
if (dbrows($esresult)) {
$esdata = dbarray($esresult);
if ((iADMIN && checkrights("S")) || (iMEMBER && $esdata['shout_name'] == $userdata['user_id'] && isset($esdata['user_name']))) {
if ((isset($_GET['s_action']) && $_GET['s_action'] == "edit") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
$edit_url = $sep."s_action=edit&shout_id=".$esdata['shout_id'];
} else {
$edit_url = "";
}
$shout_link = $link.$edit_url;
$shout_message = $esdata['shout_message'];
}
} else {
$shout_link = $link;
$shout_message = "";
}
} else {
$shout_link = $link;
$shout_message = "";
}
echo "<a id='edit_shout' name='edit_shout'></a>\n";
echo "<form name='chatform' method='post' action='".$shout_link."'>\n";
if (iGUEST) {
echo $locale['global_151']."<br />\n";
echo "<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px' /><br />\n";
echo $locale['global_152']."<br />\n";
}
echo "<textarea name='shout_message' rows='4' cols='20' class='textbox' style='width:140px'>".$shout_message."</textarea><br />\n";
echo display_bbcodes("150px;", "shout_message", "chatform", "smiley|b|u|url|color")."\n";
if (iGUEST) {
echo $locale['global_158']."<br />\n";
echo "<img id='sb_captcha' src='".INCLUDES."securimage/securimage_show.php' alt='' /><br />\n";
echo "<a href='".INCLUDES."securimage/securimage_play.php'><img src='".INCLUDES."securimage/images/audio_icon.gif' alt='' class='tbl-border' style='margin-bottom:1px' /></a>\n";
echo "<a href='#' onclick=\"document.getElementById('sb_captcha').src = '".INCLUDES."securimage/securimage_show.php?sid=' + Math.random(); return false\"><img src='".INCLUDES."securimage/images/refresh.gif' alt='' class='tbl-border' /></a><br />\n";
echo $locale['global_159']."<br />\n<input type='text' name='sb_captcha_code' class='textbox' style='width:100px' /><br />\n";
}
echo "<br /><input type='submit' name='post_shout' value='".$locale['global_153']."' class='button' />\n";
echo "</form>\n<br />\n";
} else {
echo "<div style='text-align:center'>".$locale['global_154']."</div><br />\n";
}
$numrows = dbcount("(shout_id)", DB_SHOUTBOX);
$result = dbquery(
"SELECT ts.*, tu.user_id, tu.user_name FROM ".DB_SHOUTBOX." ts
LEFT JOIN ".DB_USERS." tu ON ts.shout_name=tu.user_id
ORDER BY ts.shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
if (dbrows($result)) {
$i = 0;
while ($data = dbarray($result)) {
echo "<div class='shoutboxname'>";
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "</div>\n";
echo "<div class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</div>";
echo "<div class='shoutbox'>".sbwrap(parseubb(parsesmileys($data['shout_message']), "b|i|u|url|color"))."</div>\n";
if ((iADMIN && checkrights("S")) || (iMEMBER && $data['shout_name'] == $userdata['user_id'] && isset($data['user_name']))) {
echo "[<a href='".$link.$sep."s_action=edit&shout_id=".$data['shout_id']."#edit_shout"."' class='side'>".$locale['global_076']."</a>]\n";
echo "[<a href='".$link.$sep."s_action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['global_157']."</a>]<br />\n";
}
$i++;
if ($i != $numrows) { echo "<br />\n"; }
}
if ($numrows > $settings['numofshouts']) {
echo "<div style='text-align:center'>\n<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['global_155']."</a>\n</div>\n";
}
} else {
echo "<div>".$locale['global_156']."</div>\n";
}
closeside();
?>
MMOG.lt - atrask naują pasaulį |
Žmogus
Narys
Viršesnis už Dievą
Pranešimai: 5621
Įstojęs: 2006 Gru. 8 17:12:08
|
Tai čia taip turi būti, nieko nepakeisi
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
pakeisiu!
MMOG.lt - atrask naują pasaulį |
Toonis
VIP narys
Viršesnis už Dievą
Pranešimai: 5741
Įstojęs: 2006 Spa. 17 14:10:03
|
Gugiss parašė:
pakeisiu! Aš pasitikiu tavo jėgom!!!
[galingų saliutų foto] |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
pirst...
MMOG.lt - atrask naują pasaulį |
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
Gal yra vyrai bliat nax.ui bliat suprantat toks modas http://mmorpg.com/gamelist.cfm/g... nu tipo bliat as pridedu kategorija bliat ir nu nueinu i ta kategorija nu ir tipo virsui tie linkai y tos kategorijos straipsnius ir nu bliat siuntinius, naujienas nu suprantat.
MMOG.lt - atrask naują pasaulį |
Rytis
Narys
Tankas
Pranešimai: 2258
Įstojęs: 2006 Sau. 13 17:01:49
|
bliat
|
Gugiss
Narys
Ekspertas
Pranešimai: 3061
Įstojęs: 2008 Vas. 23 15:02:01
|
nu
MMOG.lt - atrask naują pasaulį |
Rytis
Narys
Tankas
Pranešimai: 2258
Įstojęs: 2006 Sau. 13 17:01:49
|
tvajumat
|