class DB_Connection {
var $conn = null;
var $debug = false;
var $num_query = 0;
var $error_msg = "";
var $affected_rows = 0;
function DB_Connection($host, $username, $pwd, $db) {
$this->Connect($host, $username, $pwd, $db);
}
function Connect($host, $username, $pwd, $db) {
global $db_use_persistent;
if ($db_use_persistent) {
$this->conn = mysql_pconnect($host, $username, $pwd);
}
else {
$this->conn = mysql_connect($host, $username, $pwd);
}
mysql_select_db($db, $this->conn);
}
function Execute($query) {
$query = trim($query);
$this->num_query++;
if ($this->debug) {
static $mysql_query_number;
static $mysql_query_time;
$mysql_query_number++;
$time_start = (float) array_sum(explode(' ', microtime()));
}
$result = @mysql_query($query, $this->conn);
if ($this->debug) {
$time_end = (float) array_sum(explode(' ', microtime()));
$time = $time_end - $time_start;
$time = sprintf("%01.4f", $time);
$mysql_query_time += $time;
$mysql_query_time = sprintf("%01.3f", $mysql_query_time);
if ($time > 1) {
$time = "$time [slow query]";
}
if (preg_match('/^select/i', $query)) {
$num_rows = @mysql_num_rows($result);
echo "
| QUERY #$mysql_query_number: | $query (result : $num_rows, time : $time) | $mysql_query_time |
";
}
else {
echo "| QUERY #$mysql_query_number: | $query (time : $time) | $mysql_query_time |
";
}
if (mysql_error()) {
echo "| ERROR : | ".mysql_error()." | $mysql_query_time |
";
}
}
$this->error_msg = mysql_error();
if ($this->error_msg) {
return false;
}
else {
if (preg_match("/^(update|insert|delete)/msi", $query)) {
$this->affected_rows = @mysql_affected_rows($this->conn);
return new DB_Resultset_empty();
}
else {
return new DB_Resultset($result, $query);
}
}
}
function PageExecute($query, $pg_which, $pg_size) {
if (!$pg_which) {
$pg_which = 1;
}
$query_total = $query;
if (!preg_match('/group by/msi', $query_total)) {
$query_total = preg_replace("|select(.*?)from|ms", "select count(*) as c from", $query_total);
}
$result = $this->Execute($query_total);
if (preg_match('/group by/msi', $query_total)) {
$num_rows = $result->RecordCount();
}
else {
$num_rows = ($result->Fields('c')) ? $result->Fields('c') : 0;
}
$start = ($pg_which - 1) * $pg_size;
$query = $query . " limit $start, $pg_size";
$result->Close();
$result = $this->Execute($query);
$result->num_rows = $num_rows;
return $result;
}
function InsertID() {
return @mysql_insert_id($this->conn);
}
function Close() {
return true;
}
function FetchArray($query) {
$result = $this->Execute($query);
$arr = array ();
while ($row = $result->FetchRow()) {
$arr[] = $row;
}
$result->Close();
return $arr;
}
function FetchOne($query) {
$result = $this->Execute($query . ' limit 1');
$row = $result->FetchRow();
$result->Close();
return $row;
}
function Lookup($field, $table, $where) {
$result = $this->Execute("select $field from $table where $where limit 1");
$value = $result->Fields($field);
$result->Close();
return $value;
}
function CountQuery() {
return $this->num_query;
}
function ErrorMsg() {
return $this->error_msg;
}
function AffectedRows() {
return $this->affected_rows;
}
}
class DB_Resultset {
var $resultset = null;
var $num_rows = null;
var $num_field = null;
var $current_row = null;
var $EOF = true;
var $query = null;
function DB_Resultset(&$resultset, $query = '') {
$this->resultset = $resultset;
$this->query = $query;
if (preg_match('/^select|show|describe|explain/msi', $query)) {
$this->MoveNext();
}
}
function RecordCount() {
if (is_null($this->num_rows)) {
$this->num_rows = @mysql_num_rows($this->resultset);
}
return $this->num_rows;
}
function FieldCount() {
if (is_null($this->num_field)) {
$this->num_field = mysql_num_fields($this->resultset);
}
return $this->num_field;
}
function FetchField($offset) {
$field = mysql_fetch_field($this->resultset, $offset);
$field->max_length = mysql_field_len($this->resultset, $offset);
return $field;
}
function MetaType($field_type) {
switch($field_type) {
case preg_match('/char/i', $field_type):
return 'C';
case preg_match('/int|float|double/i', $field_type):
return 'I';
case preg_match('/text/i', $field_type):
return 'X';
case preg_match('/blob/', $field_type):
return 'B';
default:
return '';
}
}
function Move($offset) {
if (@mysql_data_seek($this->resultset, $offset)) {
return $this->MoveNext();
}
else {
return false;
}
}
function MoveFirst() {
return $this->Move(0);
}
function MoveLast() {
return $this->Move($this->num_rows - 1);
}
function MoveNext() {
if ($row = @mysql_fetch_assoc($this->resultset)) {
$this->current_row = $row;
$this->EOF = false;
return true;
}
else {
$this->EOF = true;
return false;
}
}
function Fields($name) {
return $this->current_row[$name];
}
function FetchRow() {
if (!$this->EOF) {
$row = $this->current_row;
$this->MoveNext();
return $row;
}
else {
return false;
}
}
function Close() {
if ($this->resultset) {
mysql_free_result($this->resultset);
}
}
}
class DB_Resultset_empty {
var $resultset = null;
var $num_rows = null;
var $num_field = null;
var $current_row = null;
var $EOF = true;
var $query = null;
function DB_Resultset() {
return true;
}
function RecordCount() {
return 0;
}
function FieldCount() {
return 0;
}
function FetchField($offset) {
return false;
}
function MetaType($field_type) {
return false;
}
function Move($offset) {
return false;
}
function MoveFirst() {
return false;
}
function MoveLast() {
return false;
}
function MoveNext() {
return false;
}
function Fields($name) {
return false;
}
function FetchRow() {
return false;
}
function Close() {
return true;
}
}
$ADODB_SESS_CONN = null;
$ADODB_SESS_MD5 = false;
class DB_Session {
function Open($save_path, $session_name) {
global $ADODB_SESS_CONN, $dbServer, $dbHostname, $dbUsername, $dbPassword, $dbName;
//echo "open
";
if (is_null($ADODB_SESS_CONN)) {
$ADODB_SESS_CONN = new DB_Connection($dbHostname, $dbUsername, $dbPassword, $dbName);
}
return true;
}
function Close() {
global $ADODB_SESS_CONN;
//echo "close
";
if (!is_null($ADODB_SESS_CONN)) {
$ADODB_SESS_CONN->Close();
}
return true;
}
function Read($key) {
global $ADODB_SESS_CONN, $ADODB_SESS_MD5;
//echo "read
";
$data = '';
if ($ADODB_SESS_CONN) {
$query = "select data from idx_sessions where sesskey = '$key' AND expiry >= " . time();
$result = $ADODB_SESS_CONN->Execute($query);
if ($result->RecordCount()) {
$data = rawurldecode($result->Fields('data'));
}
$ADODB_SESS_MD5 = md5($data);
$result->Close();
}
return $data;
}
function Write($key, $data) {
global $ADODB_SESS_CONN, $ADODB_SESS_MD5;
//echo "write
";
if ($ADODB_SESS_CONN) {
$lifetime = ini_get('session.gc_maxlifetime');
if ($lifetime <= 1) {
$lifetime = 1440;
}
$expiry = time() + $lifetime;
if ($ADODB_SESS_MD5 !== false && $ADODB_SESS_MD5 == md5($data)) {
$query = "update idx_sessions set expiry = '$expiry' where sesskey = '$key'";
}
else {
$data = rawurlencode($data);
$query = "replace into idx_sessions (sesskey, expiry, data) values ('$key', '$expiry', '$data')";
}
$ADODB_SESS_CONN->Execute($query);
}
return true;
}
function Destroy($key) {
global $ADODB_SESS_CONN;
//echo "detroy
";
if ($ADODB_SESS_CONN) {
$query = "delete from idx_sessions where sesskey = '$key'";
$ADODB_SESS_CONN->Execute($query);
}
return true;
}
function GC($maxlifetime) {
global $ADODB_SESS_CONN;
//echo "gc
";
if ($ADODB_SESS_CONN) {
$query = "delete from idx_sessions where expiry < ".time();
$ADODB_SESS_CONN->Execute($query);
$query = "optimize table idx_sessions";
$ADODB_SESS_CONN->Execute($query);
}
return true;
}
function Init() {
//echo "init
";
session_module_name('user');
session_set_save_handler(
array('DB_Session', 'Open'),
array('DB_Session', 'Close'),
array('DB_Session', 'Read'),
array('DB_Session', 'Write'),
array('DB_Session', 'Destroy'),
array('DB_Session', 'GC')
);
}
}
DB_Session::Init();
?>
$western_chars['a'] = array('à','À','á','Á','â','Â','ã','Ã','Ä','ä','å','Å','æ','Æ');
$western_chars['i'] = array('ì','Ì','í','Í','î','Î','Ï','ï');
$western_chars['u'] = array('ù','Ù','ú','Ú','û','Û','Ü','ü');
$western_chars['e'] = array('è','È','é','É','ê','Ê','Ë','ë');
$western_chars['o'] = array('ò','Ò','ó','Ó','ô','Ô','õ','Õ','Ö','ö','œ','Œ','ø','Ø');
$western_chars['y'] = array('ý','Ý','Ÿ','ÿ');
$western_chars['n'] = array('ñ','Ñ');
$western_chars['d'] = array('ð','Ð');
$western_chars['c'] = array('ç','Ç');
?>
function smarty_resource_var_resource($tpl_name, &$tpl_source, &$smarty)
{
$tpl_source = $tpl_name;
return true;
}
function smarty_resource_var_timestamp($tpl_name, &$tpl_timestamp, &$smarty) {
$tpl_timestamp = null;
return true;
}
function smarty_resource_var_secure($tpl_name, &$smarty) {
return true;
}
function smarty_resource_var_trusted($tpl_name, &$smarty) {
return;
}
?>
function GetModRewriteStatus() {
global $base_path;
static $status = null;
if (is_null($status)) {
$lines = @file($base_path . ".htaccess");
$arr = explode(':',$lines[3]);
$status = trim($arr[1]);
}
return $status;
}
function GetModRewritePatternCategory() {
global $base_path;
static $pattern = null;
if (is_null($pattern)) {
$lines = @file($base_path . ".htaccess");
$arr = explode(':',$lines[4]);
$pattern = trim($arr[1]);
}
return $pattern;
}
function GetModRewritePatternDetail() {
global $base_path;
static $pattern = null;
if (is_null($pattern)) {
$lines = @file($base_path . ".htaccess");
$arr = explode(':',$lines[5]);
$pattern = trim($arr[1]);
}
return $pattern;
}
function GetModRewritePatternTag() {
global $base_path;
static $pattern = null;
if (is_null($pattern)) {
$lines = @file($base_path . ".htaccess");
$arr = explode(':',$lines[6]);
$pattern = trim($arr[1]);
}
return $pattern;
}
function WriteHtaccessToFile($status='', $category='', $detail='', $tag='') {
global $base_path;
if(empty($status)) {
$status = "0";
}
if(empty($category)) {
$category = 'browse/{$cat_id}/{$page}/{$cat_name}.html';
}
if(empty($detail)) {
$detail = 'detail/{$link_id}/{$link_title}.html';
}
if(empty($tag)) {
$tag = 'tag/{$tag}/more{$page}.html';
}
$comment_tag = '';
if ($status != 1) {
$comment_tag = '# ';
}
$htaccess_string = "# INDEXU-START\r\n\r\n";
$htaccess_string .= "# DO NOT CHANGE THE FOLLOWING LINES\r\n";
$htaccess_string .= "# status: " .$status. "\r\n";
$htaccess_string .= "# pattern_category: " .$category. "\r\n";
$htaccess_string .= "# pattern_detail: " .$detail. "\r\n";
$htaccess_string .= "# pattern_tag: " .$tag. "\r\n\r\n";
$htaccess_string .= "{$comment_tag}Options -MultiViews\r\n";
$htaccess_string .= "{$comment_tag}RewriteEngine On\r\n\r\n";
$htaccess_string .= GenerateHtaccessStringModrewriteDetail($detail, $comment_tag);
$htaccess_string .= GenerateHtaccessStringModrewriteTag($tag, $comment_tag);
$htaccess_string .= GenerateHtaccessStringModrewriteCategory($category, $comment_tag);
$htaccess_string .= "\r\n# INDEXU-END";
$htaccess_content = file_get_contents($base_path . ".htaccess");
preg_match('|# INDEXU-START.*?# INDEXU-END|msi', $htaccess_content, $match);
$htaccess_content = str_replace($match[0], $htaccess_string, $htaccess_content);
$filename = $base_path . ".htaccess";
$fp = fopen($filename, "w");
fwrite($fp, $htaccess_content);
fclose($fp);
}
function GenerateHtaccessStringModrewriteCategory($mod_rewrite_pattern, $comment_tag = '') {
if (strpos($mod_rewrite_pattern, '{$cat_path}') === FALSE) {
$array_var_pos = array();
$pos = strpos($mod_rewrite_pattern, '{$cat_id}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'cat_id';
}
$pos = strpos($mod_rewrite_pattern, '{$page}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'page';
}
$pos = strpos($mod_rewrite_pattern, '{$cat_name}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'cat_name';
}
ksort($array_var_pos);
$array_var_pos_values = array_values($array_var_pos);
foreach($array_var_pos_values as $key => $val) {
$ordered_pos[$val] = $key+1;
}
$mod_rewrite_pattern = str_replace('{$cat_id}','(.*)',$mod_rewrite_pattern);
$mod_rewrite_pattern = str_replace('{$cat_name}','(.*)',$mod_rewrite_pattern);
$mod_rewrite_pattern = str_replace('{$page}','(.*)',$mod_rewrite_pattern);
$out .= "{$comment_tag}RewriteRule ^{$mod_rewrite_pattern} browse.php?cat=\${$ordered_pos[cat_id]}&pg_which=\${$ordered_pos[page]}\r\n";
}
else {
$out .= "{$comment_tag}RewriteCond %{REQUEST_FILENAME} !-f\r\n";
$out .= "{$comment_tag}RewriteCond %{REQUEST_FILENAME} !-d\r\n";
$out .= "{$comment_tag}RewriteCond %{REQUEST_FILENAME} !-l\r\n";
$out .= "{$comment_tag}RewriteRule ^.* browse.php\r\n";
}
return $out;
}
function GenerateHtaccessStringModrewriteDetail($mod_rewrite_pattern, $comment_tag = '') {
$array_var_pos = array();
$pos = strpos($mod_rewrite_pattern, '{$link_id}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'link_id';
}
$pos = strpos($mod_rewrite_pattern, '{$link_title}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'link_title';
}
$pos = strpos($mod_rewrite_pattern, '{$cat_path}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'cat_path';
}
ksort($array_var_pos);
$array_var_pos_values = array_values($array_var_pos);
foreach($array_var_pos_values as $key => $val) {
$ordered_pos[$val] = $key+1;
}
$mod_rewrite_pattern = str_replace('{$link_id}','(.*)',$mod_rewrite_pattern);
$mod_rewrite_pattern = str_replace('{$link_title}','(.*)',$mod_rewrite_pattern);
$mod_rewrite_pattern = str_replace('{$cat_path}','(.*)',$mod_rewrite_pattern);
$out .= "{$comment_tag}RewriteRule ^{$mod_rewrite_pattern} detail.php?linkid=\${$ordered_pos[link_id]}\r\n";
return $out;
}
function GenerateHtaccessStringModrewriteTag($mod_rewrite_pattern, $comment_tag = '') {
$array_var_pos = array();
$pos = strpos($mod_rewrite_pattern, '{$tag}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'tag';
}
$pos = strpos($mod_rewrite_pattern, '{$page}');
if ($pos === false) { }
else {
$array_var_pos[$pos] = 'page';
}
ksort($array_var_pos);
$array_var_pos_values = array_values($array_var_pos);
foreach($array_var_pos_values as $key => $val) {
$ordered_pos[$val] = $key+1;
}
$mod_rewrite_pattern_orig = $mod_rewrite_pattern;
$mod_rewrite_pattern = str_replace('{$tag}','(.*)',$mod_rewrite_pattern);
$mod_rewrite_pattern = str_replace('{$page}','(.*)',$mod_rewrite_pattern);
$out .= "{$comment_tag}RewriteRule ^{$mod_rewrite_pattern} browsetag.php?tag=\${$ordered_pos[tag]}&pg_which=\${$ordered_pos[page]}\r\n";
$mod_rewrite_pattern = str_replace(strrchr($mod_rewrite_pattern_orig, '/'), '', $mod_rewrite_pattern_orig);
$mod_rewrite_pattern = str_replace('{$tag}', '(.*)', $mod_rewrite_pattern);
$out .= "{$comment_tag}RewriteRule ^{$mod_rewrite_pattern} browsetag.php?tag=\$1\r\n";
return $out;
}
?>
function SavePayment($user, $type, $detail, $amount, $time, $invoice_id = '', $email = '') {
global $dbConn;
$query = "insert into idx_payment_history
(contact_name, type, detail, amount, time, invoice_id, email)
values
('$user', '$type', '$detail', $amount, now(), $invoice_id, '$email')";
$result = $dbConn->Execute($query);
}
function UpgradeLink($id, $type, $day) {
global $dbConn, $base_path;
if ($type == 'PREMIUM') {
$premium = 1;
$sponsored = 0;
}
if ($type == 'SPONSORED') {
$premium = 0;
$sponsored = 1;
}
if ($type == 'PREMIUM' || $type == 'SPONSORED') {
if ($day != 'permanent') {
$days_extend = 3600 * 24 * $day;
}
// check if exist
$query = "select link_id, premium, sponsored, expire
from idx_paid_listing where link_id = '$id'";
$result = $dbConn->Execute($query);
if ($result->RecordCount() == 0) {
// create new record
if ($day != 'permanent') {
$expire = date('Y-m-d H:i:s', strtotime("+$days_extend seconds"));
}
else {
$expire = '2030-01-01 00:00:00';
}
$query = "insert into idx_paid_listing
(link_id, premium, sponsored, expire, paid)
values ('$id', '$premium', '$sponsored', '$expire', 1)";
$result = $dbConn->Execute($query);
}
else {
if ($day != 'permanent') {
// get expire time
$expire = $result->Fields("expire");
$curr_premium = $result->Fields("premium");
$curr_sponsored = $result->Fields("sponsored");
if ($curr_premium != $premium || $curr_sponsored != $sponsored) {
$expire = date('Y-m-d H:i:s');
}
if (time() < @strtotime($expire)) {
$expire = date('Y-m-d H:i:s', strtotime("$expire +$days_extend seconds"));
}
else {
$expire = date('Y-m-d H:i:s', strtotime("+$days_extend seconds"));
}
}
else {
$expire = '2030-01-01 00:00:00';
}
// update existing record
$query = "update idx_paid_listing
set expire = '$expire', premium = $premium, sponsored = $sponsored
where link_id = '$id'";
$result = $dbConn->Execute($query);
}
}
// activate link
$query = "update idx_link set suspended = 0 where link_id = '$id'";
$result = $dbConn->Execute($query);
// remove cache
@RemoveDir($base_path . 'cache');
}
function MarkAsPaid($id) {
global $dbConn;
$query = "update idx_invoice set paid = '1' where invoice_id = '$id'";
$result = $dbConn->Execute($query);
}
function GetPaymentSystems($model = 'radio') {
global $base_path, $id, $gateway;
$dir = $base_path . "payment/";
$files = array ();
if ($dir = @opendir($dir)) {
while (($file = readdir($dir)) !== false) {
$files[] = $path . $file;
}
}
closedir ($dir);
$i = 0;
$invoice_id = $id;
if (!$gateway) {
$checked = "checked=\"checked\"";
}
foreach ($files as $key => $value) {
if (substr($value, -8) == '.inc.php') {
include $base_path . "payment/" . $value;
$ps_name = str_replace('.inc.php','',$value);
if($i>0) {
$checked = '';
}
if ($enable == '1' || $model == 'raw') {
if ($model == 'radio') {
$ps_html = strip_tags($invoice_html,'
');
$ps_html = str_replace('
" . $ps_html;
}
else {
$ps .= " " . $ps_html;
}
}
if ($model == 'image') {
$ps .= $invoice_html;
}
if ($model == 'raw') {
$ps[$i]['name'] = $ps_name;
$ps[$i]['enable'] = $enable;
}
$i++;
}
}
}
return $ps;
}
function VerifyPaymentGateway($gateway) {
global $base_path;
$dir = $base_path . "payment/";
$files = array ();
if ($dir = @opendir($dir)) {
while (($file = readdir($dir)) !== false) {
if (substr($file, -8) == '.inc.php') {
$payments[] = str_replace('.inc.php', '', $file);
}
}
}
closedir ($dir);
if (!in_array($gateway, $payments)) {
RunPostFilter();
}
}
/* generate invoice id */
function GenerateInvoiceId(){
global $dbConn;
$exist = true;
while ($exist) {
mt_srand((double)microtime()*1000000);
$invoice_id = mt_rand();
$invoice_id = substr($invoice_id, -5, 5);
$query = "select invoice_id from idx_invoice where invoice_id = $invoice_id";
$result = $dbConn->Execute($query);
if($result->Fields('invoice_id')) {
$exist = true;
}
else {
$exist = false;
}
}
return $invoice_id;
}
/* UpdateUsageCoupon */
function UpdateUsageCoupon($val_coupon_code){
global $dbConn;
if ($val_coupon_code){
$query = "select * from idx_discount_coupon where coupon_code = '$val_coupon_code' and expired_usage == 1 ";
$result_coupon = $dbConn->Execute($query);
if ($result_coupon->Fields("expired_usage")>0){
$usage_total = $result_coupon->Fields("usage_count");
$usage_total++;
$query_update = "update idx_discount_coupon set usage_count='$usage_total' where coupon_code = '$val_coupon_code'";
$dbConn->Execute($query_update);
}
}
}
?>
/*===================================================
DO NOT CHANGE THIS FILE
UNLESS YOU KNOW WHAT YOU'RE DOING
===================================================*/
include dirname(__FILE__) . "/setting.php";
include dirname(__FILE__) . "/page_titles.php";
include dirname(__FILE__) . "/phrases.php";
$msg['00001'] = '';
$msg['00002'] = '';
$msg['00003'] = '<%$field_name%> : <%$field_value%>
';
$msg['00004'] = '
<%if $field_value != "'.$no_image_file.'"%>
<%/if%>
<%if $field_value != "'.$no_image_file.'"%>
Check to remove
<%/if%>
';
$msg['00005'] = '';
$msg['00006'] = '
<%if $field_value%>
<%$field_value%>
<%/if%>
<%if $field_value%>
Check to remove
<%/if%>
';
$msg['00007'] = '';
$msg['00008'] = '';
$msg['00009'] = ' /><%$field_text%> ';
$msg['00010'] = ' /><%$field_text%> ';
$msg['00011'] = '
';
$msg['00012'] = '
';
/*===================================================
index.php
===================================================*/
$msg['10001'] = '';
$msg['10002'] = '';
$msg['10003'] = '';
$msg['10004'] = '';
/*===================================================
browse.php
===================================================*/
$msg['10011'] = $lang['top'];
$msg['10012'] = '';
$msg['10013'] = '';
$msg['10014'] = 'd-M-Y';
$msg['10015'] = '';
$msg['10016'] = '';
/*===================================================
search.php
===================================================*/
$msg['10021'] = '';
$msg['10022'] = '';
$msg['10023'] = 'd-M-Y';
$msg['10024'] = $lang['keyword_at_least_3_char'];
$msg['10025'] = $lang['no_link_found'];
$msg['10026'] = '';
$msg['10027'] = '';
$msg['10028'] = 'd-M-Y';
/*===================================================
new.php
===================================================*/
$msg['10031'] = '%A, %B %#d %Y';
$msg['10032'] = '%#d-%b-%Y';
$msg['10033'] = $lang['jump_to'];
$msg['10034'] = $lang['new'];
/*===================================================
hot.php
===================================================*/
$msg['10041'] = 'd-M-Y';
$msg['10042'] = '';
$msg['10043'] = '';
$msg['10044'] = '';
/*===================================================
top_rated.php
===================================================*/
$msg['10051'] = 'd-M-Y';
$msg['10052'] = '';
$msg['10053'] = '';
$msg['10054'] = '';
/*===================================================
pick.php
===================================================*/
$msg['10061'] = 'd-M-Y';
$msg['10062'] = '';
$msg['10063'] = '';
$msg['10064'] = '';
/*===================================================
register.php
===================================================*/
$msg['10071'] = $lang['empty_username'];
$msg['10072'] = $lang['username_at_least_3_char'];
$msg['10073'] = $lang['empty_password'];
$msg['10074'] = $lang['empty_2nd_password'];
$msg['10075'] = $lang['both_password_not_same'];
$msg['10076'] = $lang['empty_email'];
$msg['10077'] = $lang['invalid_email_pattern'];
$msg['10078'] = $lang['username_already_exist'];
$msg['10079'] = $lang['invalid_parameter'];
$msg['10080'] = $lang['username_must_alphanumeric'];
$msg['10081'] = $lang['registration'] ;
$msg['10083'] = $lang['invalid_captcha_key'];
/*===================================================
login.php
===================================================*/
$msg['10091'] = $lang['empty_username'];
$msg['10092'] = $lang['username_at_least_3_char'];
$msg['10093'] = $lang['empty_password'];
$msg['10094'] = $lang['login_failed'];
/*===================================================
add.php
===================================================*/
$msg['10101'] = $lang['empty_title'];
$msg['10102'] = $lang['empty_url'];
$msg['10103'] = $lang['empty_description'];
$msg['10104'] = $lang['empty_contact_name'];
$msg['10105'] = $lang['empty_email'];
$msg['10106'] = $lang['invalid_email_pattern'];
$msg['10107'] = $lang['invalid_money_pattern'];
$msg['10108'] = $lang['empty_category'];
$msg['10119'] = $lang['invalid_reciprocal_url'];
$msg['10118'] = $lang['select_category_twice'];
$msg['10120'] = $lang['invalid_captcha_key'];
$msg['10521'] = $lang['duplicate_url_found'];
$msg['10522'] = $lang['coupon_msg_1'];
$msg['10523'] = $lang['coupon_msg_2'];
$msg['10524'] = $lang['coupon_msg_4'];
$msg['10525'] = $lang['coupon_msg_5'];
$msg['10528'] = $lang['coupon_msg_6'];
$msg['10526'] = $lang['coupon_msg_7'];;
$msg['10527'] = $lang['coupon_msg_3'];
/*===================================================
modify.php
===================================================*/
$msg['10121'] = $lang['empty_title'];
$msg['10122'] = $lang['empty_url'];
$msg['10123'] = $lang['empty_description'];
$msg['10124'] = $lang['empty_contact_name'];
$msg['10125'] = $lang['empty_email'];
$msg['10126'] = $lang['invalid_email_pattern'];
$msg['10127'] = $lang['invalid_money_pattern'];
$msg['10128'] = $lang['empty_password'];
$msg['10129'] = $lang['incorrect_password'];
$msg['10141'] = $lang['no_link_found'];
$msg['10142'] = 'd-M-Y';
$msg['10145'] = $lang['invalid_reciprocal_url'];
$msg['10146'] = $lang['empty_password'];
$msg['10147'] = $lang['incorrect_password'];
$msg['10148'] = $lang['invalid_link_id'];
$msg['10149'] = $lang['empty_category'];
$msg['10150'] = $lang['select_category_twice'];
/*===================================================
get_rated.php
===================================================*/
$msg['10151'] = 'd-M-Y';
$msg['10152'] = $lang['no_link_found'];
/*===================================================
detail.php
===================================================*/
$msg['10161'] = 'd-M-Y';
$msg['10162'] = '';
$msg['10163'] = '';
/*===================================================
rating.php
===================================================*/
$msg['10171'] = $lang['rating_twice'];
$msg['10172'] = $lang['rating_failed'];
$msg['10173'] = $lang['rating_success'];
/*===================================================
review.php
===================================================*/
$msg['10181'] = $lang['empty_subject'];
$msg['10182'] = $lang['empty_rating'];
$msg['10183'] = $lang['empty_review'];
$msg['10184'] = $lang['empty_email'];
$msg['10185'] = $lang['invalid_email_pattern'];
$msg['10186'] = $lang['empty_your_name'];
$msg['10187'] = $lang['invalid_captcha_key'];
/*===================================================
tell_friend.php
===================================================*/
$msg['10201'] = $lang['empty_your_name'];
$msg['10202'] = $lang['empty_your_email'];
$msg['10203'] = $lang['invalid_email_pattern'];
$msg['10204'] = $lang['empty_friend_name'];
$msg['10205'] = $lang['empty_friend_email'];
$msg['10206'] = $lang['invalid_captcha_key'];
/*===================================================
become_editor.php
===================================================*/
$msg['10226'] = $lang['request_become_editor_error'];
$msg['10227'] = $lang['request_become_editor_admin'];
$msg['10228'] = $lang['category_not_exist'];
/*===================================================
bad_link.php
===================================================*/
$msg['10231'] = $lang['invalid_email_pattern'];
$msg['10232'] = $lang['invalid_captcha_key'];
/*===================================================
mailing_list.php
===================================================*/
$msg['10251'] = $lang['empty_email'];
$msg['10252'] = $lang['invalid_email_pattern'];
$msg['10253'] = $lang['email_already_exist'];
$msg['10254'] = $lang['email_not_exist'];
/*===================================================
send_pwd.php & sendmail.php
===================================================*/
$msg['10281'] = $lang['empty_username'];
$msg['10282'] = $lang['empty_email'];
$msg['10283'] = $lang['invalid_email_pattern'];
$msg['10284'] = $lang['account_not_found'];
$msg['10285'] = $lang['invalid_captcha_key'];
/*===================================================
user_search.php
===================================================*/
$msg['10291'] = 'd-M-Y';
/*===================================================
user_detail.php
===================================================*/
$msg['10301'] = 'd-M-Y';
/*===================================================
upload process
===================================================*/
$msg['10314'] = $lang['image_too_wide'];
$msg['10315'] = $lang['image_too_high'];
$msg['10317'] = $lang['file_extension_not_allowed'];
$msg['10320'] = $lang['file_too_big'];
/*===================================================
remove_img.php
===================================================*/
$msg['10321'] = $lang['empty_password'];
$msg['10322'] = $lang['incorrect_password'];
/*===================================================
claim.php
===================================================*/
$msg['10341'] = $lang['empty_username'];
$msg['10342'] = $lang['username_at_least_3_char'];
$msg['10343'] = $lang['empty_password'];
$msg['10344'] = $lang['username_must_alphanumeric'];
$msg['10345'] = $lang['incorrect_password'];
$msg['10346'] = $lang['username_not_exist'];
/*===================================================
custom field required check
===================================================*/
$msg['10350'] = $lang['custom_field_required'];
/*===================================================
reset_pwd.php
===================================================*/
$msg['10361'] = $lang['invalid_captcha_key'];
$msg['10362'] = $lang['empty_password'];
$msg['10363'] = $lang['empty_2nd_password'];
$msg['10364'] = $lang['both_password_not_same'];
/*===================================================
suggest_category.php
===================================================*/
$msg['10371'] = $lang['empty_category_name'];
$msg['10373'] = $lang['invalid_captcha_key'];
/*===================================================
USER PANEL SECTION
===================================================*/
/*===================================================
index.php
===================================================*/
$msg['20001'] = 'd-M-Y';
/*===================================================
profile.php
===================================================*/
$msg['20021'] = $lang['empty_email'];
$msg['20022'] = $lang['invalid_email_pattern'];
$msg['20023'] = $lang['empty_name'];
/*===================================================
change_pwd.php
===================================================*/
$msg['20031'] = $lang['empty_current_password'];
$msg['20032'] = $lang['empty_new_password'];
$msg['20033'] = $lang['empty_2nd_new_password'];
$msg['20034'] = $lang['both_new_password_not_same'];
$msg['20035'] = $lang['incorrect_password'];
/*===================================================
favorite_add.php
===================================================*/
$msg['20051'] = 'd-M-Y';
$msg['20061'] = $lang['favorite_link_already_exist'];
/*===================================================
favorite_edit.php
===================================================*/
$msg['20071'] = $lang['empty_favorite_title'];
/*===================================================
favorite_create.php
===================================================*/
$msg['20081'] = $lang['empty_favorite_title'];
/*===================================================
favorite_view.php
===================================================*/
$msg['20101'] = 'd-M-Y';
$msg['20102'] = 'd-M-Y';
/*===================================================
editor_validate_link.php
===================================================*/
$msg['20111'] = 'd-M-Y';
$msg['20121'] = '<%$title%> .... '.$lang['approved'].'
';
$msg['20122'] = $lang['no_link_approved_rejected'];
$msg['20123'] = '<%$title%> .... '.$lang['rejected'].'
';
$msg['20131'] = $lang['resource_approved'];
$msg['20133'] = $lang['link_approved'];
$msg['20135'] = $lang['resource_rejected'];
$msg['20137'] = $lang['link_rejected'];
/*===================================================
editor_link_delete.php
===================================================*/
$msg['20141'] = '<%$title%> .... '.$lang['deleted'].'
';
$msg['20142'] = $lang['no_link_deleted'];
/*===================================================
editor_link_edit.php
===================================================*/
$msg['20151'] = $lang['empty_title'];
$msg['20152'] = $lang['empty_url'];
$msg['20153'] = $lang['empty_description'];
$msg['20154'] = $lang['empty_contact_name'];
$msg['20155'] = $lang['empty_email'];
$msg['20156'] = $lang['invalid_email_pattern'];
$msg['20157'] = $lang['invalid_money_pattern'];
$msg['20158'] = $lang['empty_category'];
/*===================================================
editor_review_validate.php
===================================================*/
$msg['20161'] = '<%$title%> .... '.$lang['approved'].'
';
$msg['20162'] = $lang['no_review_approved_rejected'];
$msg['20163'] = '<%$title%> .... '.$lang['rejected'].'
';
$msg['20164'] = 'd-M-Y';
/*===================================================
editor_link_bad.php
===================================================*/
$msg['20171'] = 'd-M-Y';
/*===================================================
editor_link_bad_delete.php
===================================================*/
$msg['20181'] = '<%$title%> .... '.$lang['deleted'].'
';
$msg['20182'] = $lang['no_report_deleted'];
/*===================================================
mylisting.php
===================================================*/
$msg['20191'] = $lang['payment_error'];
?>