Browse Source

+ 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
master
pioder 15 years ago
parent
commit
92e90cd55f
33 changed files with 242 additions and 255 deletions
  1. +17
    -0
      admin/admin_script.php
  2. +1
    -1
      admin/header.php
  3. +5
    -5
      admin/index.php
  4. +19
    -1
      admin/template/admin_script.tpl
  5. BIN
      admin/template/images/Thumbs.db
  6. BIN
      admin/template/images/lng_Polish/Thumbs.db
  7. BIN
      admin/template/images/wyzz/Thumbs.db
  8. +18
    -46
      admin/template/overall_header.tpl
  9. +1
    -0
      admin/template/skin.css
  10. +1
    -1
      config.php
  11. +0
    -8
      eprofile.php
  12. +0
    -15
      forum.php
  13. +0
    -30
      groups.php
  14. +1
    -2
      includes/admin/class_main.php
  15. +16
    -0
      includes/classes/class_pms.php
  16. +12
    -11
      includes/misc_functions.php
  17. +9
    -4
      includes/pms/pms_folder.php
  18. +29
    -6
      includes/pms/pms_write.php
  19. +0
    -15
      index.php
  20. +9
    -3
      install1/uf_tables.sql
  21. +2
    -0
      lngs/Polish/admin.php
  22. +17
    -6
      lngs/Polish/main.php
  23. +0
    -2
      login.php
  24. +0
    -15
      moderate.php
  25. +0
    -8
      posting.php
  26. +65
    -52
      register.php
  27. +0
    -1
      skins/subPurple/overall_footer.tpl
  28. +11
    -10
      skins/subPurple/overall_header.tpl
  29. +8
    -5
      skins/subPurple/pms_folder_body.tpl
  30. +0
    -0
      skins/subPurple/pms_folder_end_body.tpl
  31. +0
    -0
      skins/subPurple/pms_folder_item_body.tpl
  32. +1
    -0
      skins/subPurple/pms_new_body.tpl
  33. +0
    -8
      warns.php

+ 17
- 0
admin/admin_script.php View File

