PDA

View Full Version : [TLBB] Mong HD và các bạn Share Source Web dùm cho Billing Win



Phamhuys
25-02-12, 04:58 PM
Hiện giờ đa số là chạy Server 4 lỗ dùm billing Win

Mong HD và các bạn nào có Source web TLBB dùm cho Billing Win

Rất cám ơn HD và mọi người

huuduyen_05
25-02-12, 10:35 PM
Thực ra billing win thì quản lý acc trên mysql khác với billing linux.
Do đó phần web cũng chỉ là biến đổi từ dạng thức kết nối với oracle thành mysql.
Tạm thời share source code file reg_do.php dùng cho skin cũ theo web kiểu mình code.
Khi nào rãnh sẽ share bộ web mình. Nếu có bạn nào share trước thì mình thôi share :D vì skin hơi bị xấu.



<?php

if (strtoupper($_SERVER['REQUEST_METHOD'])!= "POST") {
require_once('../header.php');
echo "
<tr class=\"bodyBottom\" height=\"100%\">
<td colspan=\"2\" width=\"100%\" valign=\"top\">
<div>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">
<tbody><tr class=\"bodyBottom\">
<td width=\"80\"></td>
<td align=\"left\" valign=\"top\">
<table id=\"ctl00_PSPContent_wzdSignUp\" style=\"width: 100%; border-collapse: collapse;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr style=\"height: 100%;\">
<td>
<!-- BEGIN CONTENT -->
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"690\">
<tbody><tr>
<td align=\"center\">
<!-- -->
<table border=\"0\" cellpadding=\"3\" cellspacing=\"2\" width=\"90%\">
<tbody><tr>
<td class=\"title\" align=\"left\">ĐĂNG KÍ TÀI KHOẢN TLBB</td>
</tr>
</tbody></table>
<!---->
<!--BEGIN Notice-->
<fieldset style=\"width: 90%;\">
<legend><b>Thông báo trong quá trình đăng kí</b></legend>
<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"95%\">
<tbody><tr><td colspan=\"2\" height=\"10\"></td></tr>

<tr>
<td align=\"left\" width=\"100%\" nowrap=\"nowrap\">

<br>

Kết nối với máy chủ bị lỗi ! <br>";
}
else
{
Session_start();
$no=$_SESSION['number'];

if($_POST['ctl00$PSPContent$wzdSignUp$txtVerify']!=$no)
{
require_once('../header.php');
echo "

<tr class=\"bodyBottom\" height=\"100%\">
<td colspan=\"2\" width=\"100%\" valign=\"top\">
<div>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">
<tbody><tr class=\"bodyBottom\">
<td width=\"80\"></td>
<td align=\"left\" valign=\"top\">
<table id=\"ctl00_PSPContent_wzdSignUp\" style=\"width: 100%; border-collapse: collapse;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody><tr style=\"height: 100%;\">
<td>
<!-- BEGIN CONTENT -->
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"690\">
<tbody><tr>
<td align=\"center\">
<!-- -->
<table border=\"0\" cellpadding=\"3\" cellspacing=\"2\" width=\"90%\">
<tbody><tr>
<td class=\"title\" align=\"left\">ĐĂNG KÍ TÀI KHOẢN TLBB</td>
</tr>
</tbody></table>
<!---->
<!--BEGIN Notice-->
<fieldset style=\"width: 90%;\">
<legend><b>Thông báo trong quá trình đăng kí</b></legend>
<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"95%\">
<tbody><tr><td colspan=\"2\" height=\"10\"></td></tr>

<tr>
<td align=\"left\" width=\"100%\" nowrap=\"nowrap\">

<br>

<center>Nhập mã xác nhận không đúng
<br><a href=\"#\" title=\"\" alt=\"\" onclick=\"javascript:history.go(-1)\">Quay về trang trước</a></center>";

}
else
{


require_once('../header.php');
?>


<tr class="bodyBottom" height="100%">
<td colspan="2" width="100%" valign="top">
<div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tbody><tr class="bodyBottom">
<td width="80"></td>
<td align="left" valign="top">
<table id="ctl00_PSPContent_wzdSignUp" style="width: 100%; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
<tbody><tr style="height: 100%;">
<td>
<!-- BEGIN CONTENT -->
<table border="0" cellpadding="0" cellspacing="0" width="690">
<tbody><tr>
<td align="center">
<!-- -->
<table border="0" cellpadding="3" cellspacing="2" width="90%">
<tbody><tr>
<td class="title" align="left">ĐĂNG KÍ TÀI KHOẢN TLBB</td>
</tr>
</tbody></table>
<!---->
<!--BEGIN Notice-->
<fieldset style="width: 90%;">
<legend><b>Thông báo trong quá trình đăng kí</b></legend>
<table border="0" cellpadding="1" cellspacing="1" width="95%">
<tbody><tr><td colspan="2" height="10"></td></tr>

<tr>
<td align="left" width="100%" nowrap="nowrap">

<br>
<?


include ("anti_sql.php");
//echo "<center>Nhập mã xác nhận chính xác. </center> <br>";
$account = cleanx(strtolower($_POST['ctl00$PSPContent$wzdSignUp$txtEmail']));
$pasword = $_POST['ctl00$PSPContent$wzdSignUp$txtPassword'];
$email = cleanx($_POST['ctl00$PSPContent$wzdSignUp$txtREmail']);
$question = cleanx($_POST['ctl00$PSPContent$wzdSignUp$ddlQSecret']);
$answer = cleanx($_POST['ctl00$PSPContent$wzdSignUp$txtASecret']);


//chuyen pass sang dang md5
$pass_md5 = md5($pasword);
$answer_md5 = md5($answer);
//


//lien ket file ket noi voi oracle
require_once('../include/global.php');
//
if (!ValidData($account) || !ValidData($pasword) || !ValidData($answer)) {
EndOfPage('Tài khoản hoặc mật khẩu không hợp lệ');
}

require_once('../include/config_mysql.php');
include_once('../include/class2.php');

$tlbb_web_win = new DB2($db_host, $db_user, $db_pwd, $web_account, $pconnect);


// Kiem tra tai khoan da duoc su dung chua
$query = "
SELECT name
FROM account
WHERE name = '$account'
";
$check = $tlbb_web_win->query($query);
$count = $tlbb_web_win->num_rows($check); //tra ve != 0 neu trung tai khoan

//tai khoan da dc su dung
if ($count != 0) {
EndOfPage('Tên đăng nhâp này đã có người sử dụng.<br/>Bạn hãy chọn tên khác !');
}
else {

//Kiem tra email da duoc su dung chua
$query = "
SELECT email
FROM account
WHERE email = '$email'
";
$check = $tlbb_web_win->query($query);
$count = $tlbb_web_win->num_rows($check); //tra ve != 0 neu trung email
if ($count != 0) {
EndOfPage('Email này đã có người sử dụng.<br/>Bạn hãy chọn email khác !');
}
else {
//OK --> tien hanh add vao db



$date = date('Y-m-d H:i:s');
//add data vao table

$query = "
INSERT INTO account
(name, password, question, answer, email, date, ip)
VALUES
('$account','$pass_md5', '$question', '$answer_md5', '$email', '$date', '$REMOTE_ADDR')
";
$check = $tlbb_web_win->query($query);
$tlbb_web_win->close();//close mysql



//thong bao dang ki thanh cong
echo
"
<div><table align=center>
<tr align=center><td colspan =2>
<b>Chúc mừng, bạn đã đăng kí tài khoản thành công !!</b>
</td></tr>

<tr><td>Tên đăng nhập: </td>
<td> $account </td>
</tr>
<tr><td>
Mât khẩu: </td>
<td> ****** </td>
</tr>
<tr><td>
Email: </td> <td> $email </td>
</tr>
<tr><td>
Mã số câu hỏi bí mật: </td><td>$question </td>
</tr>
<tr><td>
Câu trả lời: </td><td> ****** </td>
</tr>
<tr><td>
Ngày đăng kí: </td><td>$date </td>
</tr>
<tr><td>
Địa chỉ IP: </td><td>$REMOTE_ADDR </td>
</tr>
<tr>
<td>
<br>
Tự chuyển đến trang cập nhât thông tin mật khẩu cấp 2..

<br>
Click <a href=\"pass2.php\">vào đây</a> nếu trình duyệt không tự động chuyển.</center>

</td>
</tr>
</table></div>
";

}// ok add vao db - email ko trung
}// ok account ko trung
//free statement id
// oci_free_statement($st);
//oci_close($conn); //ket thuc ket noi voi oracle

}//nhap ma xac nhan ok


}//ket noi may chu


