Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit :)
Parašė SubWofer· 2009 Rugs. 7 19:09:48
#1
Man reikia pakeisti šito parodyto mėlyno spalva , nerandu kur ? gal galit padet ?
Redagavo SubWofer· 2009 Rugs. 7 19:09:55
Parašė iStyle· 2009 Rugs. 7 19:09:34
#2
tu man parodyk infusiono kodą :D
Parašė SubWofer· 2009 Rugs. 7 19:09:52
#3
tai cia ne style kalta :)?
Parašė iStyle· 2009 Rugs. 7 19:09:42
#4
Ne.
Parašė SubWofer· 2009 Rugs. 7 19:09:22
#5
Tai jei ne imk
<?php
////////////////////////////////////
//php-fusion.co.uk - digimonas/////
//////////////////////////////////
//modded by modding.bendras.com//
////////////////////////////////
//By nepster :)////////////////
//////////////////////////////
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n<hr>";
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".BASEDIR."images/noimage.gif'></center>\n";
}
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<br><center><A href=\"javascript:show_hide(show_hide1)\">
<img src='".THEME."images/bullet.gif' border=0> <font color=red><b>Administravimas</b></font></a></center>
<div id='show_hide1'></a>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php".$aidlink."'>Administracijos panelė</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."news.php".$aidlink."'>Rašyti naujieną</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."articles.php".$aidlink."'>Rašyti straipsnį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."submissions.php".$aidlink."'>Pateikimai</a><br>
<script>show_hide(show_hide1)</script></a></div>";
}
/////////////////////
//Script by Nepster//
////////////////////
echo "</a><script>
var linktext=new Array()
linktext[0]=\"kasnors\"
linktext[1]=\"kasnors2\"
linktext[2]=\"Profilio redagavimas\"
linktext[3]=\"Privačios žinutės\"
linktext[4]=\"Narių sąrašas\"
linktext[5]=\"Atsijungti\"
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}
function resetit(whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
</script>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side' alt='Profilis' title='Profilis'><img src='".IMAGES."profile.png' alt='' onMouseover=\"show_text(2,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."messages.php' class='side' alt='Privacios zinutes' title='Privacios zinutes'><img src='".IMAGES."private.png' alt='' onMouseover=\"show_text(3,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."members.php' class='side' alt='Nariai' title='Nariai'><img src='".IMAGES."users.png' alt='' onMouseover=\"show_text(4,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."setuser.php?logout=yes' class='side' alt='Atsijungti' title='Atsijungti'><img src='".IMAGES."exit.png' alt='' onMouseover=\"show_text(5,'div2')\" onMouseout=\"resetit('div2')\"></a><br>";
echo "<i><span id=\"div2\"> </span></i>";
echo "<br><hr>";
///////////////////////////
include_once INCLUDES."exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enaašip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enaašip=true
return false
}
}
function positiontip(e){
if (enaašip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
}
}
function hideddrivetip(){
if (ns6||ie){
enaašip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>";
echo"<br></a><a href='http://modding.bendras.com' target='_blank' title='Autoriai' onMouseover=\"ddrivetip('Autoriai: http://modai.tk','#cccccc', 200)\"; onMouseout=\"hideddrivetip()\"><div align='right'>©</div></a>";
closeside();
?>
Parašė iStyle· 2009 Rugs. 7 19:09:04
#6
<?php
////////////////////////////////////
//php-fusion.co.uk - digimonas/////
//////////////////////////////////
//modded by modding.bendras.com//
////////////////////////////////
//By nepster :)////////////////
//////////////////////////////
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n<hr>";
if ($userdata['user_avatar'] != "") {
echo "<center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center>\n";
} else {
echo "<center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".BASEDIR."images/noimage.gif'></center>\n";
}
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<br><center><A href=\"javascript:show_hide(show_hide1)\">
<img src='".THEME."images/bullet.gif' border=0> <font color=red><b>Administravimas</b></font></a></center>
<div id='show_hide1'></a>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php".$aidlink."'>Administracijos panelė</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."news.php".$aidlink."'>Rašyti naujieną</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."articles.php".$aidlink."'>Rašyti straipsnį</a><br>
<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."submissions.php".$aidlink."'>Pateikimai</a><br>
<script>show_hide(show_hide1)</script></a></div>";
}
/////////////////////
//Script by Nepster//
////////////////////
echo "</a><script>
var linktext=new Array()
linktext[0]=\"kasnors\"
linktext[1]=\"kasnors2\"
linktext[2]=\"Profilio redagavimas\"
linktext[3]=\"Privačios žinutės\"
linktext[4]=\"Narių sąrašas\"
linktext[5]=\"Atsijungti\"
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext]
}
function resetit(whichdiv){
if (ie) eval(\"document.all.\"+whichdiv).innerHTML=' '
else if (ns6) document.getElementById(whichdiv).innerHTML=' '
}
</script>";
echo "<br><a href='".BASEDIR."edit_profile.php' class='side' alt='Profilis' title='Profilis'><img src='".IMAGES."profile.png' alt='' onMouseover=\"show_text(2,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."messages.php' class='side' alt='Privacios zinutes' title='Privacios zinutes'><img src='".IMAGES."private.png' alt='' border='0' onMouseover=\"show_text(3,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."members.php' class='side' alt='Nariai' title='Nariai'><img src='".IMAGES."users.png' alt='' border='0' onMouseover=\"show_text(4,'div2')\" onMouseout=\"resetit('div2')\"></a>
<a href='".BASEDIR."setuser.php?logout=yes' class='side' alt='Atsijungti' title='Atsijungti'><img src='".IMAGES."exit.png' border='0' alt='' onMouseover=\"show_text(5,'div2')\" onMouseout=\"resetit('div2')\"></a><br>";
echo "<i><span id=\"div2\"> </span></i>";
echo "<br><hr>";
///////////////////////////
include_once INCLUDES."exp_include.php";
showexp($userdata['user_id'],$userdata['user_posts'], "1");
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."<br>
<input type='text' name='user_name' class='textbox' style='width:100px'><br>
".$locale['062']."<br>
<input type='password' name='user_pass' class='textbox' style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br><br>\n";
}
echo $locale['066']."
</div>\n";
}
echo "<style type=\"text/css\">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
</style>";
echo "<div id=\"dhtmltooltip\"></div><script type=\"text/javascript\">
var offsetxpoint=-60
var offsetypoint=20
var ie=document.all
var ns6=document.getElementById && !document.all
var enaašip=false
if (ie||ns6)
var tipobj=document.all? document.all[\"dhtmltooltip\"] : document.getElementById? document.getElementById(\"dhtmltooltip\") : \"\"
function ietruebody(){
return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"
if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enaašip=true
return false
}
}
function positiontip(e){
if (enaašip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+\"px\" : window.pageXOffset+e.clientX-tipobj.offsetWidth+\"px\"
else if (curX<leftedge)
tipobj.style.left=\"5px\"
else
tipobj.style.left=curX+offsetxpoint+\"px\"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+\"px\" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+\"px\"
else
tipobj.style.top=curY+offsetypoint+\"px\"
tipobj.style.visibility=\"visible\"
}
}
function hideddrivetip(){
if (ns6||ie){
enaašip=false
tipobj.style.visibility=\"hidden\"
tipobj.style.left=\"-1000px\"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>";
echo"<br></a><a href='http://modding.bendras.com' target='_blank' title='Autoriai' onMouseover=\"ddrivetip('Autoriai: http://modai.tk','#cccccc', 200)\"; onMouseout=\"hideddrivetip()\"><div align='right'>©</div></a>";
closeside();
?>
Jei veikia +10 man :D
Redagavo iStyle· 2009 Rugs. 7 19:09:35
Parašė SubWofer· 2009 Rugs. 7 19:09:01
#7
Pazesiu gal ir sita nuo shoutboxo nuimtai :D ?
Parašė iStyle· 2009 Rugs. 7 19:09:22
#8
Galiu :)
Parašė SubWofer· 2009 Rugs. 7 19:09:38
#9
Shoutboxo kodas ;)
<?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
+----------------------------------------------------+
| Shoutbox v6.01.4 - Modded by Shedrock 2006
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if (file_exists(INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."shoutbox_panel/locale/Lithuanian.php";
}
require_once INFUSIONS."shoutbox_panel/bb_script.php";
echo "<script type='text/javascript' language='JavaScript'>
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;}
</script>
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/editor.js'></script>
<script language='javascript' type='text/javascript'>
function fuzetext(elname, wrap1, wrap2) {
if (document.selection) { // for IE
var str = document.selection.createRange().text;
document.forms['shoutform'].elements[elname].focus();
var sel = document.selection.createRange();
sel.text = wrap1 + str + wrap2;
return;
} else if ((typeof document.forms['shoutform'].elements[elname].selectionStart) != 'undefined') { // for Mozilla
var txtarea = document.forms['shoutform'].elements[elname];
var selLength = txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
var oldScrollTop = txtarea.scrollTop;
//if (selEnd == 1 || selEnd == 2)
//selEnd = selLength;
var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + wrap1 + s2 + wrap2 + s3;
txtarea.selectionStart = s1.length;
txtarea.selectionEnd = s1.length + s2.length + wrap1.length + wrap2.length;
txtarea.scrollTop = oldScrollTop;
txtarea.focus();
return;
} else {
insertText(elname, wrap1 + wrap2);
}
}
</script>";
openside($locale['120']);
if (checkrights("S") && $action == "delete" && isNum($shout_id)) {
$result = dbquery("DELETE FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
}
if (iMEMBER || $settings['guestposts'] == "1") {
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="";
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
$shout_message = preg_replace("/([^\s]{85})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
if ($shout_name != "" && $shout_message != "") {
$result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
if (!iSUPERADMIN || dbrows($result) > 0) {
$data = dbarray($result);
if ((time() - $data['last_shout']) < $settings['flood_interval']) {
$flood = true;
$result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
}
}
}
if (!$flood) $result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
}
fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
//Added Ban MOD Start
if ($step == "ban") {
if ($act == "on") {
if ($user_id != 1) {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
} elseif ($act == "off") {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='0' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
}
//Added Ban MOD End
//Smiley Popup.
echo "<script type='text/javascript' language='JavaScript'>
<!-- Begin
function smileys(URL) {
day = new Date();
id = day.getTime();
eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=90,left = 407,top = 329');\");
}
// End Smiley Popup-->
</script>
<form name='shoutform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY) : "")."'>
<div align='center'>".$locale['fb_001']." <input style='margin-top:5px; margin-bottom:2px; padding-left:6px; padding-right:0px;' class='textbox' readonly type='text' name='commentlen' size='4' maxlength='3' value='200'></div>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
}
echo "<textarea onKeyDown=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" onKeyUp=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" id='shout_message' name='shout_message' rows='4' class='textbox' style='margin-bottom:-5px; width:140px;'>".str_replace("<br>", "", $data['shout_message'])."</textarea>
</td></tr><tr>
<td align='center'>
<input style='margin-top:10px; margin-bottom:10px;' alt='".$locale['fb_002']."' title='".$locale['fb_002']."' type='submit' name='post_shout' value='".$locale['123']."' class='button'>
<div style='margin-top:-5px; margin-bottom:-1px;' align='center' class='tbl2'>
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:smileys('".INFUSIONS."shoutbox_panel/smileys.php')\">".$locale['fb_003']."</a> |
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_004']."</a> |
<br>
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_013']."</a> |
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_012']."</a> |
<br>
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:defuze(bb_colors)\">".$locale['fb_005']."</a> |</div><br />
<div id='bb_colors'>
<script language='javascript' type='text/javascript'>
<!--
colorPalette('v', 10, 7)
//--></script><br />
<script language='javascript' type='text/javascript'>defuze(bb_colors)</script>
</div></td>
</tr>
</table>
</form>";
} else {
echo "<center>".$locale['125']."</center><br>\n";
}
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery(
"SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users
ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
//Modded for user ban display names.
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
echo "<span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','@".$data['user_name'].":%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/amp.png' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
}else if ($data['user_status'] == "1") {
echo "<span style='color:#0000FF;' title='".$locale['fb_011']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
if ($data['user_status'] == 1) {
if (iMEMBER){
echo "<span style='color:#0000FF;' title='".$locale['fb_011']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
//end ban display names.
//Modded for colored names.
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
}if ($data['user_status'] == 1) {
$userx = "<font color='#B0B0B0' title='".$locale['fb_011']."'>".$data[user_name]."</font>";
}
// end color mod.
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$userx</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span>";
$wiadomosc = nl2br(parseshoutubb(parseubb(parsesmileys($data['shout_message']))));
$shout_wiadomosc = wordwrap($wiadomosc , 500, " ", 1);
if ($userdata['user_level'] >= 103) {
echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a>] ";
if ($data['user_status'] == "1") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=off&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_008']."</a>]";
}else if ($data[user_level] == "103") {
echo"";
}else if ($data['user_status'] == "0") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=on&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_009']."</a>]";
}
echo "<br><span style='font-size:8px;'>".$locale['fb_010']."".$data['user_ip']."</span><br>";
} else {
echo "<br>\n";
}
echo "<span class='shoutbox'>".$shout_wiadomosc ."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
closeside();
?>
Parašė iStyle· 2009 Rugs. 7 19:09:59
#10
Parodyk kas ten blogai :D
Parašė SubWofer· 2009 Rugs. 7 19:09:14
#11
Parašė iStyle· 2009 Rugs. 7 19:09:20
#12
<?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
+----------------------------------------------------+
| Shoutbox v6.01.4 - Modded by Shedrock 2006
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if (file_exists(INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."shoutbox_panel/locale/Lithuanian.php";
}
require_once INFUSIONS."shoutbox_panel/bb_script.php";
echo "<script type='text/javascript' language='JavaScript'>
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;}
</script>
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/editor.js'></script>
<script language='javascript' type='text/javascript'>
function fuzetext(elname, wrap1, wrap2) {
if (document.selection) { // for IE
var str = document.selection.createRange().text;
document.forms['shoutform'].elements[elname].focus();
var sel = document.selection.createRange();
sel.text = wrap1 + str + wrap2;
return;
} else if ((typeof document.forms['shoutform'].elements[elname].selectionStart) != 'undefined') { // for Mozilla
var txtarea = document.forms['shoutform'].elements[elname];
var selLength = txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
var oldScrollTop = txtarea.scrollTop;
//if (selEnd == 1 || selEnd == 2)
//selEnd = selLength;
var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + wrap1 + s2 + wrap2 + s3;
txtarea.selectionStart = s1.length;
txtarea.selectionEnd = s1.length + s2.length + wrap1.length + wrap2.length;
txtarea.scrollTop = oldScrollTop;
txtarea.focus();
return;
} else {
insertText(elname, wrap1 + wrap2);
}
}
</script>";
openside($locale['120']);
if (checkrights("S") && $action == "delete" && isNum($shout_id)) {
$result = dbquery("DELETE FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
}
if (iMEMBER || $settings['guestposts'] == "1") {
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="";
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
$shout_message = preg_replace("/([^\s]{85})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
if ($shout_name != "" && $shout_message != "") {
$result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
if (!iSUPERADMIN || dbrows($result) > 0) {
$data = dbarray($result);
if ((time() - $data['last_shout']) < $settings['flood_interval']) {
$flood = true;
$result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
}
}
}
if (!$flood) $result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
}
fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
//Added Ban MOD Start
if ($step == "ban") {
if ($act == "on") {
if ($user_id != 1) {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
} elseif ($act == "off") {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='0' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
}
//Added Ban MOD End
//Smiley Popup.
echo "<script type='text/javascript' language='JavaScript'>
<!-- Begin
function smileys(URL) {
day = new Date();
id = day.getTime();
eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=90,left = 407,top = 329');\");
}
// End Smiley Popup-->
</script>
<form name='shoutform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY) : "")."'>
<div align='center'>".$locale['fb_001']." <input style='margin-top:5px; margin-bottom:2px; padding-left:6px; padding-right:0px;' class='textbox' readonly type='text' name='commentlen' size='4' maxlength='3' value='200'></div>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
}
echo "<textarea onKeyDown=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" onKeyUp=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" id='shout_message' name='shout_message' rows='4' class='textbox' style='margin-bottom:-5px; width:140px;'>".str_replace("<br>", "", $data['shout_message'])."</textarea>
</td></tr><tr>
<td align='center'>
<input style='margin-top:10px; margin-bottom:10px;' alt='".$locale['fb_002']."' title='".$locale['fb_002']."' type='submit' name='post_shout' value='".$locale['123']."' class='button'>
<div style='margin-top:-5px; margin-bottom:-1px;' align='center' class='tbl2'>
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:smileys('".INFUSIONS."shoutbox_panel/smileys.php')\">".$locale['fb_003']."</a> |
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_004']."</a> |
<br>
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_013']."</a> |
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_012']."</a> |
<br>
| <a style='text-decoration:none; font-weight:normal;' href=\"javascript:defuze(bb_colors)\">".$locale['fb_005']."</a> |</div><br />
<div id='bb_colors'>
<script language='javascript' type='text/javascript'>
<!--
colorPalette('v', 10, 7)
//--></script><br />
<script language='javascript' type='text/javascript'>defuze(bb_colors)</script>
</div></td>
</tr>
</table>
</form>";
} else {
echo "<center>".$locale['125']."</center><br>\n";
}
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery(
"SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users
ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
//Modded for user ban display names.
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
echo "<span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','@".$data['user_name'].":%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/amp.png' border='0' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
}else if ($data['user_status'] == "1") {
echo "<span style='color:#0000FF;' title='".$locale['fb_011']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
if ($data['user_status'] == 1) {
if (iMEMBER){
echo "<span style='color:#0000FF;' title='".$locale['fb_011']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
//end ban display names.
//Modded for colored names.
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
}if ($data['user_status'] == 1) {
$userx = "<font color='#B0B0B0' title='".$locale['fb_011']."'>".$data[user_name]."</font>";
}
// end color mod.
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$userx</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span>";
$wiadomosc = nl2br(parseshoutubb(parseubb(parsesmileys($data['shout_message']))));
$shout_wiadomosc = wordwrap($wiadomosc , 500, " ", 1);
if ($userdata['user_level'] >= 103) {
echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a>] ";
if ($data['user_status'] == "1") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=off&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_008']."</a>]";
}else if ($data[user_level] == "103") {
echo"";
}else if ($data['user_status'] == "0") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=on&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_009']."</a>]";
}
echo "<br><span style='font-size:8px;'>".$locale['fb_010']."".$data['user_ip']."</span><br>";
} else {
echo "<br>\n";
}
echo "<span class='shoutbox'>".$shout_wiadomosc ."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
closeside();
?>
Redagavo iStyle· 2009 Rugs. 7 19:09:29
Parašė SubWofer· 2009 Rugs. 7 19:09:17
#13
Duociau +10 bet galiu tik +7 tai palauksiu kol galesiu +10 :) Aciū.;)
Parašė iStyle· 2009 Rugs. 7 19:09:13
#14
Prašom :)
P.S koks skype tavo? :D
Redagavo iStyle· 2009 Rugs. 7 19:09:17
Parašė SubWofer· 2009 Rugs. 7 19:09:44
#15
fun.adxs.net ;) ta jau sena neveikia ;)