Das Achiv funzt eigentlich. Wenn ein Post in der Box ist und dann auf auf Archiv gehe wird sie ganz normal angezeigt. Die Verschiebung kommt scheinbar nur wenn nix drin steht.
Ok hier sind die Dateien:
boxes/shbox.php
<?php
/*
Script => ShBox 3.2.2 =>V1 © by NF-Projekt FIXED (V1.0)
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ('no direct access');
include ('include/includes/js/shbox/shboxfunc.php');
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
echo '
<table width="'.$conf['tabellewidth'].'%" height="" border="0" gcolor="" cellspacing="0" cellpadding="0">
<tr>
<td>
';
$postname = escape($_POST['xname'],'string');
$postnamex = '*GAST*';
$tags = array('[img]','[url]','[IMG]','[URL]','[/img]','[/url]','[/IMG]','[/URL]','[COLOR]','[/COLOR]','[color]','[/color]','http','www','://');
$posttxt = escape($_POST['xtxt'], 'textarea');
$posttxt = str_replace($tags , '', escape($_POST[xtxt],'string'));
$posttxt = strip_tags($posttxt);
if (isset($_POST['subshbox']))
{//Check Submit
if ($posttxt == ''){//Check leeres Textfeld
}//CLT
else
{//CLT
if ( loggedin() )
{//1
if ( isset($_POST['xtxt']) AND !empty($_POST['xdate']) AND !empty($_POST['xname']) AND !empty($_POST['xip']) )
{//2
db_query("INSERT INTO prefix_shbox (`txt`,`date`,`name`,`ip`) VALUES
('".$posttxt."', '".escape($_POST[xdate],'string')."', '".$postname."', '".escape($_POST[xip],'string')."')");
}//2
}//1
else
{//3
$abfs = db_query("SELECT id FROM prefix_user WHERE name = BINARY '".$postname."'");
if (db_num_rows($abfs) > 0)
{
if ($conf['spam'] == AN)
{//4
if ($_POST['sz'] == $_POST['xspam'])
{//5
if ( isset($_POST['xtxt']) AND !empty($_POST['xdate']) AND !empty($_POST['xname']) AND !empty($_POST['xip']) )
{//6
db_query("INSERT INTO prefix_shbox (`txt`,`date`,`name`,`ip`) VALUES
('".$posttxt."', '".escape($_POST[xdate],'string')."', '".$postnamex."', '".escape($_POST[xip],'string')."')");
}//6
}//5
}//4
else
{//7
if ( isset($_POST['xtxt']) AND !empty($_POST['xdate']) AND !empty($_POST['xname']) AND !empty($_POST['xip']) )
{//8
db_query("INSERT INTO prefix_shbox (`txt`,`date`,`name`,`ip`) VALUES
('".$posttxt."', '".escape($_POST[xdate],'string')."', '".$postnamex."', '".escape($_POST[xip],'string')."')");
}//8
}//7
}
else
{
if ($conf['spam'] == AN)
{//4
if (escape($_POST['sz'],'string') == escape($_POST['xspam'],'string'))
{//5
if ( isset($_POST['xtxt']) AND !empty($_POST['xdate']) AND !empty($_POST['xname']) AND !empty($_POST['xip']) )
{//6
db_query("INSERT INTO prefix_shbox (`txt`,`date`,`name`,`ip`) VALUES
('".$posttxt."', '".escape($_POST[xdate],'string')."', '".$postname."', '".escape($_POST[xip],'string')."')");
}//6
}//5
}//4
else
{//7
if ( isset($_POST['xtxt']) AND !empty($_POST['xdate']) AND !empty($_POST['xname']) AND !empty($_POST['xip']) )
{//8
db_query("INSERT INTO prefix_shbox (`txt`,`date`,`name`,`ip`) VALUES
('".$posttxt."', '".escape($_POST[xdate],'string')."', '".$postname."', '".escape($_POST[xip],'strng')."')");
}//8
}//7
}//3
}
}
}
$ILCH_HEADER_ADDITIONS .= '
<link rel="stylesheet" type="text/css" href="include/includes/js/shbox/shbox.css">
<script type="text/javascript" charset="utf-8" src="include/includes/js/shbox/shbox.js"></script>
<script language="JavaScript" type="text/javascript">
window.onload = "fetch()";
interval = window.setInterval("fetch();", '.$conf['setinterval'].');
</script>
';
$datum = date("$conf[datumformat]");
$hr = '<hr style="height:0px;border:solid '.$conf['hrcolor'].' 0px;border-top-width: 1px;" />';
if ($conf['ip'] == JA)
{
$ips = $_SERVER['REMOTE_ADDR'];
$ip = '<br />Deine IP : '.$_SERVER['REMOTE_ADDR'].'';
}
else
{
$ip = '';
}
srand ((double) microtime() * 1000000);
$sz = rand(999,10000);
if ($conf['spam'] == AN)
{
$spam = '
<table border="0" bgcolor="'.$conf['tabellecolor'].'" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<input type="hidden" name="sz" value="'.$sz.'" />
'.$sz.' <input name="xspam" size="4" maxlength="4" value="" />
</td>
</tr>
</table>
';
}
else
{
$spam = '';
}
if($conf['smilies'] == JA)
{
$smilies = shboxsmilies();
}
else
{
$smilies = '';
}
if ( loggedin() )
{
$abf = 'SELECT id, name, avatar FROM prefix_user WHERE name = "'.escape($_SESSION['authname'],'string').'"';
$erg = db_query($abf);
$row = db_fetch_object($erg);
{
$tabellew = $conf['tabellewidth'];
$tabelleh = $conf['tabelleheight'];
if ($conf['anzeige'] == 0)
{
if ( file_exists($row->avatar))
{
$avatar = '<img src="'.$row->avatar.'" border="0" height="'.$conf['avatarx'].'" width="'.$conf['avatary'].'">';
}
else
{
$avatar = $_SESSION['authname'];
}
}
else
{
$avatar = $_SESSION['authname'];
}
}
$tpl = new tpl ('shbox');
$ar = array(
'txt' => $text = escape($_POST['txt'], 'textarea'),
'CLASS' => $class,
'SMILIES' => $smilies,
'IP' => $ip,
'IPS' => $ips,
'USER' => $_SESSION['authname'],
'AVATAR' => $avatar,
'HR' => $hr,
'DATE' => $datum,
'TXTROWS' => $conf['textrows'],
'TXTCOLS' => $conf['textcols'],
'TXTCOLOR' => $conf['textgroundcolor'],
'TCOLOR' => $conf['tabellecolor'],
'TABELLEH' => $tabelleh,
'TABELLEW' => $tabellew
);
$tpl->set_ar_out($ar, 0);
}
elseif ($conf['gastrecht'] == AN)
{
$gast = ''.$conf['nametext'].'<br /><input name="xname" size="'.$conf['namesize'].'" maxlength="'.$conf['namelänge'].'" style="background-color:'.$conf['namegroundcolor'].'" value="GAST" />';
$tpl = new tpl ('shbox');
$ar = array(
'txt' => $text = escape($_POST['txt'], 'textarea'),
'CLASS' => $class,
'SMILIES' => $smilies,
'IP' => $ip,
'IPS' => $ips,
'GAST' => $gast,
'HR' => $hr,
'DATE' => $datum,
'SPAM' => $spam,
'TXTROWS' => $conf['textrows'],
'TXTCOLS' => $conf['textcols'],
'TXTCOLOR' => $conf['textgroundcolor'],
'TCOLOR' => $conf['tabellecolor'],
'TABELLEH' => $tabelleh,
'TABELLEW' => $tabellew
);
$tpl->set_ar_out($ar, 1);
}
else
{
echo '<center>'.$conf['nametext'].'</center><br />';
echo $hr;
}
if ($conf['reload'] == AN)
{
echo '<div id="shoutbox">
<center><img src="include/images/load.gif" alt="Load" id="shoutbox" border="0" /></center>
</div>';
}
else
{
echo shbox();
}
echo '
<table width="'.$conf['tabellewidth'].'%" height="'.$conf['tabelleheight'].'%" border="0" bgcolor="'.$conf['tabellecolor'].'" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<center><b><a href="index.php?shbox-archiv">ARCHIV</a></b></center>
</td>
</tr>
</table>
</td>
</tr>
</table>';
?>
admin/shboxshow.php
<?php
/*
Script => ShBox 3.2.2 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ( 'no direct access' );
defined ('admin') or die ( 'only admin access' );
$design = new design ( 'Admins Area', 'Admins Area', 2 );
$design->header();
if (escape($menu->getA(1),'string') == 'd' AND is_numeric(escape($menu->getE(1),'string')) AND is_siteadmin())
{
db_query("DELETE FROM prefix_shbox WHERE id = ".escape($menu->getE(1),'string'));
}
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$a = db_fetch_assoc($abf);
if (isset($_POST['subedit']))
{
db_query("UPDATE prefix_shbox
SET
txt = '".escape($_POST['edittxt'],'string')."'
WHERE id = '".escape($_POST['editid'],'string')."'
")OR die('datenbankprob.');
}
echo '
<table id="G" width="100%" border="1" cellpadding="2" cellspacing="1">
<tr class="Chead">
<td id="G" colspan="2"><center><b>ShBox 3.2.2</b><center></td>
</tr>
<tr>
<td>
<table id="Archiv" width="100%" border="1" cellpadding="2" cellspacing="1">
<tr>
<td class="Cmite"><b>ShBox Einstellungen</b> <i><small>Einstellungen</small></i></td>
<td class="Cnorm"><a href="admin.php?shboxadmin">LOS</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="EText" width="100%" border="1" cellpadding="2" cellspacing="1" class="border">
<tr class="Chead">
<td id="G" colspan="2"><center><b>ShBox Einträge Löschen und Bearbeiten</b><center></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="Einstellungen">
<table id="Bezeichnung" width="100%" border="1" cellpadding="2" cellspacing="1" class="border">
<tr class="Chead">
<td align="center"><b>Id</b></td>
<td align="center"><b>Name</b></td>
<td align="center"><b>Datum/Zeit</b></td>
<td align="center"><b>Text(gekürzt und ohne BB)</b></td>
<td align="center"><b>IP</b></td>
<td align="center"><b>Bearbeiten</b></td>
<td align="center"><b>Löschen</b></td>
</tr>
';
if (escape($menu->get(1),'string') == 'edit')
{
$gid = escape($menu->get(2), 'integer');
$ed = db_query('SELECT * FROM `prefix_shbox` WHERE id ="'.$gid.'"');
$e = db_fetch_assoc($ed);
echo '
<form action="admin.php?shboxshow" method="POST">
<tr>
<td style="background-color: #FF0000">'.$e['id'].'<input type="hidden" name="editid" value="'.$e['id'].'" /></td>
<td style="background-color: #FF0000">'.$e['name'].'</td>
';
if($a['datumzeit'] == NEIN)
{
echo '<td style="background-color: #FF0000" align="center"><b>n/a</b></td>';
}
else
{
echo '<td style="background-color: #FF0000">'.$e['date'].'</td>';
}
echo '
<td style="background-color: #FF0000"><textarea name="edittxt" rows="2" cols="50" wrap="virtual">'.$e['txt'].'</textarea></td>
';
if($a['ip'] == NEIN)
{
echo '<td style="background-color: #FF0000" align="center"><b>n/a</b></td>';
}
else
{
echo '<td style="background-color: #FF0000">'.$e['ip'].'</td>';
}
echo '
<td style="background-color: #FF0000" align="center"><input name="subedit" type="submit" value="Ändern" /></td>
<td style="background-color: #FF0000" align="center"> </td>
</tr>
</form>
';
}
$erg = db_query('SELECT * FROM `prefix_shbox` ORDER BY id DESC');
while ($row = db_fetch_assoc($erg) ) {
$class = ($class == 'Cmite' ? 'Cnorm' : 'Cmite' );
echo '
<tr>
<td class="'.$class.'">'.$row['id'].'</td>
<td class="'.$class.'">'.$row['name'].'</td>
';
if($a['datumzeit'] == NEIN)
{
echo '<td class="'.$class.'" align="center"><b>n/a</b></td>';
}
else
{
echo '<td class="'.$class.'">'.$row['date'].'</td>';
}
echo '<td class="'.$class.'">'.substr($row['txt'], 0, 40).' ...</td>';
if($a['ip'] == NEIN)
{
echo '<td class="'.$class.'" align="center"><b>n/a</b></td>';
}
else
{
echo '<td class="'.$class.'">'.$row['ip'].'</td>';
}
echo '
<td class="'.$class.'" align="center"><a href="admin.php?shboxshow-edit-'.$row['id'].'"><img src="include/images/icons/edit.gif" alt="Bearbeiten" title="Bearbeiten"></a></td>
<td class="'.$class.'" align="center"><a href="admin.php?shboxshow-d'.$row['id'].'"><img src="include/images/icons/del.gif" alt="Löschen" title="Löschen"></a> </td>
</tr>
';
}
echo '
</table>
</td>
</tr>
</table>
';
echo '<span style="font-size:10px;">ShBox V3.2.1 © 2006-2009 by <a href="http://www.nf-projekt.de"><span style="color:#FF8000;">NF - PROJEKT</span></a></span>';
$design->footer();
?>
admin/shboxadmin.php
<?php
/*
Script => ShBox 3.2.2 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ( 'no direct access' );
defined ('admin') or die ( 'only admin access' );
$design = new design ( 'Admins Area', 'Admins Area', 2 );
$design->addheader( '<link rel="stylesheet" type="text/css" href="include/includes/js/shbox/shbox.css">
<script type="text/javascript" charset="utf-8" src="include/includes/js/shbox/shbox.js"></script>');
$design->header();
$tpl = new tpl ( 'shboxadmin',1 );
if (isset($_POST['sub']))
{
db_query("UPDATE prefix_shbox_config
SET
anzeige = '".escape($_POST['anzeige'],'string')."',
reload = '".escape($_POST['reload'],'string')."',
setinterval = '".escape($_POST['setinterval'],'string')."',
ausgabe = '".escape($_POST['ausgabe'],'string')."',
datumzeit = '".escape($_POST['datumzeit'],'string')."',
datumformat = '".escape($_POST['datumformat'],'string')."',
ip = '".escape($_POST['ip'],'string')."',
smilies = '".escape($_POST['smilies'],'string')."',
smilieszeile = '".escape($_POST['smilieszeile'],'string')."',
smiliesspalte = '".escape($_POST['smiliesspalte'],'string')."',
admincolor = '".escape($_POST['admincolor'],'string')."',
admintext = '".escape($_POST['admintext'],'string')."',
gastcolor = '".escape($_POST['gastcolor'],'string')."',
gasttext = '".escape($_POST['gasttext'],'string')."',
gastrecht = '".escape($_POST['gastrecht'],'string')."',
spam = '".escape($_POST['spam'],'string')."',
avatarx = '".escape($_POST['avatarx'],'string')."',
avatary = '".escape($_POST['avatary'],'string')."',
archiv = '".escape($_POST['archiv'],'string')."',
tabellecolor = '".escape($_POST['tabellecolor'],'string')."',
tabellewidth = '".escape($_POST['tabellewidth'],'string')."',
tabelleheight = '".escape($_POST['tabelleheight'],'string')."',
textmax = '".escape($_POST['textmax'],'string')."',
textzeile = '".escape($_POST['textzeile'],'string')."',
textrows = '".escape($_POST['textrows'],'string')."',
textcols = '".escape($_POST['textcols'],'string')."',
textgroundcolor = '".escape($_POST['textgroundcolor'],'string')."',
nametext = '".escape($_POST['nametext'],'string')."',
namelänge = '".escape($_POST['namelänge'],'string')."',
namesize = '".escape($_POST['namesize'],'string')."',
namegroundcolor = '".escape($_POST['namegroundcolor'],'string')."',
hgcolor1 = '".escape($_POST['hgcolor1'],'string')."',
hgcolor2 = '".escape($_POST['hgcolor2'],'string')."',
hrcolor = '".escape($_POST['hrcolor'],'string')."',
namecolor = '".escape($_POST['namecolor'],'string')."',
textcolor = '".escape($_POST['textcolor'],'string')."',
adminnamecolor = '".escape($_POST['adminnamecolor'],'string')."',
admintextcolor = '".escape($_POST['admintextcolor'],'string')."',
gastnamecolor = '".escape($_POST['gastnamecolor'],'string')."',
gasttextcolor = '".escape($_POST['gasttextcolor'],'string')."'
WHERE id = '1'
")OR die('datenbankprob.');
}
function option_list_aa($wert)
{
if ($wert == 'AN')
{
$aa = "<option>AN</option>\n"
."<option>AUS</option>";
}
else
{
$aa = "<option>AUS</option>\n"
."<option>AN</option>";
}
return $aa;
}
function option_list_jn($wert)
{
if ($wert == 'JA')
{
$jn = "<option>JA</option>\n"
."<option>NEIN</option>";
}
else
{
$jn = "<option>NEIN</option>\n"
."<option>JA</option>";
}
return $jn;
}
$erg = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$row = db_fetch_assoc($erg);
$erginf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="2"');
$info = db_fetch_assoc($erginf);
$ar = array( 'ANZEIGE' => $row['anzeige'] ,
'RELOAD' => option_list_aa($row['reload']) ,
'SETINTERVAL' => $row['setinterval'] ,
'AUSGABE' => $row['ausgabe'] ,
'DATUMZEIT' => option_list_jn($row['datumzeit']) ,
'DATUMFORMAT' => $row['datumformat'] ,
'IP' => option_list_jn($row['ip']) ,
'SMILIES' => option_list_jn($row['smilies']) ,
'SMILIESZEILE' => $row['smilieszeile'] ,
'SMILIESSPALTE' => $row['smiliesspalte'] ,
'ADMINCOLOR' => option_list_aa($row['admincolor']),
'ADMINTEXT' => option_list_aa($row['admintext']) ,
'GASTCOLOR' => option_list_aa($row['gastcolor']) ,
'GASTTEXT' => option_list_aa($row['gasttext']) ,
'GASTRECHT' => option_list_aa($row['gastrecht']) ,
'SPAM' => option_list_aa($row['spam']) ,
'AVATARX' => $row['avatarx'] ,
'AVATARY' => $row['avatary'] ,
'ARCHIV' => $row['archiv'] ,
'TABELLECOLOR' => $row['tabellecolor'] ,
'TABELLEWIDTH' => $row['tabellewidth'] ,
'TABELLEHEIGHT' => $row['tabelleheight'] ,
'TEXTMAX' => $row['textmax'] ,
'TEXTZEILE' => $row['textzeile'] ,
'TEXTROWS' => $row['textrows'] ,
'TEXTCOLS' => $row['textcols'] ,
'TEXTGROUNDCOLOR'=> $row['textgroundcolor'] ,
'NAMETEXT' => $row['nametext'] ,
'NAMELÄNGE' => $row['namelänge'] ,
'NAMESIZE' => $row['namesize'] ,
'NAMEGROUNDCOLOR'=> $row['namegroundcolor'] ,
'HGCOLOR1' => $row['hgcolor1'] ,
'HGCOLOR2' => $row['hgcolor2'] ,
'HRCOLOR' => $row['hrcolor'] ,
'NAMECOLOR' => $row['namecolor'] ,
'TEXTCOLOR' => $row['textcolor'] ,
'ADMINNAMECOLOR' => $row['adminnamecolor'] ,
'ADMINTEXTCOLOR' => $row['admintextcolor'] ,
'GASTNAMECOLOR' => $row['gastnamecolor'] ,
'GASTTEXTCOLOR' => $row['gasttextcolor'] ,
'INFOANZEIGE' => $info['anzeige'] ,
'INFORELOAD' => $info['reload'] ,
'INFOSETINTERVAL' => $info['setinterval'] ,
'INFOAUSGABE' => $info['ausgabe'] ,
'INFODATUMZEIT' => $info['datumzeit'] ,
'INFODATUMFORMAT' => $info['datumformat'] ,
'INFOIP' => $info['ip'] ,
'INFOSMILIES' => $info['smilies'] ,
'INFOSMILIESZEILE' => $info['smilieszeile'] ,
'INFOSMILIESSPALTE' => $info['smiliesspalte'] ,
'INFOADMINCOLOR' => $info['admincolor'] ,
'INFOADMINTEXT' => $info['admintext'] ,
'INFOGASTCOLOR' => $info['gastcolor'] ,
'INFOGASTTEXT' => $info['gasttext'] ,
'INFOGASTRECHT' => $info['gastrecht'] ,
'INFOSPAM' => $info['spam'] ,
'INFOAVATARX' => $info['avatarx'] ,
'INFOARCHIV' => $info['archiv'] ,
'INFOTABELLECOLOR' => $info['tabellecolor'] ,
'INFOTABELLEWIDTH' => $info['tabellewidth'] ,
'INFOTABELLEHEIGHT' => $info['tabelleheight'] ,
'INFOTEXTMAX' => $info['textmax'] ,
'INFOTEXTZEILE' => $info['textzeile'] ,
'INFOTEXTROWS' => $info['textrows'] ,
'INFOTEXTCOLS' => $info['textcols'] ,
'INFOTEXTGROUNDCOLOR'=> $info['textgroundcolor'],
'INFONAMETEXT' => $info['nametext'] ,
'INFONAMELÄNGE' => $info['namelänge'] ,
'INFONAMESIZE' => $info['namesize'] ,
'INFONAMEGROUNDCOLOR'=> $info['namegroundcolor'],
'INFOHGCOLOR1' => $info['hgcolor1'] ,
'INFOHRCOLOR' => $info['hrcolor'] ,
'INFONAMECOLOR' => $info['namecolor'] ,
'INFOTEXTCOLOR' => $info['textcolor'] ,
'INFOADMINNAMECOLOR' => $info['adminnamecolor'] ,
'INFOADMINTEXTCOLOR' => $info['admintextcolor'] ,
'INFOGASTNAMECOLOR' => $info['gastnamecolor'] ,
'INFOGASTTEXTCOLOR' => $info['gasttextcolor']
);
$tpl->set_ar_out($ar,0);
$design->footer();
?>
contents/shbox.php
<?php
/*
Script => ShBox 3.2.2 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ('no direct access');
if(escape($_GET['shbox'],'string') == "fetch")
{
include ('include/includes/js/shbox/shboxfunc.php');
echo shbox();
}
if (escape($menu->get(1),'string') == 'archiv')
{
$title = $allgAr['title'] . ' :: ShBoxArchiv ';
$hmenu = 'ShBoxArchiv';
$design = new design ($title , $hmenu);
$design->header();
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$limit = $conf['archiv'];
$page = ( escape($menu->getA(2),'string') == 'p' ? escape($menu->getE(2),'string') : 1 );
$MPL = db_make_sites ($page , "" , $limit , '?shbox-archiv' , 'shbox' );
$anfang = ($page - 1) * $limit;
$hr = '<hr style="height:0px;border:solid '.$conf['hrcolor'].'; 0px;border-top-width: 1px;" />';
$wert = $conf['ausgabe'];
echo '<table width="100%" border="0" bgcolor="'.$conf['tabellecolor'].'" cellpadding="0" cellspacing="0">
<tr>
<td>';
$erg = db_query('SELECT * FROM `prefix_shbox` ORDER BY id DESC LIMIT '.$anfang.','.$limit.'');
while ($row = db_fetch_assoc($erg) )
{
$class = ( $class == $conf['hgcolor2'] ? $conf['hgcolor1'] : $conf['hgcolor2'] );
$text = substr($row['txt'], 0, $conf['textmax']);
$text = BBcode($text);
$text = preg_replace('/([^\s]{'.$conf['textzeile'].'})(?=[^\s])/',"$1\n", $text);
if($conf['datumzeit'] == JA)
{
$datum = $row['date'];
$name = $row['name'];
}
else
{
$datum = '';
$name = $row['name'];
}
echo '
<table width="100%" border="0" bgcolor="'.$conf['tabellecolor'].'" cellpadding="0" cellspacing="0">
<tr bgcolor="'.$class.'">
<td align="center">
<b>';
?>
<a href="index.php?user" onmouseout="hideTooltip()" onmouseover="showTooltip(event,' <?php echo $row['date']; ?> ') ;return false">
<?php
shbox_name($name,$datum);
echo ':</b></a><br />';
shbox_text($text,$name);
echo $hr;
echo '
</td>
</tr>
';
}
echo '
<tr>
<td align="center"><b>Seite:</b> '.$MPL.'<br /></td>
</tr>
</table>
</td>
</tr>
</table>
';
$design->footer();
}
?>
include/js/shbox/shboxfunc.php
<?php
/*
Script => ShBox 3.2.2 =>V1 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ( 'no direct access' );
#
##
###
#### ShBox Text ####
function shbox_text($text,$name) {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.$name.'"';
$ergU = db_query($abfU);
$rowU = db_fetch_assoc($ergU);
if ($conf['admintext'] == AUS)
{ //1
if ($conf['gasttext'] == AUS)
{ //2
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//2
else
{//3
if ($rowU['recht'] < -0)
{//4
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//4
else
{//5
echo '<span style="color:'.$conf['gasttextcolor'].';">'.$text.'</span>';
}//5
}//3
}//1
elseif ($conf['admintext'] == AN)
{//6
if ($conf['gasttext'] == AN)
{//7
if ($rowU['recht'] == -9)
{//8
echo '<span style="color:'.$conf['admintextcolor'].';">'.$text.'</span>';
}//8
elseif ($rowU['recht'] < -0)
{//9
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//9
else
{//10
echo '<span style="color:'.$conf['gasttextcolor'].';">'.$text.'</span>';
}//10
}//7
else
{//11
if ($rowU['recht'] == -9)
{//12
echo '<span style="color:'.$conf['admintextcolor'].';">'.$text.'</span>';
}//12
else
{//13
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//13
}//11
}//6
}
#
##
###
#### ShBox Name ####
function shbox_name($name,$datum) {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.$name.'"';
$ergU = db_query($abfU);
$rowU = db_fetch_assoc($ergU);
if ($conf['admincolor'] == AUS)
{ //1
if ($conf['gastcolor'] == AUS)
{ //2
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//2
else
{//3
if ($rowU['recht'] < -0)
{//4
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//4
else
{//5
echo '<span style="color:'.$conf['gastnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//5
}//3
}//1
elseif ($conf['admincolor'] == AN)
{//6
if ($conf['gastcolor'] == AN)
{//7
if ($rowU['recht'] == -9)
{//8
echo '<span style="color:'.$conf['adminnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//8
elseif ($rowU['recht'] < -0)
{//9
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//9
else
{//10
echo '<span style="color:'.$conf['gastnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//10
}//7
else
{//11
if ($rowU['recht'] == -9)
{//12
echo '<span style="color:'.$conf['adminnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//12
else
{//13
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//13
}//11
}//6
}
#
##
###
#### ShBox Ausgabe ####
function shbox() {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$hr = '<hr style="height:0px;border:solid '.$conf['hrcolor'].' 0px;border-top-width: 1px;" />';
$wert = $conf['ausgabe'];
$erg = db_query('SELECT * FROM `prefix_shbox` ORDER BY id DESC LIMIT '.$wert);
while ($row = db_fetch_assoc($erg) ) {
$class = ( $class == $conf['hgcolor2'] ? $conf['hgcolor1'] : $conf['hgcolor2'] );
$text = substr($row['txt'], 0, $conf['textmax']);
$text = BBcode($text);
$text = preg_replace('/([^\s]{'.$conf['textzeile'].'})(?=[^\s])/',"$1\n", $text);
if($conf['datumzeit'] == JA)
{
$datum = $row['date'];
$name = $row['name'];
}
else
{
$datum = '';
$name = $row['name'];
}
echo '
<table width="'.$conf['tabellewidth'].'%" height="'.$conf['tabelleheight'].'%" border="0" bgcolor="'.$conf['tabellecolor'].'" cellpadding="0" cellspacing="0">
<tr bgcolor="'.$class.'">
<td>
<b>';
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.escape($row['name'],'string').'"';
$ergU = db_query($abfU);
while ($rowU = db_fetch_assoc($ergU)){
?>
<a href="index.php?user-details-<?php echo $rowU['id']; ?>" onmouseout="hideTooltip()" onmouseover="showTooltip(event,' <?php echo $row['date'] ?> ') ;return false">
<?php
}
echo $hr;
shbox_name($name,$datum);
echo '</b><br />';
shbox_text($text,$name);
echo '
</td>
</tr>
</table>';
}
}
#
##
###
#### SMILIES angepasste Kopie vom Orginalen getsmilies() : Copyright by: Manuel Staechele ####
function shboxsmilies () {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
global $lang;
$zeilen = $conf['smilieszeile']; $i = 0;
$b = '<script language="JavaScript" type="text/javascript">function moreSmiliesshbox () { var x = window.open("about:blank", "moreSmiliesshbox", "width=250,height=200,status=no,scrollbars=yes,resizable=yes"); ';
$a = '';
$erg = db_query('SELECT emo, ent, url FROM `prefix_smilies`');
while ($row = db_fetch_object($erg) ) {
$b .= 'x.document.write ("<a href=\"javascript:opener.putt(\''.addslashes(addslashes($row->ent)).'\')\">");';
$b .= 'x.document.write ("<img style=\"border: 0px; padding: 5px;\" src=\"include/images/smiles/'.$row->url.'\" title=\"'.$row->emo.'\" ></a>");';
if ($i< $conf['smiliesspalte'])
{
if($i%$zeilen == 0 AND $i <> 0)
{
$a .= '<br /><br />';
}
$a .= '<a href="javascript:putt(\''.addslashes($row->ent).'\')" onmouseout="hideTooltip()" onmouseover="showTooltip(event,\''.$row->emo.'\');return false">';
$a .= '<img style="margin: 2px;" src="include/images/smiles/'.$row->url.'" border="0"></a>';
}
$i++;
}
$b .= ' x.document.write("<br /><br /><center><a href=\"javascript:window.close();\">'.$lang['close'].'</a></center>"); x.document.close(); }</script>';
if ($i> $conf['smiliesspalte'])
{
$a .= '<br /><br /><center><a href="javascript:moreSmiliesshbox();">'.$lang['more'].'</a></center>';
}
$a = $b.$a;
return ($a);
}
?>
templates/shbox.htm
<!--
Script => ShBox 3.2.1 => V1 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
-->
<table width="{TABELLEW}%" height="{TABELLEH}" border="0" bgcolor="{TCOLOR}" cellspacing="0" cellpadding="10">
<tr>
<td align="center">
<form action="" method="POST" name="sform">
<input type="hidden" name="xdate" value="{DATE}">
<input type="hidden" name="xip" value="{IPS}">
<input type="hidden" name="xname" value="{USER}">
<center>
<a href="?user-8" onmouseout="hideTooltip()" onmouseover="showTooltip(event,'Dein Name : {USER} {IP}');return false"><b>{AVATAR}</b></a>
{HR}
{SMILIES}
<br />
<textarea name="xtxt" rows="{TXTROWS}" cols="{TXTCOLS}" style="background-color:{TXTCOLOR};overflow:hidden" wrap="virtual"></textarea></center>
<input type="submit" name="subshbox" value="Wech" style="margin-top:5px; " />
</form>
</td>
</tr>
</table>
{EXPLODE}
<!--
Script => ShBox 3.2.1 => V1 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
-->
<table width="{TABELLEW}" height="{TABELLEH}" border="0" bgcolor="{TCOLOR}" cellspacing="0" cellpadding="10">
<tr>
<td align="center">
<form action="" method="POST" name="sform">
<input type="hidden" name="xdate" value="{DATE}">
<input type="hidden" name="xip" value="{IPS}">
<center>
{GAST}
{HR}
{SMILIES}
<br />
<textarea name="xtxt" rows="{TXTROWS}" cols="{TXTCOLS}" style="background-color:{TXTCOLOR};overflow:hidden" wrap="virtual"></textarea>
{SPAM} <br />
<input type="submit" name="subshbox" value="Wech" style="margin-top:5px; " />
</center>
</form>
</td>
</tr>
</table>