@ -289,6 +289,14 @@ if (isset($_POST['forum_path']))
/* shoutbox_max_msgs */
$name[] = 'shoutbox_max';
$value[] = (!is_numeric($_POST['shoutbox_limit'])) ? '50' : $_POST['shoutbox_limit'];
/* pm inbox max */
$name[] = 'pm_inbox_max';
$value[] = (!is_numeric($_POST['pm_inbox_max'])) ? '10' : $_POST['pm_inbox_max'];
/* pm sentbox max */
$name[] = 'pm_sentbox_max';
$value[] = (!is_numeric($_POST['pm_sentbox_max'])) ? '10' : $_POST['pm_sentbox_max'];
$count_o = count($name);
for($i=0;$i<$count_o;$i++)
@ -368,6 +376,15 @@ $skin = array(
'L.shoutbox_limit'=>$lng['shoutbox_max_view'],
'OPTION.shoutbox_limit'=>$forum_config['shoutbox_max'],
/* pm sentbox max */
'L.pm_sentbox_max'=>$lng['pm_sentbox_max'],
'OPTION.pm_sentbox_max'=>$forum_config['pm_sentbox_max'],
/* pm inbox max */
'L.pm_inbox_max'=>$lng['pm_inbox_max'],
'OPTION.pm_inbox_max'=>$forum_config['pm_inbox_max'],
/* color mod */
'L.color_mod'=>$lng['color_mod'],
'OPTION.color_mod' => $forum_config['color_mod'],

+ 1
- 1
admin/header.php View File

@ -27,7 +27,7 @@ if (User::UserInformation($_SESSION['uid'],'rank')!=2)
admin_message_forum($lng['yournotadmin'],'../index.php');
}
$skin = array(
'uf_pa'=>$lng['uf_pa_nav'],
'uf_pa'=>$lng['uf_pa'],
'index'=>$lng['index'],
'gotoforum'=>$lng['go_to_forum'],
'scriptstat'=>$lng['scriptstat'],

+ 5
- 5
admin/index.php View File

@ -29,13 +29,13 @@ if (User::UserInformation($_SESSION['uid'],'rank')!=2)
{
admin_message_forum($lng['yournotadmin'],'../index.php');
}
/*echo '
echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="../skins/'.$default_skin.'/images/favicon.ico">
<link rel="favicon" href="../skins/'.$default_skin.'/images/favicon.ico">
<title>DSF Administration</title>
<title>&micro;Forum ACP</title>
<frameset rows="90,*" border="2" framespacing="0" frameborder="yes">
<frame src="header.php" name="nav" marginheight="3" scrolling="no">
<frame src="forum_info.php" name="main" marginwidth="10" marginheight="10">
@ -45,8 +45,8 @@ if (User::UserInformation($_SESSION['uid'],'rank')!=2)
Sorry, you browser doesn\'t support frames.
</body>
</html>
';*/
echo '
';
/*echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
@ -62,5 +62,5 @@ echo '
Sorry, you browser doesn\'t support frames.
</body>
</html>
';
';*/
?>

+ 19
- 1
admin/template/admin_script.tpl View File

@ -153,7 +153,7 @@
<input type="text" maxlength="4" name="time_antiflood" value="<?= $skin['OPTION.time_antiflood']; ?>">
</td>
</tr>
<!-- time antiflood -->
<!-- new password length -->
<tr>
<td class="fitem" align="right" width="50%" height="19">
<span class="fstandard"><?= $skin['L.newpasswd_len']; ?>:&nbsp;&nbsp;</span>
@ -162,6 +162,24 @@
<input type="text" maxlength="1" name="newpasswd_len" value="<?= $skin['OPTION.newpasswd_len']; ?>">
</td>
</tr>
<!-- pm inbox max messages -->
<tr>
<td class="fitem" align="right" width="50%" height="19">
<span class="fstandard"><?= $skin['L.pm_inbox_max']; ?>:&nbsp;&nbsp;</span>
</td>
<td class="fitem" width="50%" height="19">
<input type="text" maxlength="2" name="pm_inbox_max" value="<?= $skin['OPTION.pm_inbox_max']; ?>">
</td>
</tr>
<!-- pm sentbox max messages -->
<tr>
<td class="fitem" align="right" width="50%" height="19">
<span class="fstandard"><?= $skin['L.pm_sentbox_max']; ?>:&nbsp;&nbsp;</span>
</td>
<td class="fitem" width="50%" height="19">
<input type="text" maxlength="2" name="pm_sentbox_max" value="<?= $skin['OPTION.pm_sentbox_max']; ?>">
</td>
</tr>
</table>
<span class="fverysmall">&nbsp;</span>
<table class="maintable" width="<?= TABLES_WIDTH; ?>" style="border-width: 0px">

BIN
admin/template/images/Thumbs.db View File


BIN
admin/template/images/lng_Polish/Thumbs.db View File


BIN
admin/template/images/wyzz/Thumbs.db View File


+ 18
- 46
admin/template/overall_header.tpl View File

@ -3,61 +3,33 @@
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../admin/template/skin.css" type="text/css">
<title>DSF Administration</title>
<title>&micro;F Administration</title>
</head>
<body class="body">
<center>
<div align="center" style=" background-color: #F1F3FE">
<div align="center" style="">
<div align="center" style="width: <?= (TABLES_WIDTH+40); ?>px; background-color: #F1F3FE">
<div align="center" style="width: <?= TABLES_WIDTH; ?>px;">
<span class="pa_h1"><?= $skin['uf_pa']; ?></span>
<table class="maintable" width="180">
<table class="maintable" width="<?= TABLES_WIDTH; ?>">
<tr>
<td class="beam" align="center">
<a href="../index.php" target="_parent" class="beam">=&gt;<?= $skin['gotoforum']; ?>&lt;=</a>
</td>
<tr>
<td class="beam" align="center">
<a href="forum_info.php" target="main" class="beam"><?= $skin['index']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="check_script.php" target="main" class="beam"><?= $skin['scriptstat']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="admin_script.php" target="main" class="beam"><?= $skin['scriptoptions']; ?></a>
<a href="../index.php" target="_parent" class="beam">&raquo;<?= $skin['gotoforum']; ?>&laquo;</a> &#8226;
<a href="forum_info.php" target="main" class="beam"><?= $skin['index']; ?></a> &#8226;
<a href="check_script.php" target="main" class="beam"><?= $skin['scriptstat']; ?></a> &#8226;
<a href="admin_script.php" target="main" class="beam"><?= $skin['scriptoptions']; ?></a> &#8226;
<a href="mass_email.php" target="main" class="beam"><?= $skin['mass_email']; ?></a> &#8226;
<a href="styles.php" target="main" class="beam"><?= $skin['admin_styles']; ?></a> &#8226;
<a href="admin_forums.php" target="main" class="beam"><?= $skin['admin_forums']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="mass_email.php" target="main" class="beam"><?= $skin['mass_email']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="styles.php" target="main" class="beam"><?= $skin['admin_styles']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="admin_forums.php" target="main" class="beam"><?= $skin['admin_forums']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="admin_groups.php" target="main" class="beam"><?= $skin['admin_groups']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="admin_users.php" target="main" class="beam"><?= $skin['admin_users']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="smilelist.php" target="main" class="beam"><?= $skin['admin_smilelist']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="censorlist.php" target="main" class="beam"><?= $skin['admin_censorlist']; ?></a>
</td>
<tr>
<td class="beam" align="center">
<a href="banlist.php" target="main" class="beam"><?= $skin['admin_banlist']; ?></a>
<a href="admin_groups.php" target="main" class="beam"><?= $skin['admin_groups']; ?></a> &#8226;
<a href="admin_users.php" target="main" class="beam"><?= $skin['admin_users']; ?></a> &#8226;
<a href="smilelist.php" target="main" class="beam"><?= $skin['admin_smilelist']; ?></a> &#8226;
<a href="censorlist.php" target="main" class="beam"><?= $skin['admin_censorlist']; ?></a> &#8226;
<a href="banlist.php" target="main" class="beam"><?= $skin['admin_banlist']; ?></a>
</td>
</tr>
</table>

+ 1
- 0
admin/template/skin.css View File

@ -17,6 +17,7 @@ a:hover
background-color: #C6D1FB;
text-align: center;
background-image: url('images/td_beam.jpg');
text-decoration: none;
}
/* body class */

