Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mantra

Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 16
106
Mods & Plugins (Requests & Discussions) / Re: [REQ]Dreamboard download
« on: March 14, 2005, 01:41:55 AM »
Anyone know where I can find now that its gone?

Sorry , my web currently over bandwidth and   I need to fix some of bug  for this add-on.

If anyone can help me to contribute [ a programmer php ] for make this add-on more better, I currently made list for request feature :

~ more then one can be moderator for each forum
~ seacrh functions
~ avatar
~ more convertible with template system [ each sub forum have template ]
~  can made attachment file with antileach
~ more speed

please contact me on PM

 :wink:

107
Chit Chat / Re: security of software 4images
« on: March 11, 2005, 05:39:55 AM »
there are no known holes in 4images, atleast that I'm aware of.

glad to hear that,
but maybe after this hapen i hope personly ask jan can Make more safe  for security section of this software

108
Chit Chat / security of software 4images
« on: March 11, 2005, 03:35:51 AM »
Is there any chance they [ hacker ] to hack 4images software. I’m just afraid after what they done in this forum. :twisted:

109
Templates & Styles (Releases & Support) / update
« on: July 02, 2003, 04:44:40 PM »
I make update for Synthetic blue templates.
It looks more soft.


and for all who make itegration with phpbb , there allready templates
in Synthetic blue.


 :wink:  :wink:

110
Chit Chat / Could someone fix bug on this forum please ?????
« on: June 30, 2003, 06:40:04 AM »
Could someone fix bug on this forum please
or maybe Jan must update this phpbb forum to new version???

Everytime theres new topic  on this this tread Integration 4images 1.7 / phpBB it's only 16 page can view.


 :oops:  :oops:  :oops:

111
Mods & Plugins (Releases & Support) / Integration 4images 1.7 / phpBB
« on: June 20, 2003, 02:43:23 PM »
Finally I can make it,......  

for whom want to delete 4images user , when you delete user  from phpbb control panel.

change this admin_userlist.php

to this


Code: [Select]

<?php
/***************************************************************************
 *                             admin_userlist.php
 *                            -------------------
 *   begin                &#58; Thursday, Jul 12, 2001
 *   copyright            &#58; &#40;C&#41; 2001 The phpBB Group
 *   email                &#58; support@phpbb.com
 *
 *   $Id&#58; admin_userlist.php,v 1.1.0 2003/01/05 02&#58;36&#58;00 psotfx Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   &#40;at your option&#41; any later version.
 *
 ***************************************************************************/

define&#40;'IN_PHPBB', 1&#41;;