function EndOfPage($ErrMsg)
{
ErrorBox($ErrMsg);
echo "</td></tr><tr><td colspan=\"2\" height=\"10\"></td></tr></tbody></table>
</fieldset></td></tr></tbody></table> </td>
</tr><tr>
<td align=\"right\"></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div> ";

require_once('../footer.php');

die(0);
}

?>

</td>
</tr>



<tr><td colspan="2" height="10"></td></tr>
</tbody></table>
</fieldset>
<!--END Notice-->
</td>
</tr>
</tbody></table>
<!-- END CONTENT -->
</td>
</tr><tr>
<td align="right"></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>




<?php
session_destroy();
require_once('../footer.php');
?>

Phamhuys
25-02-12, 10:46 PM
Cám ơn HD rất nhiều..................

HD có thể thì bạn share source web của bạn dc ko. Mình ko quan trọng Skin đẹp hay xấu.

( Mình đang cần source quản lí web cho billing Win như web quan li Billing Linux )

Thật sự là mình ko hiểu gì về thiết kế web nên ko thể tự mày mò dc. Phải nhờ đến sự giúp đỡ của mọi người và HD

vippro0
26-02-12, 02:41 PM
Cám ơn HD rất nhiều..................

HD có thể thì bạn share source web của bạn dc ko. Mình ko quan trọng Skin đẹp hay xấu.

( Mình đang cần source quản lí web cho billing Win như web quan li Billing Linux )

Thật sự là mình ko hiểu gì về thiết kế web nên ko thể tự mày mò dc. Phải nhờ đến sự giúp đỡ của mọi người và HD

- Mọi người ai có lòng hảo tâm :"> :x mình xin tks :x