| } function foot(){ global $script_name; ?> |
function check_feature($redirect){ global $script_name; //check if paid plan $feature = getrs("select default_feature.feature, plan_feature.plan_id from default_feature, plan_feature where default_feature.feature_id=plan_feature.feature_id and default_feature.url='".fixstr($script_name)."'"); if($feature){ $user_plan_id = getnum("select user_plan_id as num from user_plan where status='Active' and user_id=".fixint($_SESSION["user_id"])." and plan_id=".fixint($feature["plan_id"])); if($user_plan_id>0){ } else { redirect(vpath."member/account.php?plan_id=".$feature["plan_id"]."&feature=".$feature["feature"]); } } } function GetCountryCode($country_name){ $sql = "select country_code from country where country_name='".fixstr($country_name)."'"; $res1 = mysql_query($sql); $rs1 = mysql_fetch_array($res1); return $rs1["country_code"]; } function GetCountryName($country_code){ $sql = "select country_name from country where country_code='".fixstr($country_code)."'"; $res1 = mysql_query($sql); $rs1 = mysql_fetch_array($res1); return $rs1["country_name"]; } function get_folder_id($photo){ $id = $photo; $id = str_replace(".jpg", "", strtolower($id)); $id = str_replace(".png", "", strtolower($id)); $id = str_replace(".gif", "", strtolower($id)); $id = str_replace(".bmp", "", strtolower($id)); $id = str_replace("s_", "", strtolower($id)); if($id<10){ $folder_id = $id; } else { $folder_id = left($id, 2); } return $folder_id; } function getpartialbody($org_str, $len){ $str = strip_tags($org_str); $org_len = strlen($str); if ($org_len>$len){ $str = substr($str, 0, $len); $last_point = strrpos($str, "."); $str = substr($str, 0, $last_point); } if ($str==""){ $str = substr($org_str, 0, $len); $last_point = strrpos($str, " "); $str = substr($str, 0, $last_point); $str .= ".."; } if($str!="") $str .= ". "; //$str = left($org_str, $len); return $str; } function fixchar($str){ $str = preg_replace("/[^a-zA-Z0-9\s]/", "", $str); return $str; //if(ereg('^[-A-Za-z0-9_]', $str)){ // return $str; //} else { // return ""; //} } function lang($str){ return $str; } function WriteSelected($str1, $str2){ if ($str1 == $str2) { return "selected"; } } function notification_set($msg=''){ $_SESSION['message']=trim($msg); } function notification_get($clss='success'){ $message=$_SESSION['message']; notification_set(); if($message==""){ return ''; }else{ return "
|
| $url = "message_outbox.php"; ?> |
| if (feature_quick_search ){ $url = "search.php"; } else { $url = "javascript:alert('You do not have acccess to this feature. Please go to My Account and upgrade your plan.')"; } ?> | if (feature_detailed_search){ $url = "search_detail.php"; } else { $url = "javascript:alert('You do not have acccess to this feature. Please go to My Account and upgrade your plan.')"; } ?> |
| "> |
">=left($rs["name"], 15)?>
=$rs["child"]?> members. |