File "msg.php"
Full Path: /home/ichhrkpd/public_html/application/language/msg.php
File size: 7.38 KB
MIME-type: text/x-php
Charset: utf-8
<?php
class msg {
static $model=array();
static $controller=array();
static $system=array();
function GetSysMsg($str){
$str=strtolower($str);
if(count(msg::$system)==0){
msg::$system['s001']="This is a test";
msg::$system['s002']="Model is not configured";
msg::$system['s003']="No change for update.";
msg::$system['s004']="Value is not set for insert";
msg::$system['s005']="We are not support the country";
msg::$system['s006']="You can not %s the Transaction History";
msg::$system['s007']="You can not %s the cdr information";
msg::$system['s008']="%s user session expired";
msg::$system['s009']="No Information found to Save";
msg::$system['s010']="Sorry! This Password Reset Link has expired!";
msg::$system['s011']="";
}
return !empty(msg::$system[$str])?msg::$system[$str]:"Message is not found.";
}
function GetModelMsg($str){
$str=strtolower($str);
if(count(msg::$model)==0){
msg::$model['m001']="This is a test";
msg::$model['m002']="User Name or Password is Incorrect";
msg::$model['m003']="This password already exits for this user";
msg::$model['m004']="Incorrect Agent ID or Password";
msg::$model['m005']="Technical Error: Merchant Update failed...";
msg::$model['m006']="PIN already exist in the cid2pin";
msg::$model['m007']="Reffer is not found in database";
msg::$model['m008']="Referrer is not found";
msg::$model['m009']="Referrer country is not same.";
msg::$model['m010']="Update is not successfull";
msg::$model['m011']="DID Data is not found.";
msg::$model['m014']="Error! Data Can't Save";
msg::$model['m015']="Error! Referrer profile update failed.";
msg::$model['m016']="Promouser is not found";
msg::$model['m017']="User Country is not found";
msg::$model['m018']="Staff Information not found.";
msg::$model['m019']="Sorry, you can not recharge within 24 hours of your signing up time.";
msg::$model['m020']="Delete is not possible";
msg::$model['m021']="Successfully Updated.";
msg::$model['m022']="%s Successfully Updated.";
msg::$model['m023']="No Transaction Details Found!";
msg::$model['m024']="Account Phone Change is not Successful!";
msg::$model['m025']="%s is incorrect!";
msg::$model['m026']="This Account Phone is not Active for Recharge!";
msg::$model['m027']="Merchant Balance ( %s ) is not Sufficient for this Amount!";
msg::$model['m028']="%s Transfer Failed!";
msg::$model['m029']="%s Backtrack Error!";
msg::$model['m030']="Amount %s transferred to your account.";
msg::$model['m031']="Selected Group Member(s) Added Successfully!";
msg::$model['m032']="Failed to Import Member!";
msg::$model['m033']="Selected Member(s) Added Successfully";
msg::$model['m034']="Failed to Add Selected Member(s)!";
msg::$model['m035']="Recharge amount exceeded maximum allowed limit";
msg::$model['m036']="Offer Gained Transfer Failed!";
msg::$model['m037']="There is a error..";
msg::$model['m038']="This Account Phone Number does not %s!";
msg::$model['m039']="%s is empty";
msg::$model['m040']="Amount is invalid";
msg::$model['m041']="Card information is not found";
msg::$model['m042']="Merchant Account Phone or Auth Code or Staff Password Incorrect";
}
return !empty(msg::$model[$str])?msg::$model[$str]:"Message is not found.";
}
function GetControllerMsg($erroeCode){
$str=strtolower($erroeCode);
if(count(msg::$controller)==0){
msg::$controller['c001']="User Name or Password Incorrect";
msg::$controller['c002']="This password already exist for this user";
msg::$controller['c003']="Account Phone Number or Password Incorrect";
msg::$controller['c004']="Phone Number is not Found.";
msg::$controller['c005']="Please confirm first.";
msg::$controller['c006']="Ethnicity Field is Empty.";
msg::$controller['c007']="Track Field is Empty.";
msg::$controller['c008']="Name or Phone Password or Web Password Empty.";
msg::$controller['c009']="Phone Password Mismatched.";
msg::$controller['c010']="Web Password Mismatched.";
msg::$controller['c011']="Saved successfully";
msg::$controller['c012']="%s saved successfully";
msg::$controller['c013']="Auto Recharge is disabled successfully";
msg::$controller['c014']="Auto Recharge setup already in processing";
msg::$controller['c015']="Please Contact With the support team";
msg::$controller['c016']="Sorry, you cannot recharge within 24 hours of your signing up time.";
msg::$controller['c017']="Sorry, you cannot recharge now. <br .>Please contact gTalk customer support.";
msg::$controller['c018']="Please Fill all the Fields!";
msg::$controller['c019']="Same %s Name Exist!";
msg::$controller['c020']="%s is successfull";
msg::$controller['c021']="%s Saving Failed!";
msg::$controller['c022']="%s Field Empty!";
msg::$controller['c023']="%s does not Numeric!";
msg::$controller['c024']="%s Process Failed!";
msg::$controller['c025']="Amount can not be zero";
msg::$controller['c026']="Card Data is not found";
msg::$controller['c027']="%s is required";
msg::$controller['c028']="Balance is less than zero if deduct the amount %s.";
msg::$controller['c029']="Balance Deduct is successfull";
msg::$controller['c030']="%s is Same!";
msg::$controller['c031']="%s does not Match!";
msg::$controller['c032']="%s Balance is not Sufficient!";
msg::$controller['c033']="From Step %s :Session Expired.";
msg::$controller['c034']="%s Information Not Found!";
msg::$controller['c035']="%s is not Same!";
msg::$controller['c036']="Amount %s transferred to your account.";
msg::$controller['c037']="Transfer amount is larger than %s!";
msg::$controller['c038']="Failed to send your request!";
msg::$controller['c039']="Your request has been sent successfully.";
msg::$controller['c040']="Failed to send Email!";
msg::$controller['c041']="Your message has been sent to gTalk Pinless.";
msg::$controller['c042']="Your message has been sent to %s";
msg::$controller['c043']="Your new temporary password has been sent to your email address.";
msg::$controller['c044']="Sorry! Password Recovery Process Failed!";
msg::$controller['c045']="User Email Address is not valid.";
msg::$controller['c046']="No Custom Group Selected to Add!";
msg::$controller['c047']="No user found in the selected %s";
msg::$controller['c048']="Your message has been sent to %s user(s)";
msg::$controller['c049']="%s is not found or error";
msg::$controller['c050']="Transfer amount is Negetive";
msg::$controller['c051']="%s Already Exist!";
msg::$controller['c052']="Sorry, you cannot recharge now. <br/>This account is <span class='inactive' style='font: bold 24px \"Trebuchet MS\",Arial,Helvetica,sans-serif;'>inactive</span>.";
}
return !empty(msg::$controller[$erroeCode])?msg::$controller[$erroeCode]:"Message is not found.";
}
function GetMsg(){
$parm=func_get_args();
$returnStr="";
$f=strtolower($parm[0][0]);
$errorCode=$parm[0];
if($f=='c'){
$returnStr= $this->GetControllerMsg(strtolower($errorCode));
}elseif($f=='m'){
$returnStr= $this->GetModelMsg(strtolower($errorCode));
}
elseif($f=='s'){
$returnStr= $this->GetSysMsg(strtolower($errorCode));
}else{
$returnStr=$parm[0];
}
$parm[0]=$returnStr;
return call_user_func_array("sprintf",$parm);
}
}