+ 1
- 1
config.php View File

@ -13,6 +13,6 @@ define('DB_USER','root');
define('DB_PASS','');
define('DB_NAME','uf');
define('DB_PREFIX','uf_');
define('VERSION','9.5.31');
define('VERSION','9.6.25');
define('UF_INSTALLED',true);
?>

+ 0
- 8
eprofile.php View File

@ -278,14 +278,6 @@ if ($msg=='')
//do it!
include('./skins/'.$default_skin.'/overall_header.tpl');
include('./skins/'.$default_skin.'/eprofile_body.tpl');
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
include('./skins/'.$default_skin.'/overall_footer.tpl');

+ 0
- 15
forum.php View File

@ -90,21 +90,6 @@ $skin = array_push_assoc($skin, array(
onMouseOut="this.src=\'skins/'.$default_skin.'/images/lng_'.$default_lang.'/topic.gif\'" border="0" alt="reply"></a>'
));
include('./skins/'.$default_skin.'/forum_end_body.tpl');
if ($_SESSION['uid']>0)
{
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
}
else
{
$skin['pa_link']='';
}
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
include('./skins/'.$default_skin.'/overall_footer.tpl');

+ 0
- 30
groups.php View File

@ -131,21 +131,6 @@ if(isset($_GET['mode']))
{
echo '<tr><td width="100%" colspan="8" height="19" class="fitem"><p class="fstandard" align="center">'.$lng['no_elements'].'!</p></td></tr>';
}
if ($_SESSION['uid']>0)
{
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
}
else
{
$skin['pa_link']='';
}
echo '</table>';
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
@ -198,21 +183,6 @@ else
echo '<table class="maintable"><tr><td width="'.TABLES_WIDTH.'" colspan="8"
height="19" class="fitem"><p class="fstandard" align="center">'.$lng['no_groups'].'!</p></td></tr></table>';
}
if ($_SESSION['uid']>0)
{
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
}
else
{
$skin['pa_link']='';
}
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
include('./skins/'.$default_skin.'/overall_footer.tpl');

+ 1
- 2
includes/admin/class_main.php View File

@ -153,8 +153,7 @@ class Admin_Over
<link rel="stylesheet" href="template/skin.css" type="text/css">
<title>DSF Administration</title>
</head>
<body class="body">
<div align="center"><span class="pa_h1">'.$lng['uf_pa'].'</span></div>';
<body class="body">';
}
}
?>

+ 16
- 0
includes/classes/class_pms.php View File

