ขั้นตอนการติดตั้ง PhPMyPrepaid
Download hpMyAdmin0.3.2RC.tar.gz เก็บไว้ที่
cd /var/www/htmlแตก filetar –xzvf hpMyAdmin0.3.2RC.tar.gz
cd phpMyadmin
(1) แก้ไข File dbconnect.php
เมื่อทำการติดตั้งเสร็จก็ทำการ Brows Website ไปที่ https://localhost/phpmyprepaid เสร็จก็เราก็จะได้ Table ใน Database ครบทุก Filed โดย Brows ไปที่ https://localhost/phpMyAdmin เราก็จะเห็น Table ใน Database ดังนี้

(2) แก้ไข File Disconnect

(3) แก้ไข File Userdisconnect

Brows Website ไปที่ https://localhost/phpmyprepaid แล้ว Create UserName Password ของ Admin หลังจากนั้นก็ทำการ Login เข้าสู่ระบบ

File dbconnect.php
$my_host="localhost";
$my_user="root"; เป็น user name ที่เข้าไปจัดการ da
$my_pass="mysqlradius"; เป็น password ที่เข้าไปจัดการ da
$my_dbase="radius";
$connect=mysql_connect($my_host, $my_user, $my_pass);
$db=mysql_select_db($my_dbase);
if ($db=!1 or $connect==NULL) $buttonID="badconfigmysql";
?>
File body.php จาก code
//////////////////////////////////////////////////////////
// Include whatever button was pressed. //
// not the best way of doing this but it works //
//////////////////////////////////////////////////////////
if((!isset($button)) && isset($_SESSION['button'])){
$buttonID = $_SESSION['button'];
}
ให้แก้เป็น
//////////////////////////////////////////////////////////
// Include whatever button was pressed. //
// not the best way of doing this but it works //
//////////////////////////////////////////////////////////
if ( isset($_POST['buttonID'])) {
$buttonID = $_POST['buttonID'];
} elseif((!isset($button)) && isset($_SESSION['button'])){
$buttonID = $_SESSION['button'];
}
******************************************
No comments:
Post a Comment