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.


Topics - [M]ike

Pages: [1]
1
Ok, my budget is $80, I need a template for www.messengerdp.com that is slick, easy to use and has some sort of MSN Messenger/Avatar feel to it. Please only enquire if you are confident in doing this. :)

Thanks,
Mike

2
I may have given this the wrong title but I'm not entirely sure what it's called, anyway;
I personally think it would be cool if somebody could make a page so you can browse from your User box to upload images, then at the top add a drop down menu to choose the category. I've suggested this as a few of my members have complained the Upload button wasn't too easy to find at first.

Example:

» Lightbox
» Control Panel
» View My Profile
» Upload
» Log Out

Dropdown: ---------------
                Category 1
                Category 2
                Category 3 (etc.)
Then the normal upload form. :)

A good job may result in you being paid.

Regards,
[M]ike

3
Discussion & Troubleshooting / admin_global.php problems
« on: July 23, 2007, 10:53:27 PM »
Yeah, I was using a Moderator mod (http://www.4homepages.de/forum/index.php?topic=17155.0;topicseen) and I've installed it all, (Translated every Moderador to Moderator) and I've debugged it and now my admin panel and any page using admin_global.php has just gone blank. Quite a problem ^^

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: admin_global.php                                     *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.4                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die(
"Security violation");
}

define('GET_CACHES'1);
include_once(
ROOT_PATH.'global.php');
include_once(
ROOT_PATH.'includes/sessions.php');
include_once(
ROOT_PATH.'admin/admin_functions.php');

if (isset(
$HTTP_GET_VARS['redirect']) || isset($HTTP_POST_VARS['redirect'])) {
  
$redirect = (isset($HTTP_GET_VARS['redirect'])) ? trim($HTTP_GET_VARS['redirect']) : trim($HTTP_POST_VARS['redirect']);
}
else {
  
$redirect "";
}

if (isset(
$HTTP_GET_VARS['goto']) || isset($HTTP_POST_VARS['goto'])) {
  
$goto = (isset($HTTP_GET_VARS['goto'])) ? trim($HTTP_GET_VARS['goto']) : trim($HTTP_POST_VARS['goto']);
}
else {
  
$goto "";
}

if (isset(
$PHP_SELF) && eregi("\/plugins\/"$PHP_SELF)) {
  
$self_url "plugins/".$self_url;
}

if (
$goto != "") {
  
$self_url .= preg_match("/\?/"$self_url) ? "&" "?";
  
$self_url .= "goto=".urlencode($goto);
}

$newlangfile 0;
if (!
file_exists(ROOT_PATH.'lang/'.$config['language_dir'].'/admin.php')) {
  
$old_language_dir $config['language_dir'];
  
$handle opendir(ROOT_PATH.'lang/');
  while (
$folder = @readdir($handle)){
    if (
is_dir(ROOT_PATH."/lang/".$folder) && $folder != "." && $folder != "..") {
      unset(
$config['language_dir']);
      
$config['language_dir'] = $folder;
      
$newlangfile 1;
    }
  }
  
closedir($handle);
  if (!
file_exists(ROOT_PATH.'lang/'.$config['language_dir'].'/admin.php')) {
    
$newlangfile 0;
    
show_admin_header();
    echo 
"<p>".$lang['admin_no_lang']."</p>";
    
show_admin_footer();
    exit;
  }
}

// Include default languages
@include_once(ROOT_PATH.'lang/english/admin.php');
include_once(
ROOT_PATH.'lang/'.$config['language_dir'].'/admin.php');

if (
strstr(getenv("HTTP_USER_AGENT"), "MSIE")) { // Browser Detection
  
$textinput_size "50";
  
$textinput_size2 "30";
  
$textarea_size "50";
}
else {
  
$textinput_size "30";
  
$textinput_size2 "17";
  
$textarea_size "28";
}

if (isset(
$HTTP_GET_VARS['logout'])) {
  
$site_sess->logout($user_info['user_id']);
setcookie("adminon"00'/');
redirect("index.php");
}

if (isset(
$HTTP_POST_VARS['loginusername']) && isset($HTTP_POST_VARS['loginpassword'])) {
  
$loginusername trim($HTTP_POST_VARS['loginusername']);
  
$loginpassword trim($HTTP_POST_VARS['loginpassword']);
  if (
$site_sess->login($loginusername$loginpassword00)) {
    
$user_info $site_sess->return_user_info();
  }
}

