Fixed : Captcha (removed session_register function)
Fixed : Player Manager
This commit is contained in:
parent
51e06ec96f
commit
294e1bcf2d
8 changed files with 78 additions and 54 deletions
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
****************************************************************************************************
|
||||
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved. |
|
||||
| @ Author : ArslanHassan |
|
||||
| @ Software : ClipBucket , © PHPBucket.com |
|
||||
****************************************************************************************************
|
||||
**************************************************************
|
||||
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
||||
| @ Author : ArslanHassan
|
||||
| @ Software : ClipBucket , © PHPBucket.com
|
||||
****************************************************************
|
||||
*/
|
||||
|
||||
define("THIS_PAGE","activation");
|
||||
|
|
|
@ -74,7 +74,6 @@ if(isset($_POST['update'])){
|
|||
'num_thumbs',
|
||||
|
||||
'php_path',
|
||||
'player_file',
|
||||
|
||||
'resize',
|
||||
'remoteUpload',
|
||||
|
|
|
@ -17,6 +17,7 @@ if($_GET['set'])
|
|||
$cbplayer->set_player($_GET);
|
||||
}
|
||||
|
||||
|
||||
subtitle("Manage Players");
|
||||
template_files('manage_players.html');
|
||||
display_it();
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* this will manage log of each possible action
|
||||
* @ Author : Arslan Hassan
|
||||
* @ since : June 14, 2009
|
||||
* @ ClipBucket : v2.x - {Upcoming version}
|
||||
* @ ClipBucket : v2.x
|
||||
* @ license : CBLA
|
||||
*/
|
||||
|
||||
|
@ -19,44 +19,51 @@ class CBLogs
|
|||
* @param VARCHAR $type, type of action
|
||||
* @param ARRAY $details_array , action details array
|
||||
*/
|
||||
function insert($type,$details_array)
|
||||
{
|
||||
global $db;
|
||||
$a = $details_array;
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
$agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
$userid = $a['userid'];
|
||||
$username = $a['username'];
|
||||
$useremail = $a['useremail'];
|
||||
$success = $a['success'];
|
||||
$details = $a['details'];
|
||||
$userlevel = $a['userlevel'];
|
||||
$db->insert('action_log',
|
||||
array
|
||||
(
|
||||
'action_type',
|
||||
'action_username',
|
||||
'action_userid',
|
||||
'action_useremail',
|
||||
'action_ip',
|
||||
'date_added',
|
||||
'action_success',
|
||||
'action_details',
|
||||
'action_userlevel',
|
||||
),
|
||||
array
|
||||
(
|
||||
$type,
|
||||
$username,
|
||||
$userid ,
|
||||
$useremail,
|
||||
$ip,
|
||||
NOW(),
|
||||
$success,
|
||||
$details,
|
||||
$userlevel
|
||||
)
|
||||
);
|
||||
function insert($type,$details_array)
|
||||
{
|
||||
global $db,$userquery;
|
||||
$a = $details_array;
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
$agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
$userid = $a['userid'];
|
||||
$username = $a['username'];
|
||||
$useremail = $a['useremail'];
|
||||
$userlevel = $a['userlevel'];
|
||||
|
||||
$userid = $userid ? $userid : $userquery['userid'];
|
||||
$username = $username ? $username : $userquery['username'];
|
||||
$useremail = $useremail ? $useremail : $userquery['email'];
|
||||
$userlevel = $userlevel ? $userlevel : $userquery['level'];
|
||||
|
||||
$success = $a['success'];
|
||||
$details = $a['details'];
|
||||
|
||||
$db->insert('action_log',
|
||||
array
|
||||
(
|
||||
'action_type',
|
||||
'action_username',
|
||||
'action_userid',
|
||||
'action_useremail',
|
||||
'action_ip',
|
||||
'date_added',
|
||||
'action_success',
|
||||
'action_details',
|
||||
'action_userlevel',
|
||||
),
|
||||
array
|
||||
(
|
||||
$type,
|
||||
$username,
|
||||
$userid ,
|
||||
$useremail,
|
||||
$ip,
|
||||
NOW(),
|
||||
$success,
|
||||
$details,
|
||||
$userlevel
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -3199,7 +3199,16 @@ class userquery extends CBCategory{
|
|||
$this->send_welcome_email($insert_id);
|
||||
}
|
||||
|
||||
|
||||
$log_array = array
|
||||
('username' => $array['username'],
|
||||
'userid' => $insert_id,
|
||||
'userlevel'=> $array['level'],
|
||||
'useremail'=> $array['email'],
|
||||
'success'=>'yes',
|
||||
'details'=> sprintf("%s signed up",$array['username']));
|
||||
|
||||
//Login Signup
|
||||
insert_log('signup',$log_array);
|
||||
return $insert_id;
|
||||
}
|
||||
|
||||
|
|
|
@ -3721,4 +3721,13 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Function used to insert Log
|
||||
*/
|
||||
function insert_log($type,$details)
|
||||
{
|
||||
global $cblog;
|
||||
$cblog->insert('login',$log_array);
|
||||
}
|
||||
?>
|
|
@ -136,7 +136,7 @@ class img_validator extends files
|
|||
*/
|
||||
function records_word($word)
|
||||
{
|
||||
session_register('word_validator');
|
||||
//session_register('word_validator');
|
||||
$_SESSION["word_validator"] = base64_encode($this->encrypts_word($word));
|
||||
if(empty($_SESSION['word_validator'])){
|
||||
setcookie('word_validator', base64_encode($this->encrypts_word($word)));
|
||||
|
@ -311,7 +311,7 @@ class img_validator extends files
|
|||
*/
|
||||
if($this->image_type == "jpeg")
|
||||
{
|
||||
header("Content-type: image/jpeg");
|
||||
header("Content-type: image/jpeg");
|
||||
imagejpeg($background_image, false, 100);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
/*
|
||||
****************************************************************************************************
|
||||
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
|
||||
| @ Author : ArslanHassan |
|
||||
| @ Software : ClipBucket , © PHPBucket.com |
|
||||
****************************************************************************************************
|
||||
*************************************************************
|
||||
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
|
||||
| @ Author : ArslanHassan
|
||||
| @ Software : ClipBucket , © PHPBucket.com
|
||||
*************************************************************
|
||||
*/
|
||||
|
||||
define("THIS_PAGE","signup");
|
||||
|
@ -12,7 +12,6 @@ define("PARENT_PAGE","signup");
|
|||
|
||||
require 'includes/config.inc.php';
|
||||
|
||||
assign('mode','signup_success');
|
||||
if($userquery->login_check('',true)){
|
||||
redirect_to(BASEURL);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue