+ Moved ACP link from footer to header

+ Added PMs limits
+ Replaced ACP frames to original DSF layout
> Version 9.6.25 released.

git-svn-id: https://svn.pioder.pl/uf-svn/uF@33 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
pioder
2009-06-25 19:50:28 +00:00
parent 93e5cae6f0
commit 92e90cd55f
33 changed files with 242 additions and 255 deletions

View File

@@ -11,10 +11,31 @@ if ((isset($_POST['textedit'])) and (isset($_POST['nmsg'])) and (isset($_POST['u
$result = DataBase::fetch(DataBase::sql_query($sql, CRITICAL,'Could not obtain user information.'));
if ($result['u_id']!='')
{
$_POST['textedit'] = Secure::TagsReplace($_POST['textedit']);
$_POST['nmsg'] = strip_tags($_POST['nmsg']);
Pms::SendMessage($_POST['textedit'],$_POST['nmsg'], $_POST['username']);
message_forum($lng['post_is_saved'],'pms.php');
$cntu = Pms::PMCnt($result['u_id']);
if ($cntu[0] < $forum_config['pm_inbox_max'])
{
//antiflood lock
if (isset($_COOKIE['antiflood_time']))
{
if ($_COOKIE['antiflood_time']>time())
{
message_forum($lng['antiflood_enabled'],$_SERVER['REQUEST_URI']);
}
}
else
{
setcookie('antiflood_time',(time() + $forum_config['time_antiflood']));
$_POST['textedit'] = Secure::TagsReplace($_POST['textedit']);
$_POST['nmsg'] = strip_tags($_POST['nmsg']);
Pms::SendMessage($_POST['textedit'],$_POST['nmsg'], $_POST['username']);
message_forum($lng['post_is_saved'],'pms.php');
}
}
else
{
$message = $lng['pm_inbox_full'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
}
}
else
{
@@ -42,6 +63,7 @@ else
$_POST['nmsg']='';
$_POST['textedit']='';
}
$cnt = Pms::PMCnt();
//add skin variables
$skin = array(
'smiles'=>Post::SmilesShow(),
@@ -53,7 +75,8 @@ $skin = array(
'lsave'=>$lng['save'],
'lreset'=>$lng['reset'],
'lwritemsg'=>$lng['write_pm'],
'action'=>$_SERVER['REQUEST_URI']
'action'=>$_SERVER['REQUEST_URI'],
'lsentbox_full'=>($cnt[1]==$forum_config['pm_sentbox_max']) ? $lng['pm_sentbox_full'] : ''
);
$skin = array_push_assoc($skin, GenerateHeader($lng['lpm'].': '.$lng['write_pm'], '</a>&gt;<a href="pms.php" class="navigator">'.$lng['lpm'].'</a> &gt; <a href="'.$_SERVER['REQUEST_URI'].'" class="navigator">'.$lng['write_pm']));
@@ -65,7 +88,7 @@ if ($msg=='')
//do it!
include('./skins/'.$default_skin.'/overall_header.tpl');
include('./skins/'.$default_skin.'/msgs_new_body.tpl');
include('./skins/'.$default_skin.'/pms_new_body.tpl');
if(RANK=='2')
{