if ((
defined('ADMIN_SAFE_LOGIN') && ADMIN_SAFE_LOGIN == 1) || (defined('MODERATOR_SAFE_LOGIN') && MODERATOR_SAFE_LOGIN == 1)){
  if (
$user_info['user_level'] != GUEST && $user_info['user_level'] != MODERATOR && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
    
setcookie("adminon"10'/');
    
$HTTP_COOKIE_VARS['adminon'] = 1;
  }
  else {
    if (
$user_info['user_level'] == GUEST || $user_info['user_level'] == MODERATOR || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      
$HTTP_COOKIE_VARS['adminon'] = 0;
    }
  }
if (
$user_info['user_level'] != GUEST && $user_info['user_level'] == MODERATOR && $user_info['user_level'] != ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
    
setcookie("moderatoron"10'/');
    
$HTTP_COOKIE_VARS['moderatoron'] = 1;
  }
  else {
    if (
$user_info['user_level'] == GUEST || $user_info['user_level'] == ADMIN || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      
$HTTP_COOKIE_VARS['moderatoron'] = 0;
    }
  }
  if (!isset(
$HTTP_COOKIE_VARS['adminon']) || $HTTP_COOKIE_VARS['adminon'] == || !isset($HTTP_COOKIE_VARS['moderatoron']) || $HTTP_COOKIE_VARS['moderatoron'] == 0) {
    
$user_info['user_level'] = GUEST;
  }
  else {
    if (
$user_info['user_level'] != GUEST  && $user_info['user_level'] != MODERATOR && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      
setcookie("adminon"10'/');
      
$HTTP_COOKIE_VARS['adminon'] = 1;
    }

else {
    if (
$user_info['user_level'] != GUEST  && $user_info['user_level'] == MODERATOR  && $user_info['user_level'] != ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      
setcookie("moderatoron"10'/');
      
$HTTP_COOKIE_VARS['moderatoron'] = 1;
    }
  }
  }
}
if (isset(
$HTTP_POST_VARS['goback']) || isset($HTTP_GET_VARS['goback'])) {
  
$back_url $site_sess->get_session_var('back_url');

if (!empty($back_url)) {
  $site_sess->drop_session_var('back_url');
redirect($back_url);
exit;
}
}

if (
$user_info['user_level'] != ADMIN && $user_info['user_level'] != MODERATOR) {
  
show_admin_header();
?>

<br /><br /><br />
<table cellpadding="1" cellspacing="0" border="0" align="center" width="500"><tr><td class="tableborder">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr class="tablerow"><td align="center" nowrap><p><?php echo $lang['no_admin']; ?></p>
<form action="<?php echo $site_sess->url(ROOT_PATH."admin/index.php"); ?>" method="post">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
  <td><input type="text" name="loginusername" size="<?php echo $textinput_size2?>"></td>
  <td><input type="password" name="loginpassword" size="<?php echo $textinput_size2?>"></td>
  <td><input type="submit" value="   <?php echo $lang['admin_login']; ?>   "></td>
</tr>
<tr>
  <td><font size="1" class="smalltext"><?php echo $lang['field_username']; ?></font></td>
  <td colspan="2"><font size="1" class="smalltext"><?php echo $lang['field_password']; ?></font></td>
</tr>
</table>
</form>
</td></tr></table>
</td></tr></table>
<p align="center">Messenger Display Pictures Control Panel</p>
<?php
  show_admin_footer
();
  exit;
}
?>

All I can tell you is the problem is around the bottom of the script.

If anybody could pinpoint my problem that would be awesome.

Regards,
[M]ike

4
Discussion & Troubleshooting / Where is $db_password set?
« on: July 23, 2007, 07:28:16 PM »
I accidentally deleted the MySQL account for my 4Images Gallery, I tried re-adding it with what I thought was the same password and added it to the database used but I'm receiving this error;
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'messe9_imga1'@'localhost' (using password: YES) in /home/messe9/public_html/includes/db_mysql.php on line 39

An unexpected error occured. Please try again later.

So I need to change the value of $db_password to the new set password for the database.

Any ideas ? Please post if I'm not clear enough for you - A speedy reply would be greatly appreciated as I need to get the site back online as soon as possible.

Regards,
[M]ike

Pages: [1]