Removed direct references to $_REQUEST and $_POST
This commit is contained in:
@@ -19,10 +19,10 @@ class Controller_Reseller_Adsl extends Controller_Adsl {
|
||||
* Reconcile billing for an ADSL supplier
|
||||
*/
|
||||
public function action_billing() {
|
||||
if (empty($_POST['sid']) OR ! $_FILES)
|
||||
if (! $this->request->post('sid') OR ! $_FILES)
|
||||
HTTP::redirect(URL::link('reseller','adsl/index'));
|
||||
|
||||
$aso = ORM::factory('ADSL_Supplier',$_POST['sid']);
|
||||
$aso = ORM::factory('ADSL_Supplier',$this->request->post('sid'));
|
||||
|
||||
// Process upload
|
||||
$files = Validation::factory($_FILES)
|
||||
@@ -59,8 +59,8 @@ class Controller_Reseller_Adsl extends Controller_Adsl {
|
||||
public function action_index() {
|
||||
$output = '';
|
||||
|
||||
if ($_POST and isset($_POST['sid'])) {
|
||||
$aso = ORM::factory('ADSL_Supplier',$_POST['sid']);
|
||||
if ($this->request->post() AND $this->request->post('sid')) {
|
||||
$aso = ORM::factory('ADSL_Supplier',$this->request->post('sid'));
|
||||
if (! $aso->loaded())
|
||||
HTTP::redirect('adsl/index');
|
||||
|
||||
|
Reference in New Issue
Block a user