I already make a new page named "service.php" to my oscommerce website.
I wanna only one member, who called "technician", can access that page (service.php).
Now, the "service.php" page can be accessed by all members in my website.
Where codes I must edit?
In my database, table customers, the "technician" member has customer_id = 1PHP Code:<?php
require('includes/application_top.php');
require('includes/metaqueries.php');
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SERVICE);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SERVICE));
?>
should I change 'customer_id' in the code above with 1 or ??
Any help would be greatly appreciated!
Thanks!![]()





LinkBack URL
About LinkBacks










Bookmarks