@ -13,6 +13,22 @@ if ( !defined('IN_uF') )
}
class Pms
{
function PMCnt($uid = -1)
{
$uid = ($uid==-1) ? $_SESSION['uid'] : $uid;
//private messages in inbox
$sql = "SELECT COUNT(*) AS `cnt` FROM `".PM_INBOX_TABLE."` WHERE `u_id`='".$uid."'";
$result = DataBase::sql_query($sql, GENERAL, 'Could not obtain count of pms in inbox');
$row = DataBase::fetch($result);
//private messages in sentbox
$sql = "SELECT COUNT(*) AS `cnt` FROM `".PM_SENTBOX_TABLE."` WHERE `u_id`='".$uid."'";
$result = DataBase::sql_query($sql, GENERAL, 'Could not obtain count of pms in sentbox');
$row2 = DataBase::fetch($result);
return array($row['cnt'], $row2['cnt']);
}
function UserName($uid)
{
global $user;

+ 12
- 11
includes/misc_functions.php View File

@ -33,21 +33,22 @@ function GenerateHeader($title, $navigator)
global $lng;
global $forum_config;
$skin = array(
'forumname' => $forum_config['forumname'],
'forumdesc' => $forum_config['forumdesc'],
'users' => $lng['lusers'],
'pm' => $lng['lpm'],
'register' => $lng['lregister'],
'search' => $lng['lsearch'],
'eprofile' => $lng['leprofile'],
'groups' => $lng['lgroups'],
'L.forumname' => $forum_config['forumname'],
'L.forumdesc' => $forum_config['forumdesc'],
'L.users' => $lng['lusers'],
'L.pm' => $lng['lpm'],
'L.register' => $lng['lregister'],
'L.search' => $lng['lsearch'],
'L.eprofile' => $lng['leprofile'],
'L.groups' => $lng['lgroups'],
'keywords' => $forum_config['meta_keywords'],
'description' => $forum_config['meta_description'],
'mainpage' => $title,
'lmainpage' => $navigator,
'lactual_time'=>$lng['lactualtime'],
'L.mainpage' => $navigator,
'L.actual_time'=>$lng['lactualtime'],
'modelogin' => ($_SESSION['uid']>0) ? 'logout' : 'login',
'llogin' => ($_SESSION['uid']>0) ? $lng['lunlogin'] : $lng['llogin']
'L.login' => ($_SESSION['uid']>0) ? $lng['lunlogin'] : $lng['llogin'],
'L.pa_link' => $lng['pa_link']
);
return $skin;

+ 9
- 4
includes/pms/pms_folder.php View File

@ -3,6 +3,7 @@
//
//private messsages cache - v1.0 Alpha 2
//
$cnt = Pms::PMCnt(); // 0 - inbox; 1 - sentbox
$sql = "SELECT `u_id`,`nick`,`rank` FROM `".USERS_TABLE."`";
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain forums information');
$user['count']= DataBase::num_rows($query);
@ -20,13 +21,17 @@ $skin = array(
'lang'=>DefaultLang(),
'lname'=>$lng['message_name'],
'lauthor'=>$lng['user'],
'lmdate'=>$lng['date']
'lmdate'=>$lng['date'],
'lmessages_in_box'=>$lng['messages_in_box'],
'msg_count'=>($_GET['submode']=='inbox') ? $cnt[0] : $cnt[1],
'msg_max'=>($_GET['submode']=='inbox') ? $forum_config['pm_inbox_max'] : $forum_config['pm_sentbox_max'],
'msg_per'=>($_GET['submode']=='inbox') ? round(($cnt[0]/$forum_config['pm_inbox_max'])*100,1) : round(($cnt[1]/$forum_config['pm_sentbox_max'])*100,1)
);
$skin = array_push_assoc($skin,GenerateHeader($lng['lpm'].': '.(($_GET['submode']=='sentbox') ? $lng['sentbox'] : $lng['inbox']), '</a> &gt; <a href="pms.php" class="navigator">'.$lng['lpm'].'</a> &gt; '.$folder));
//do it!
include('./skins/'.$default_skin.'/overall_header.tpl');
include('./skins/'.$default_skin.'/msgs_is_body.tpl');
include('./skins/'.$default_skin.'/pms_folder_body.tpl');
$uid = $_SESSION['uid'];
if (!isset($_GET['submode']))
@ -72,12 +77,12 @@ else
'mode'=> ($_GET['submode']=='inbox') ? 'user' : 'author'
);
include('./skins/'.$default_skin.'/msgs_is_item_body.tpl');
include('./skins/'.$default_skin.'/pms_folder_item_body.tpl');
}
$skin['nomsgs'] = '';
}
//do it!
include('./skins/'.$default_skin.'/msgs_is_end_body.tpl');
include('./skins/'.$default_skin.'/pms_folder_end_body.tpl');
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';

+ 29
- 6
includes/pms/pms_write.php 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')
{

+ 0
- 15
index.php View File

@ -122,21 +122,6 @@ else
}
}
if ($_SESSION['uid']>0)
{
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
}
else
{
$skin['pa_link']='';
}
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
include('./skins/'.$default_skin.'/overall_footer.tpl');

+ 9
- 3
install1/uf_tables.sql View File