if&#40; !empty&#40;$setmodules&#41; &#41;
&#123;
$file basename&#40;__FILE__&#41;;
$module['Users'&#93;['User_List'&#93; = $file;
return;
&
#125;

//
// Load default header
//
$phpbb_root_path "./../";
require&
#40;$phpbb_root_path . 'extension.inc'&#41;;
require&#40;'./pagestart.' . $phpEx&#41;;
include&#40;$phpbb_root_path . 'config.'.$phpEx&#41;;
include&#40;$phpbb_root_path . 'includes/functions_admin.'.$phpEx&#41;;

$start = &#40; isset&#40;$HTTP_GET_VARS['start'&#93;&#41; &#41; ? intval&#40;$HTTP_GET_VARS['start'&#93;&#41; &#58; 0;

if &#40; isset&#40;$HTTP_GET_VARS['mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41;
&#123;
$mode = &#40; isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41; ? $HTTP_POST_VARS['mode'&#93; &#58; $HTTP_GET_VARS['mode'&#93;;
&#125;
else
&
#123;
$mode 'joined';
&
#125;

if&#40;isset&#40;$HTTP_POST_VARS['order'&#93;&#41;&#41;
&#123;
$sort_order = &#40;$HTTP_POST_VARS['order'&#93; == 'ASC'&#41; ? 'ASC' &#58; 'DESC';
&#125;
else if&#40;isset&#40;$HTTP_GET_VARS['order'&#93;&#41;&#41;
&#123;
$sort_order = &#40;$HTTP_GET_VARS['order'&#93; == 'ASC'&#41; ? 'ASC' &#58; 'DESC';
&#125;
else
&
#123;
$sort_order 'ASC';
&
#125;

if &#40; isset&#40;$HTTP_GET_VARS['alphanum'&#93;&#41; || isset&#40;$HTTP_POST_VARS['alphanum'&#93;&#41; &#41; 
&#123; 
   
$alphanum = &#40; isset&#40;$HTTP_POST_VARS['alphanum'&#93;&#41; &#41; ? $HTTP_POST_VARS['alphanum'&#93; &#58; $HTTP_GET_VARS['alphanum'&#93;; 
   
$alpha_where = &#40; $alphanum == '#' &#41; ? "AND username NOT RLIKE '^[A-Z&#93;'"&#58;"AND username LIKE '$alphanum%'"; 
&#125;

if &#40;$HTTP_GET_VARS['mode'&#93; == "edit"&#41; &#123;
$user_status $HTTP_GET_VARS['user_status'&#93;;
$user_id2 $HTTP_GET_VARS['u'&#93;;

if &#40;$user_id2 == 2&#41; &#123;
echo "Can't change status of Board owner";
exit;
&#125;

$sql "UPDATE " USERS_TABLE "
SET user_active = 
$user_status
WHERE user_id = 
$user_id2";

if&#40; $result = $db->sql_query&#40;$sql&#41; &#41;
&#123;
$message .= $lang['User_status_updated'&#93;;
&#125;
else
&#123;
$error TRUE;
$error_msg = &#40; &#40; isset&#40;$error_msg&#41; &#41; ? '<br />' &#58; '' &#41; . $lang['Admin_user_fail'&#93;;
&#125;

&
#125;

if&#40; $HTTP_GET_VARS['mode'&#93; == "delete" &#41; &#123;

$user_id $HTTP_GET_VARS['u'&#93;;
$message $lang['Confirm_user_delete'&#93; . '<br /><br />' . sprintf&#40;$lang['Yes_delete_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx?mode=confirm_delete&u=" . $user_id&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['No_delete_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if &
#40;$HTTP_GET_VARS['mode'&#93; == "confirm_delete"&#41; &#123;
$user_id $HTTP_GET_VARS['u'&#93;;

/*if &#40;$user_id == 2&#41; &#123;
echo "Can't delete Board owner";
exit;
&#125;*/
$sql "SELECT g.group_id 
FROM " 
USER_GROUP_TABLE " ug, " GROUPS_TABLE " g  
WHERE ug.user_id = 
$user_id 
AND g.group_id = ug.group_id 
AND g.group_single_user = 1"
;
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$row $db->sql_fetchrow&#40;$result&#41;;

$sql "UPDATE " POSTS_TABLE "
SET poster_id = " 
DELETED ", post_username = '$username
WHERE poster_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "UPDATE " TOPICS_TABLE "
SET topic_poster = " 
DELETED 
WHERE topic_poster = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "UPDATE " VOTE_USERS_TABLE "
SET vote_user_id = " 
DELETED "
WHERE vote_user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "SELECT group_id
FROM " 
GROUPS_TABLE "
WHERE group_moderator = 
$user_id";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql&#41;;
&#125;

while &#40; $row_group = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$group_moderator[&#93; = $row_group['group_id'&#93;;
&#125;

if &#40; count&#40;$group_moderator&#41; &#41;
&#123;
$update_moderator_id implode&#40;', ', $group_moderator&#41;;

$sql "UPDATE " GROUPS_TABLE "
SET group_moderator = " 
$userdata['user_id'&#93; . "
WHERE group_moderator IN &#40;$update_moderator_id&#41;";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql&#41;;
&#125;
&#125;

$sql "DELETE FROM " USERS_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

//------------------------------------------------------------------------------------------------
//------------------- DELETE 4IMAGES USER-----------------------------------------------------------
//---------------------------------------------------------------------------------------------

$album_sql "DELETE FROM " ALBUM_USERS_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
            
$album_sql "DELETE FROM "ALBUM_GROUP_MATCH_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
              
$album_sql "DELETE FROM "ALBUM_LIGHTBOXES_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete lightboxes user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
  
$album_sql "DELETE FROM "ALBUM_COMMENTS_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete comment user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
//-----------------------------------------------------------------------------------
//--------- END OF DELETE 4IMAGES USER
//-----------------------------------------------------------------------------------
$sql "DELETE FROM " USER_GROUP_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " GROUPS_TABLE "
WHERE group_id = " 
$row['group_id'&#93;;
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " AUTH_ACCESS_TABLE "
WHERE group_id = " 
$row['group_id'&#93;;
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " TOPICS_WATCH_TABLE "
WHERE user_id = 
$user_id";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " BANLIST_TABLE "
WHERE ban_userid = 
$user_id";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "SELECT privmsgs_id
FROM " 
PRIVMSGS_TABLE "
WHERE privmsgs_from_userid = 
$user_id 
OR privmsgs_to_userid = 
$user_id";
if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql&#41;;
&#125;

// This little bit of code directly from the private messaging section.
while &#40; $row_privmsgs = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$mark_list[&#93; = $row_privmsgs['privmsgs_id'&#93;;
&#125;

if &#40; count&#40;$mark_list&#41; &#41;
&#123;
$delete_sql_id implode&#40;', ', $mark_list&#41;;

$delete_text_sql "DELETE FROM " PRIVMSGS_TEXT_TABLE "
WHERE privmsgs_text_id IN &#40;
$delete_sql_id&#41;";
$delete_sql "DELETE FROM " PRIVMSGS_TABLE "
WHERE privmsgs_id IN &#40;
$delete_sql_id&#41;";

if &#40; !$db->sql_query&#40;$delete_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql&#41;;
&#125;

if &#40; !$db->sql_query&#40;$delete_text_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql&#41;;
&#125;
&#125;

$message $lang['User_deleted'&#93; . '<br /><br />' . sprintf&#40;$lang['Click_return_userslist'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['Click_return_admin_index'&#93;, '<a href="' . append_sid&#40;"index.$phpEx?pane=right"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if&#40; $HTTP_GET_VARS['mode'&#93; == "ban" &#41; &#123;

$user_id $HTTP_GET_VARS['u'&#93;;
$message $lang['Confirm_user_ban'&#93; . '<br /><br />' . sprintf&#40;$lang['Yes_ban_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx?mode=confirm_ban&u=" . $user_id&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['No_ban_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if &
#40;$mode == "confirm_ban"&#41; &#123;

   
$user_id $HTTP_GET_VARS['u'&#93;;
   
   
$sql "INSERT INTO " BANLIST_TABLE " &#40;ban_userid&#41;
VALUES &#40;" 
$user_id "&#41;";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql&#41;;
&#125;

$message $lang['User_banned'&#93; . '<br /><br />' . sprintf&#40;$lang['Click_return_userslist'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['Click_return_admin_index'&#93;, '<a href="' . append_sid&#40;"index.$phpEx?pane=right"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

//
// Memberlist sorting
//
$mode_types_text = array&#40;$lang['Sort_Joined'&#93;, $lang['Sort_Username'&#93;, $lang['Sort_Posts'&#93;, $lang['Sort_Email'&#93;,&#41;;
$mode_types = array&#40;'joindate', 'username', 'posts', 'email'&#41;;

$select_sort_mode '<select name="mode">';
for&
#40;$i = 0; $i < count&#40;$mode_types_text&#41;; $i++&#41;
&#123;
$selected = &#40; $mode == $mode_types[$i&#93; &#41; ? ' selected="selected"' &#58; '';
$select_sort_mode .= '<option value="' $mode_types[$i&#93; . '"' . $selected . '>' . $mode_types_text[$i&#93; . '</option>';
&#125;
$select_sort_mode .= '</select>';

$select_sort_order '<select name="order">';
if&
#40;$sort_order == 'ASC'&#41;
&#123;
$select_sort_order .= '<option value="ASC" selected="selected">' $lang['Sort_Ascending'&#93; . '</option><option value="DESC">' . $lang['Sort_Descending'&#93; . '</option>';
&#125;
else
&
#123;
$select_sort_order .= '<option value="ASC">' $lang['Sort_Ascending'&#93; . '</option><option value="DESC" selected="selected">' . $lang['Sort_Descending'&#93; . '</option>';
&#125;
$select_sort_order .= '</select>';

//
// Generate page
//

$template->set_filenames&#40;array&#40;
'body' => 'admin/userlist_body.tpl'&#41;
&#41;;
make_jumpbox&#40;'viewforum.'.$phpEx&#41;;

$template->assign_vars&#40;array&#40;
'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'&#93;,
'L_EMAIL' => $lang['Email'&#93;,
'L_USERNAME' => $lang['Username'&#93;,
'L_ORDER' => $lang['Order'&#93;,
'L_SORT' => $lang['Sort'&#93;,
'L_SUBMIT' => $lang['Sort'&#93;,
'L_JOINED' => $lang['Joined'&#93;, 
'L_POSTS' => $lang['Posts'&#93;, 
'L_PM' => $lang['Private_Message'&#93;, 
'L_ACTIVE' => $lang['Active'&#93;,
'L_ACTION' => $lang['Action'&#93;,
'L_EDIT_PERMISSION' => $lang['Edit_Permission'&#93;,
'L_EDIT_PROFILE' => $lang['Edit_Profile'&#93;,
'L_PM' => $lang['Private_Message'&#93;,
'L_USER_LIST_TITLE' => $lang['User_list_title'&#93;,
'L_USER_LIST_DESCRIPTION' => $lang['User_list_description'&#93;,
'L_USERGROUP' => $lang['User_group'&#93;,

'S_MODE_SELECT' => $select_sort_mode,
'S_ORDER_SELECT' => $select_sort_order,
'S_MODE_ACTION' => append_sid&#40;"admin_userlist.$phpEx" . &#40; &#40;isset&#40;$alphanum&#41;&#41; ? "?alphanum=$alphanum" &#58; '' &#41;&#41;
&#41; &#41;;

$alpha_range range&#40;'A','Z'&#41;;
$alphanum_range array_merge&#40;array&#40;'' => 'All'&#41;,array&#40;'%23' => '#'&#41;,$alpha_range&#41;;
foreach &#40; $alphanum_range as $key => $alpha &#41;
&#123;
if &#40; in_array&#40;$alpha,$alpha_range&#41; &#41; $key = $alpha;
$alphanum_search_url append_sid&#40;"admin_userlist.$phpEx?mode=" . &#40; &#40; isset&#40;$HTTP_GET_VARS['mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41; ? $mode &#58; 'username' &#41; . "&amp;sort=$sort_order&amp;alphanum=" . strtolower&#40;$key&#41;&#41;;
$template->assign_block_vars&#40;'alphanumsearch', array&#40;
'SEARCH_SIZE' => floor&#40;100/count&#40;$alphanum_range&#41;&#41; . '%',
'SEARCH_TERM' => $alpha,
'SEARCH_LINK' => $alphanum_search_url
&
#41;&#41;;
&#125;

switch&#40; $mode &#41;
&#123;
case 'joined'&#58;
$order_by "user_regdate ASC LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'username'&#58;
$order_by "username $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'posts'&#58;
$order_by "user_posts $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'email'&#58;
$order_by "user_email $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
default&#58;
$order_by "user_regdate $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
&
#125;

$sql "SELECT * 
   FROM " 
USERS_TABLE 
   WHERE user_id <> " 
ANONYMOUS $alpha_where 
   ORDER BY 
$order_by";
if&
#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql&#41;;
&#125;

if &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$i 0;
do
&#123;
$username $row['username'&#93;;
$user_id $row['user_id'&#93;;
$status $row['user_active'&#93;;

$sql "SELECT * 
     FROM " 
USER_GROUP_TABLE 
    WHERE user_id = " 
$user_id;
if&#40; !&#40;$result2 = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
  message_die&#40;GENERAL_ERROR, 'Could not query group', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$group_name "";

 
while &#40;$user_group = $db->sql_fetchrow&#40;$result2&#41;&#41; &#123;

  $group_status "";
  $group_id $user_group['group_id'&#93;;
  
  $sql "SELECT * 
          FROM " 
GROUPS_TABLE 
         WHERE group_id = " 
$group_id;
 
   if&#40; !&#40;$result3 = $db->sql_query&#40;$sql&#41;&#41; &#41;
   &#123;
       message_die&#40;GENERAL_ERROR, 'Could not query groups', '', __LINE__, __FILE__, $sql&#41;;
   &#125;

   while &#40;$group_info = $db->sql_fetchrow&#40;$result3&#41;&#41; &#123;

     if &#40;$group_name != ""&#41; 
 &#123;
  $group_name .= "<br />";
 &#125;

 
    $group_name .= $group_info['group_name'&#93; . "&nbsp;" . $group_status;
&#125;
&#125;

$user_group_name $group_name;

$email_uri append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id&#41;;
$email '<a href="' $email_uri '" class="gen">' $lang['Email'&#93; . '</a>';

$joined create_date&#40;$lang['DATE_FORMAT'&#93;, $row['user_regdate'&#93;, $board_config['board_timezone'&#93;&#41;;
$posts = &#40; $row['user_posts'&#93; &#41; ? $row['user_posts'&#93; &#58; 0;


//status varible
if &#40;$status == '0'&#41; &#123;
$l_active $lang['No'&#93;;
$l2_active 1;
&#125;
if &#40;$status == '1'&#41; &#123;
$l_active $lang['Yes'&#93;;
$l2_active 0;
&#125;

$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=$user_id&amp;user_status=$l2_active"&#41;;
$active '<a href="' $temp_url '" class="gen">' $l_active '</a>';

//delete link
$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=delete&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$delete '<a href="' $temp_url '" class="gen">' $lang['Delete'&#93; . '</a>';

//ban link
$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=ban&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$ban '<a href="' $temp_url '" class="gen">' $lang['Ban'&#93; . '</a>';

//profile varibles
$temp_url append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$profile '<a href="' $temp_url '" class="gen">' $lang['Read_profile'&#93; . '</a>';

//post search varibles
$temp_url append_sid&#40;$phpbb_root_path . "search.$phpEx?search_author=" . urlencode&#40;$username&#41; . "&amp;showresults=posts"&#41;;
$search '<a href="' $temp_url '" class="gen">' $lang['Search_user_posts'&#93; . '</a>';

//pm varibles
$temp_url append_sid&#40;$phpbb_root_path . "privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$pm_img '<a href="' $temp_url '"><img src="' $images['icon_pm'&#93; . '" alt="' . $lang['Send_private_message'&#93; . '" title="' . $lang['Send_private_message'&#93; . '" border="0" /></a>';
$pm '<a href="' $temp_url '" class="gen">' $lang['PM'&#93; . '</a>';

$row_color = &#40; !&#40;$i % 2&#41; &#41; ? $theme['td_color1'&#93; &#58; $theme['td_color2'&#93;;
$row_class = &#40; !&#40;$i % 2&#41; &#41; ? $theme['td_class1'&#93; &#58; $theme['td_class2'&#93;;

$template->assign_block_vars&#40;'memberrow', array&#40;
'ROW_NUMBER' => $i + &#40; $HTTP_GET_VARS['start'&#93; + 1 &#41;,
'ROW_COLOR' => '#' $row_color,
'ROW_CLASS' => $row_class,
'USERNAME' => $username,
'JOINED' => $joined,
'POSTS' => $posts,
'PROFILE' => $profile
'SEARCH' => $search,
'EMAIL' => $email,
'ACTIVE' => $active,
'PM_IMG' => $pm_img,
'PM' => $pm,
'EMAIL' => $email,
'DELETE' => $delete,
'GROUP' => $user_group_name,
'BAN' => $ban,

'U_EDIT_PERMISSION' => append_sid&#40;"admin_ug_auth.$phpEx?mode=user&amp;" . POST_USERS_URL . "=" . $user_id&#41;,
'U_EDIT_PROFILE' => append_sid&#40;"admin_users.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=" . $user_id&#41;,

'U_SEARCH_POST' => append_sid&#40;$phpbb_root_path . "search.$phpEx?search_author=" . urlencode&#40;$username&#41; . "&amp;showresults=posts"&#41;,
'U_VIEWPROFILE' => append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$user_id"&#41;&#41;
&#41;;

$i++;
&#125;
while &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;;
&#125;

if &#40; $mode != 'topten' || $board_config['topics_per_page'&#93; < 10 &#41;
&#123;
   
$sql "SELECT count&#40;*&#41; AS total 
      FROM " 
USERS_TABLE 
      WHERE user_id <> " 
ANONYMOUS $alpha_where";

if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Error getting total users', '', __LINE__, __FILE__, $sql&#41;;
&#125;

if &#40; $total = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$total_members $total['total'&#93;;

$pagination generate_pagination&#40;"admin_userlist.$phpEx?mode=$mode&order=$sort_order" . &#40; &#40; isset&#40;$alphanum&#41; &#41; ? "&alphanum=$alphanum" &#58; '' &#41;, $total_members, $board_config['topics_per_page'&#93;, $start&#41;;
&#125;
&#125;
else
&
#123;
$pagination '&nbsp;';
$total_members 10;
&
#125;

$template->assign_vars&#40;array&#40;
'PAGINATION' => $pagination,
'PAGE_NUMBER' => sprintf&#40;$lang['Page_of'&#93;, &#40; floor&#40; $start / $board_config['topics_per_page'&#93; &#41; + 1 &#41;, ceil&#40; $total_members / $board_config['topics_per_page'&#93; &#41;&#41;, 

'L_GOTO_PAGE' => $lang['Goto_page'&#93;&#41;
&#41;;

$template->pparse&#40;'body'&#41;;

include&#40;'./page_footer_admin.'.$phpEx&#41;;

?>



and add this in your constants.php [ in folder phpbb ]

 // Album integration
 $album_table_prefix = '4images_';
 //define('ALBUM_INTEGRATED', 0); // Integrated album off
 define('ALBUM_INTEGRATED', 1); // Integrated album on
 define('ALBUM_USERS_TABLE', $album_table_prefix.'users');
 define('ALBUM_GROUP_MATCH_TABLE', $album_table_prefix.'groupmatch');
 define('ALBUM_LIGHTBOXES_TABLE', $album_table_prefix.'lightboxes');
 define('ALBUM_COMMENTS_TABLE', $album_table_prefix.'comments');
 
 // Album User levels
 define('ALBUM_GUEST', -1);
 define('ALBUM_USER_AWAITING', 1);
 define('ALBUM_USER', 2);
 define('ALBUM_ADMIN', 9);


I hope this is right, because on my site it's works fine

112
Mods & Plugins (Releases & Support) / jan
« on: June 18, 2003, 12:03:47 PM »
Jan ....... please?

113
ANY REQUEST OR PROBLEM RELATED TO MY TEMPLATE,
PLEASE POST IT ON MY FORUMS
http://www.mantradigital.com/gallery/forums/

 :)  :)  :)

114
Templates & Styles (Releases & Support) / yeap
« on: June 17, 2003, 02:26:29 AM »
Give me a view days to finish. :D  :D

115
Mods & Plugins (Releases & Support) / no not after
« on: June 16, 2003, 02:51:40 AM »
After I make itregation with phpbb, and restore my all member to both program, now everytime guest make register it will add user to both [ 4images and phpbb ]

acording to this script

Code: [Select]
Index: includes/constants.php
===================================================================
diff -Naur includes/constants.php
--- includes/constants.php   2002-07-29 06:04:04.000000000 +0800
+++ includes/constants.php   2002-10-19 02:46:37.000000000 +0800
@@ -178,4 +178,16 @@
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

+// Album integration
+$album_table_prefix = '4images_';
+//define('ALBUM_INTEGRATED', 0); // Integrated album off
+define('ALBUM_INTEGRATED', 1); // Integrated album on
+define('ALBUM_USERS_TABLE', $album_table_prefix.'users');
+
+// Album User levels
+define('ALBUM_GUEST', -1);
+define('ALBUM_USER_AWAITING', 1);
+define('ALBUM_USER', 2);
+define('ALBUM_ADMIN', 9);
+
?>
Index: includes/usercp_activate.php
===================================================================
diff -Naur includes/usercp_activate.php
--- includes/usercp_activate.php   2002-05-20 01:21:38.000000000 +0800
+++ includes/usercp_activate.php   2002-10-19 03:25:49.000000000 +0800
@@ -56,6 +56,19 @@
      {
         message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update);
      }
+      if ( defined('ALBUM_INTEGRATED') )
+      {
+         if (ALBUM_INTEGRATED == 1)
+         {
+            $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+               SET user_level = " . ALBUM_USER . "
+               WHERE user_id = " . $row['user_id'] . " AND user_activationkey = '" . $HTTP_GET_VARS['act_key'] . "'";
+            if ( !($result = $db->sql_query($album_sql)) )
+            {
+               message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql_update);
+            }
+         }
+      }

      if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN && $sql_update_pass == '' )
      {
Index: includes/usercp_register.php
===================================================================
diff -Naur includes/usercp_register.php
--- includes/usercp_register.php   2002-09-28 12:21:18.000000000 +0800
+++ includes/usercp_register.php   2002-10-18 02:57:36.000000000 +0800
@@ -440,6 +440,13 @@
         {
            message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
         }
+         $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+            SET " . $album_username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_homepage = '" . str_replace("\'", "''", $website) . "', user_showemail = $viewemail, user_invisible = " . (1 - $allowviewonline) . "
+            WHERE user_id = $user_id";
+         if ( !($result = $db->sql_query($album_sql)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql);
+         }

         if ( !$user_active )
         {
@@ -499,6 +506,8 @@
         //
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
+         $album_sql = "INSERT INTO " . ALBUM_USERS_TABLE . "   (user_id, user_name, user_password, user_email, user_showemail, user_allowemails, user_invisible, user_joindate, user_lastaction, user_lastvisit, user_comments, user_homepage, user_icq, user_level, user_activationkey)
+            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', $viewemail, 1, " . (1 - $allowviewonline) . ", " . time() . ", " . time() . ", " . time() . ", 0, '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $icq) . "', ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {
            $user_actkey = gen_rand_string(true);
@@ -506,10 +515,14 @@
            $key_len = ( $key_len > 6 ) ? $key_len : 6;
            $user_actkey = substr($user_actkey, 0, $key_len);
            $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
+            $user_level = ALBUM_USER_AWAITING;
+            $album_sql .= $user_level . ", '" . str_replace("\'", "''", $user_actkey) . "')";
         }
         else
         {
            $sql .= "1, '')";
+            $user_level = ALBUM_USER;
+            $album_sql .= $user_level . ", '')";
         }

         if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
@@ -517,6 +530,11 @@
            message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
         }

+         if ( !($result = $db->sql_query($album_sql, BEGIN_TRANSACTION)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not insert data into photo album users table', '', __LINE__, __FILE__, $album_sql);
+         }
+
         $sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
            VALUES ('', 'Personal User', 1, 0)";
         if ( !($result = $db->sql_query($sql)) )



------------------------------------------------------------


my question is the same system as above script,

 to remove user in both progran Jan, when admin remove the user on phpbb it will remove in 4images to.


 :wink:

116
Mods & Plugins (Releases & Support) / how
« on: June 15, 2003, 04:52:13 PM »
Jan how to make ,
 If admin  delete user  from board [ pbpbb ] it will delete user on 4image too.
8)

117
Templates & Styles (Releases & Support) / wich one use you use
« on: June 15, 2003, 04:50:45 PM »
wich one  you use [ my templates ] kaisuny
I will make it for you first.
:lol:

118
Mods & Plugins (Releases & Support) / any progress
« on: June 13, 2003, 02:42:17 AM »
any progress in engglish yet????

119
Mods & Plugins (Requests & Discussions) / I'm member
« on: June 12, 2003, 01:27:14 AM »
I'm member of your site [ iblis ]

I download your file list mood, I wants to try in my site [ in localhost first ]for download my free templates.

I hope this mood will fix soon, cos I really need this mood V@NO. :wink:

120
Mods & Plugins (Requests & Discussions) / 2 V@no about Files list v1
« on: June 12, 2003, 12:51:30 AM »
Any solution on your File list V.1 [ on extention bug ?? ]
I would like to use your mood, V@NO
:wink:

Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 16