Phpbannerexchange2.0 > Exchange / Admin / Emailuser.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Phpbannerexchange2.0

Download:
phpbannerexchange2.0.zip

Category:
Exchanges

Archive Content:

Exchange > Admin

Exchange > Banners

Exchange

Exchange > Client

Exchange

Exchange > Docs

Exchange

Exchange > Install

Exchange > Lang

Exchange > Lib

Exchange > Lib > Commerce

Exchange > Lib

Exchange

Exchange > Template

Exchange > Template > Css

Exchange > Template

Exchange > Template > Mail

Exchange > Template

Exchange

Emailuser.php:


<?
$file_rev
="041305";
////////////////////////////////////////////////////////
//                 phpBannerExchange                  //
//                   by: Darkrose                     //
//              (darkrose <at> eschew <dot> net)                 //
//                                                    //
// You can redistribute this software under the terms //
// of the GNU General Public License as published by  //
// the Free Software Foundation; either version 2 of  //
// the License,  or (at your option) any later         //
// version.                                           //
//                                                    //
// You should have received a copy of the GNU General //
// Public License along with this program; if not,     //
// write to the Free Software Foundation,  Inc.,  59    //
// Temple Place,  Suite 330,  Boston,  MA 02111-1307 USA //
//                                                    //
//     Copyright 2004 by eschew.net Productions.      //
//   Please keep this copyright information intact.   //
////////////////////////////////////////////////////////

include("../config.php");
include(
"../css.php");
include(
"../lang/admin.php");
require_once(
'../lib/template_class.php');

if(
$use_gzhandler==1){
    
ob_start("ob_gzhandler");
}

// Begin loginstuff
if(!$db=@mysql_connect("$dbhost", "$dbuser", "$dbpass")){
    include(
"../lang/errors.php");
    
$err="1";
    
$error.="$LANG_error_header<p>";
    
$error.="$LANG_error_mysqlconnect ";
    
$error.=mysql_error();
}

@
mysql_select_db($dbname, $db);

session_start();
header("Cache-control: private"); //IE 6 Fix 
$session=session_id(); 
$login $_SESSION['login'];
$pass $_SESSION['pass'];

$result mysql_query("select * from banneradmin where adminuser='$login' AND adminpass='$pass'");
$get_userinfo=mysql_fetch_array($result);
$login=$get_userinfo[adminuser];
$pass=$get_userinfo[adminpass];

    if(
$login=="" AND $pass=="" OR $pass=="" OR $err=="1") {
        include(
"../lang/errors.php");
        
$error.="$LANG_error_header<p>";
        
$error.="$LANG_login_error";

        
$page = new Page('../template/admin_error.php');
        
$page->replace_tags(array(
            
'css' => "$css",
            
'session' => "$session",
            
'baseurl' => "$baseurl",
            
'title' => "$exchangename - $LANG_login_error_title",
            
'shorttitle' => "$LANG_login_error_title",
            
'error' => "$error",
            
'menu' => "$menu",
            
'footer' => '../footer.php'));
        
$page->output();
    
session_destroy();

    }else{ 

$id=$_REQUEST[id];

    
$user=mysql_query("select email from banneruser where id='$id'");
    
$get_user=mysql_fetch_array($user);    
    
$email=$get_user[email];
    
    
$page = new Page('../template/admin_emailuser.php');
    
$page->replace_tags(array(
        
'css' => "$css",
        
'session' => "$session",
        
'baseurl' => "$baseurl",
        
'title' => "$exchangename - $LANG_email_button_send",
        
'shorttitle' => "$LANG_email_button_send",
        
'override' => "$LANG_email_override",
        
'override_warning' => "$LANG_email_override_warning",
        
'email' => "$email",
        
'email_address' => "$LANG_email_address",
        
'subject' => "$LANG_emailconf_subject",
        
'message' => "$LANG_email_message",
        
'submit' => "$LANG_email_button_send",
        
'reset' => "$LANG_email_button_reset",
        
'menu' => 'admin_menuing.php',
        
'footer' => '../footer.php'));
    
$page->output();
}
    
?>


Other Exchanges Scripts:

  • Phpbannerexchange2.0
WebMaster Resources Home

©RingsWorld.com