Fixed : Admin Activaition Code

Added : Error 404 and 403 separate pages
Fixed : ToggleView() in Internet Explorer
This commit is contained in:
Fawaz 2010-07-10 11:29:26 +00:00
parent a15cff26c8
commit 06b4af33dd
7 changed files with 65 additions and 5 deletions

View file

@ -63,6 +63,7 @@ RewriteRule ^page/([0-9]+)/(.*) view_page.php?pid=$1 [nc]
RewriteRule ^search/result search_result.php [nc]
RewriteRule ^upload upload.php [nc]
RewriteRule ^contact contact.php [nc]
RewriteRule ^categories categories.php [nc]
#Group Section
@ -77,8 +78,8 @@ RewriteRule ^sitemap.xml$ sitemap.php
RewriteRule ^signup signup.php
#Error Pages
ErrorDocument 404 /view_page.php?pid=6
ErrorDocument 403 /view_page.php?pid=5
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
########## End - Rewrite rules For SEO urls ######################
RewriteRule ^rss$ rss.php [nc]

26
upload/403.php Normal file
View file

@ -0,0 +1,26 @@
<?php
/*
********************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
********************************************************************
*/
define("THIS_PAGE",'403');
require 'includes/config.inc.php';
if(file_exists(LAYOUT."/403.html")) {
template_files('403.html');
} else {
$file_name = "403.html";
$fh = fopen(LAYOUT."/".$file_name,'w');
$data = "<h2>403 Error</h2>\n";
$data .= "<p>Sorry, you cannot access this page.</p>";
fwrite($fh, $data);
fclose($fh);
template_files('403.html');
}
display_it();
?>

26
upload/404.php Normal file
View file

@ -0,0 +1,26 @@
<?php
/*
********************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
********************************************************************
*/
define("THIS_PAGE",'404');
require 'includes/config.inc.php';
if(file_exists(LAYOUT."/404.html")) {
template_files('404.html');
} else {
$file_name = "404.html";
$fh = fopen(LAYOUT."/".$file_name,'w');
$data = "<h2>404 Error</h2>\n";
$data .= "<p>Requested page not found.</p>";
fwrite($fh, $data);
fclose($fh);
template_files('404.html');
}
display_it();
?>

View file

@ -170,7 +170,7 @@ class cbsearch
tbl($this->db_tbl.'.*,users.userid,users.username').$add_select_field,
$query_cond." ".tbl($this->db_tbl).".userid=".tbl("users.userid")." AND ".tbl($this->db_tbl).".active='yes'",$this->limit,$sorting);
//echo $db->db_query;
$db->db_query;
//$db->db_query;
$this->total_results = $db->count(tbl($this->db_tbl),'*',$condition);
}else

View file

@ -1253,6 +1253,13 @@ class userquery extends CBCategory{
{
//Sending confirmation email
$tpl = $cbemail->get_template('password_reset_request');
if(!$udetails['avcode'])
{
$avcode = RandomString(10);
$db->update(tbl($this->dbtbl['users']),array('avcode'),array($avcode)," userid='".$udetails['userid']."'");
}
$more_var = array
('{username}' => $udetails['username'],
'{email}' => $udetails['email'],

View file

@ -8,7 +8,7 @@
{foreach from=$foot_menu item=fm}
{if $fm.name!=''}
<li><a href="{$fm.link}" {if $fm.target} target="{$fmtarget}"{/if} {if $fm.onclick} onclick="{$fm.onclick}" {/if}>{$fm.name}</a></li>
<li><a href="{$fm.link}" {if $fm.target} target="{$fm.target}"{/if} {if $fm.onclick} onclick="{$fm.onclick}" {/if}>{$fm.name}</a></li>
{/if}
{/foreach}
</ul>

View file

@ -171,7 +171,7 @@ var mid = {$smarty.get.mid};
function ToggleView(obj) {
var obj = $(obj),
obj_id = obj.attr('id');
obj_id = obj.attr('id'),
parent = obj.parent().attr('id'),
target = $("#"+parent).next().attr('id');
//alert('#'+parent+' #'+target+' .grid_view');