|
@@ 397-408 (lines=12) @@
|
| 394 |
|
array_to_csv($inbound_array, 'Rates_' . date("Y-m-d") . '.csv'); |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
function user_refill($action = "") { |
| 398 |
|
if (common_model::$global_config['system_config']['paypal_status'] == 1) { |
| 399 |
|
redirect(base_url() . 'user/user/'); |
| 400 |
|
} |
| 401 |
|
$this->load->module("user/refill"); |
| 402 |
|
if ($action == "GET_AMT") { |
| 403 |
|
$amount = $this->input->post("value", true); |
| 404 |
|
$this->refill->convert_amount($amount); |
| 405 |
|
} else { |
| 406 |
|
$this->refill->index(); |
| 407 |
|
} |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
function user_convert_amount($amount) { |
| 411 |
|
$amount = $this->common_model->add_calculate_currency($amount, "", "", false, false); |
|
@@ 1531-1542 (lines=12) @@
|
| 1528 |
|
$this->load->helper('csv'); |
| 1529 |
|
array_to_csv($customer_array, 'Customer_CDR_' . date("Y-m-d") . '.csv'); |
| 1530 |
|
} |
| 1531 |
|
function user_payment($action=""){ |
| 1532 |
|
if(common_model::$global_config['system_config']['paypal_status'] == 1){ |
| 1533 |
|
redirect(base_url() . 'user/user/'); |
| 1534 |
|
} |
| 1535 |
|
$this->load->module("user/payment"); |
| 1536 |
|
if($action=="GET_AMT"){ |
| 1537 |
|
$amount = $this->input->post("value",true); |
| 1538 |
|
$this->payment->convert_amount($amount); |
| 1539 |
|
}else{ |
| 1540 |
|
$this->payment->index(); |
| 1541 |
|
} |
| 1542 |
|
} |
| 1543 |
|
|
| 1544 |
|
function user_fund_transfer(){ |
| 1545 |
|
$data['page_title'] = 'Fund Transfer'; |