@ -104,7 +104,9 @@ INSERT INTO `uf_config` VALUES ('sig_len', '300');
INSERT INTO `uf_config` VALUES ('time_antiflood', '30');
INSERT INTO `uf_config` VALUES ('tables_width', '900');
INSERT INTO `uf_config` VALUES ('newpasswd_len', '6');
INSERT INTO `uf_config` VALUES ('posts', '1');
INSERT INTO `uf_config` VALUES ('pm_inbox_max', '10');
INSERT INTO `uf_config` VALUES ('pm_sentbox_max', '10');
#----------------------------------------------------
@ -118,6 +120,8 @@ CREATE TABLE `uf_forums` (
`moderate` int(11) NOT NULL default '0',
`name` varchar(30) NOT NULL default '',
`desc` text NOT NULL,
`posts` mediumint(8) NOT NULL,
`lastpost` varchar(255) NOT NULL,
`c_id` int(8) NOT NULL default '0',
`sort` mediumint(8) NOT NULL default '0',
PRIMARY KEY (`f_id`)
@ -126,7 +130,7 @@ CREATE TABLE `uf_forums` (
#-
#- Table structure for `uf_forums`
#-
INSERT INTO `uf_forums` VALUES (1, 0, 0, 'Testowe Forum', 'Pierwsze testowe forum skryptu Dynamic Script Forum.', 1, 1);
INSERT INTO `uf_forums` VALUES (1, 0, 0, 'Testowe Forum', 'Pierwsze testowe forum skryptu Dynamic Script Forum.', 1, '1:1:1:1181666444:2:Admin', 1, 1);
#----------------------------------------------------
@ -311,6 +315,8 @@ CREATE TABLE `uf_topics` (
`name` varchar(100) NOT NULL default '',
`author` mediumint(8) NOT NULL default '0',
`lastpost_time` int(1) NOT NULL,
`posts` mediumint(8) NOT NULL,
`lastpost` varchar(255) NOT NULL,
PRIMARY KEY (`t_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
@ -318,7 +324,7 @@ CREATE TABLE `uf_topics` (
#- Table structure for `uf_topics`
#-
INSERT INTO `uf_topics` VALUES (1, 1, 0, 0, 'Witamy na forum uf', 1,0);
INSERT INTO `uf_topics` VALUES (1, 1, 0, 0, 'Witamy na forum uf', 1, 0, 2, '1:1:0:2:Admin');
#----------------------------------------------------

+ 2
- 0
lngs/Polish/admin.php View File

@ -145,6 +145,8 @@ $lng['shoutbox_time_clear']='Maksymalny czas (w sek.) wiadomości';
$lng['shoutbox_max_view']='Maksymalna ilość pokazywanych wiadomości';
$lng['allow_shoutbox']='Włącz ShoutBox';
//|| other----------------------
$lng['pm_inbox_max']='Makasymalna ilość odebranych PW przechowywanych w skrzynce';
$lng['pm_sentbox_max']='Maksymalna ilość wysłanych PW przechowywanych w skrzynce';
$lng['sig_len']='Długość podpisu';
$lng['color_mod']='Kolor Moderatora';
$lng['color_admin']='Kolor Administratora';

+ 17
- 6
lngs/Polish/main.php View File

@ -77,9 +77,6 @@ $lng['default_skin']='Domyślny styl';
$lng['lurank']='Poziom';
$lng['showprofile']='Pokaż Profil';
$lng['avatar']='Avatar';
$lng['luregister']='Zarejestrowany';
$lng['lulastvisit']='Ostatnia wizyta';
$lng['luinterests']='Zainteresowania';
$lng['user_name']='Nazwa użytkownika';
$lng['profile_settings']='Ustawienia profilu';
$lng['general_settings']='Ustawienia ogólne';
@ -100,10 +97,20 @@ $lng['lastpost']='Ostatni post';
$lng['contact']='Kontakt';
$lng['lurank2']='Ranga';
$lng['lmod']='Moderacja';
$lng['addusrtogrp']='Dodaj użytkownika(nick)';
$lng['delusrforgrp']='Usuń z grupy(nick)';
$lng['empty_password']='Hasło jest puste!';
$lng['empty_nick']='Nie podano nicku!';
$lng['key_not_valid']='Nieprawidłowy wynik dodawania!';
//
//on groups... --------------------------------------------------------
//
$lng['addusrtogrp']='Dodaj użytkownika(nick)';
$lng['delusrforgrp']='Usuń z grupy(nick)';
$lng['luregister']='Zarejestrowany';
$lng['lulastvisit']='Ostatnia wizyta';
$lng['luinterests']='Zainteresowania';
//
//moderate... -------------------------------------------------------
//
@ -113,6 +120,8 @@ $lng['admin_mod_administration']='Pole Admina/Mod\'a';
//
//other...------------------------------------------------------------
//
$lng['messages_in_box']='Wiadomości w folderze';
$lng['admins']='Administratorzy';
$lng['admins_desc']='Globalni administratorzy tego forum';
$lng['mods']='Moderatorzy';
@ -139,7 +148,7 @@ $lng['no.']='nr';
$lng['desc']='Rosnąco';
$lng['script_generated']='Skrypt został wykonany w ';
$lng['no']='Nie';
$lng['pa_link']='Administruj forum';
$lng['pa_link']='Administracja';
$lng['select_forum']='Wybierz forum';
$lng['empty']='Brak';
$lng['sticky']='Przyklejony: ';
@ -147,6 +156,8 @@ $lng['visible_of_post']='Kliknij tutaj, aby zatwierdzić post';
$lng['post_moderated']='Ten post nie został jeszcze zatwierdzony u moderatora';
$lng['moderated_post_text']='Treść nie zatwierdzonego postu';
$lng['post'] = 'Post';
$lng['pm_sentbox_full']='Twoja skrzynka elementów wysłanych jest pełna - wiadomość nie zostanie zapisana.';
$lng['pm_inbox_full']='Wiadomość nie zostanie dostarczona do adresata, gdyż jego skrzynka jest pełna. Przepraszamy.';
//
//on private messages.....--------------------------------------------
//

+ 0
- 2
login.php View File

@ -93,7 +93,6 @@ if (isset($_GET['mode']))
$sql = "UPDATE `".USERS_TABLE."` SET lastvisit='".time()."' WHERE u_id='$user_id'";//update lastvisit for user
DataBase::sql_query($sql,GENERAL,'Could not update user lastvisit');//run query
$msg = $lng['youareloggedas'].': <b>'.$nick.'</b>';// messaage "login as.."
$skin['pa_link']='';
$stop = TimeGeneration();//generate generation's time
message_forum($msg, 'index.php');//message and require to index.php
}
@ -128,7 +127,6 @@ if (isset($_GET['mode']))
$skin = array_push_assoc($skin, GenerateHeader($lng['llogin'],'</a>&gt; <a href="login.php?mode=login" class="navigator">'.$lng['llogin']));
include('./skins/'.$default_skin.'/overall_header.tpl');
include('./skins/'.$default_skin.'/login_body.tpl');
$skin['pa_link']='';
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
include('./skins/'.$default_skin.'/overall_footer.tpl');

+ 0
- 15
moderate.php View File

@ -132,21 +132,6 @@ switch(trim($_GET['action']))
$skin = array_push_assoc($skin, GenerateHeader($lng['move_topic'].': '.Topic::TopicInformation($tid,'name'),'</a><a href="moderate.php?action=move&id='.$tid.'" class="navigator">'
.$lng['move_topic'].': </a><a href="topic.php?t='.$tid.'" class="navigator">'
.Topic::TopicInformation($tid,'name')));
if ($_SESSION['uid']>0)
{
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
}
else
{
$skin['pa_link']='';
}
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
//do it!

+ 0
- 8
posting.php View File

@ -42,14 +42,6 @@ $skin = array();
$skin = array_push_assoc($skin, GenerateHeader('',''));
$stop = TimeGeneration();
$skin['queries'] = ShowQueries($start, $stop);
if(RANK=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
if (isset($_POST['textedit']))
{

+ 65
- 52
register.php View File

@ -45,70 +45,83 @@ foreach ($_POST as $name => $value)
$_POST[$name] = Secure::UseCensorlist($value);
}
}
$errors = false;
if (isset($_POST['email']))
{
if ( ereg ("^.+@.+\..+$", $_POST['email']))
{ $nick = $_POST['nick'];
if ($nick!='')
if (!ereg ("^.+@.+\..+$", $_POST['email']))
{
$sql = "SELECT * FROM `".USERS_TABLE."` WHERE `nick`='$nick'";
$errors = true;
$message = $lng['invalid_email'];
}
if (trim($_POST['nick'])=='')
{
$errors = true;
$message = $lng['empty_nick'];
}
if ($_POST['password']=='')
{
$errors = true;
$message = $lng['empty_password'];
}
if ($_POST['confirmpassword']=='')
{
$errors = true;
$message = $lng['empty_password'];
}
if ($_POST['valid_match']!=$_POST['valid_key'])
{
$errors = true;
$message = $lng['key_not_valid'];
}
if ($_POST['password']!=$_POST['confirmpassword'])
{
$errors = true;
$message=$lng['incorrect_password2'];
}
if (!$errors)
{
$nick = addslashes(strip_tags($_POST['nick']));
$sql = "SELECT `nick` FROM `".USERS_TABLE."` WHERE `nick`='$nick'";
$query = DataBase::sql_query($sql,GENERAL,'Could not obtain user information.');
$result = DataBase::fetch($query);
$result = $result['nick'];
if ($result!=$nick)
if ($nick == $result['nick'])
{
if ($_POST['password']!='')
{
if ($_POST['password']==$_POST['confirmpassword'])
{
if ($_POST['valid_match']==$_POST['valid_key'])
{
$_POST['nick']= addslashes(strip_tags($_POST['nick']));
$original_pass = $_POST['password'];
$_POST['password']=md5($_POST['password']);
User::CreateProfile($_POST['nick'],$_POST['password'], $_POST['email'],0,1,0,1,'','','');
$stop = TimeGeneration();
if ($forum_config['allow_send_email'])
{
SendRegisterEmail();
}
message_forum($lng['account_created'],'index.php');
}
else
{
$message = $lng['key_not_valid'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
}
}
else
{
$message=$lng['incorrect_password2'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
}
}
else
{
$message=$lng['empty_password'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
}
}
else
$errors = true;
$message = $lng['user_is_exist'];
}
}
if (!$errors)
{
$_POST['nick']= addslashes(strip_tags($_POST['nick']));
$original_pass = addslashes($_POST['password']);
$_POST['password']=md5($_POST['password']);
User::CreateProfile($_POST['nick'],$_POST['password'], $_POST['email'],0,1,0,1,'','','');
$stop = TimeGeneration();
if ($forum_config['allow_send_email'])
{
$message=$lng['user_is_exist'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
SendRegisterEmail();
}
message_forum($lng['account_created'],'index.php');
}
else
{
$message=$lng['empty_email'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
}
}
else
{
$message=$lng['invalid_email'];
$msg = './skins/'.$default_skin.'/post_error_body.tpl';
}
}
else
{

+ 0
- 1
skins/subPurple/overall_footer.tpl View File

@ -8,7 +8,6 @@
&nbsp;
</div>
</div>
<?= $skin['pa_link']; ?>
<p align="right" class="fsmall"><? echo $skin['queries']; ?></p>
</div>

+ 11
- 10
skins/subPurple/overall_header.tpl View File

@ -6,7 +6,7 @@
<meta name="keywords" content="<? echo $skin['keywords']; ?>">
<meta name="description" content="<? echo $skin['description']; ?>">
<link rel="stylesheet" href="skins/subPurple/skin.css" type="text/css">
<title><? echo $skin['forumname']; ?> &bull; <? echo $skin['mainpage']; ?></title>
<title><? echo $skin['L.forumname']; ?> &bull; <? echo $skin['mainpage']; ?></title>
</head>
<body class="body">
<script type="text/javascript" language="JavaScript">
@ -46,20 +46,21 @@ function unset_color(element)
<td>
<a href="index.php"><img border="0" src="skins/subPurple/images/uf_logo.gif" alt="&micro;F logo"></a></td>
<td width="502" height="75" valign="top">
<p align="center"><span class="hforum"><? echo $skin['forumname']; ?></span><br><span class="fstandard"><i><?= $skin['forumdesc']; ?></i></span></p>
<p align="center"><span class="hforum"><? echo $skin['L.forumname']; ?></span><br><span class="fstandard"><i><?= $skin['L.forumdesc']; ?></i></span></p>
<p align="center">
<a href="users.php" class="flink"><? echo $skin['users']; ?></a>&nbsp;&nbsp;
<a href="groups.php" class="flink"><? echo $skin['groups']; ?></a>&nbsp;&nbsp;
<a href="search.php?content=posts" class="flink"><? echo $skin['search']; ?></a>&nbsp;&nbsp;
<a href="pms.php" class="flink"><? echo $skin['pm']; ?></a>&nbsp;&nbsp;<br>
<a href="eprofile.php" class="flink"><? echo $skin['eprofile']; ?></a>&nbsp;&nbsp;
<a href="register.php" class="flink"><? echo $skin['register']; ?></a>&nbsp;&nbsp;
<a href="login.php?mode=<? echo $skin['modelogin']; ?>" class="flink"><? echo $skin['llogin']; ?></a>&nbsp;&nbsp;
<a href="users.php" class="flink"><?= $skin['L.users']; ?></a>&nbsp;&nbsp;
<a href="groups.php" class="flink"><?= $skin['L.groups']; ?></a>&nbsp;&nbsp;
<a href="search.php?content=posts" class="flink"><?= $skin['L.search']; ?></a>&nbsp;&nbsp;
<a href="pms.php" class="flink"><?= $skin['L.pm']; ?></a>&nbsp;&nbsp;<br>
<? if ($userdata['rank'] == 2) { ?> <a href="admin/" class="flink"><?= $skin['L.pa_link']; ?></a>&nbsp;&nbsp;<? } ?>
<a href="eprofile.php" class="flink"><?= $skin['L.eprofile']; ?></a>&nbsp;&nbsp;
<a href="register.php" class="flink"><? echo $skin['L.register']; ?></a>&nbsp;&nbsp;
<a href="login.php?mode=<? echo $skin['modelogin']; ?>" class="flink"><? echo $skin['L.login']; ?></a>&nbsp;&nbsp;
</p>
</td>
</tr>
<tr>
<td class="main" colspan="2">
<a href="index.php" class="navigator">Forum <? echo $skin['forumname']; ?> <? echo $skin['lmainpage']; ?></a></td>
<a href="index.php" class="navigator">Forum <? echo $skin['L.forumname']; ?> <? echo $skin['L.mainpage']; ?></a></td>
</tr>
</table>

skins/subPurple/msgs_is_body.tpl → skins/subPurple/pms_folder_body.tpl View File

@ -1,21 +1,24 @@
<div align="center" style="width: 100%">
<a href="pms.php?mode=write"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/newmsg.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/newmsg_active.gif'" 
<a href="pms.php?mode=write"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/newmsg.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/newmsg_active.gif'" 
onMouseOut="this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/newmsg.gif'" border="0" alt="NEW Message" /></a>
&nbsp;&nbsp;
<a href="pms.php?mode=folder&amp;submode=sentbox"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/sentbox.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/sentbox_active.gif'" 
<a href="pms.php?mode=folder&amp;submode=sentbox"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/sentbox.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/sentbox_active.gif'" 
onMouseOut="this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/sentbox.gif'" border="0" alt="SENTBOX" /></a>
&nbsp;&nbsp;
<a href="pms.php?mode=folder&amp;submode=inbox"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/inbox.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/inbox_active.gif'" 
<a href="pms.php?mode=folder&amp;submode=inbox"><img src="skins/subPurple/images/lng_<? echo $skin['lang']; ?>/inbox.gif" onMouseOver="this.style.cursor='hand'; this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/inbox_active.gif'" 
onMouseOut="this.src='skins/<?= $default_skin; ?>/images/lng_<?= $skin['lang']; ?>/inbox.gif'" border="0" alt="INBOX" /></a>
</div>
<div align="center" style="text-align: right">
<span class="fsmall"><?= $skin['lmessages_in_box']; ?>: <b><?= $skin['msg_count']; ?></b>/<b><?= $skin['msg_max']; ?></b> (<b><?= $skin['msg_per']; ?>%</b>)</span>
</div>
<table class="maintable" width="<?= TABLES_WIDTH; ?>">
<table class="maintable" width="<?= TABLES_WIDTH; ?>" style="border-width: 0px">
<tr>
<td width="14" style="background-image: url('skins/subPurple/images/td_beam_left.gif')"></td>
<td width="10" style="background-image: url('skins/subPurple/images/td_beam_left.gif')"></td>
<td width="370" style="background-image: url('skins/subPurple/images/td_beam_top.gif')" class="beam" align="center"><? echo $skin['lname']; ?></td>
<td width="110" style="background-image: url('skins/subPurple/images/td_beam_top.gif')" class="beam" align="center"><? echo $skin['lauthor']; ?></td>
<td width="110" style="background-image: url('skins/subPurple/images/td_beam_top.gif')" class="beam" align="center"><? echo $skin['lmdate']; ?></td>
<td width="14" style="background-image: url('skins/subPurple/images/td_beam_right.gif')"></td>
<td width="11" style="background-image: url('skins/subPurple/images/td_beam_right.gif')"></td>
</tr>
</table>
<table class="maintable" width="<?= TABLES_WIDTH; ?>" style="border-top: 0px">

skins/subPurple/msgs_is_end_body.tpl → skins/subPurple/pms_folder_end_body.tpl View File


skins/subPurple/msgs_is_item_body.tpl → skins/subPurple/pms_folder_item_body.tpl View File


skins/subPurple/msgs_new_body.tpl → skins/subPurple/pms_new_body.tpl View File

@ -43,6 +43,7 @@
<script language="JavaScript">
make_wyzz('textedit');
</script>
<span class="fsmall"><i><b><?= $skin['lsentbox_full']; ?></b></i></span>
</td>
</tr>
<tr>

+ 0
- 8
warns.php View File

@ -177,14 +177,6 @@ switch(trim($_GET['mode']))
{
$skin['no_elements']='<tr><td width="748" colspan="2" class="fitem"><p class="fstandard" align="center">'.$lng['no_elements'].'!</p></td></tr>';
}
if($user_rank=='2')
{
$skin['pa_link']='<a href="admin/index.php" class="fsmall"><b>'.$lng['pa_link'].'</b></a>';
}
else
{
$skin['pa_link']='';
}
include('./skins/'.$default_skin.'/warns_view_end_body.tpl');
include('./skins/'.$default_skin.'/overall_footer.tpl');
break;

Loading…
Cancel
Save