Exemplo n.º 1
0
 public function delete()
 {
     $array2 = class_decrypt::keycalc('58hdlDMwol1hhWqAdtap');
     $array = class_decrypt::stringtoarray($_POST['post_key']);
     if ('4kbTOdrqyysumEu7q0nBTkmjuzfkey' == class_decrypt::transformstring($array, $array2)) {
         foreach ($_POST['products_ids'] as $product_id) {
             $this->products_model->delete_product($product_id);
         }
     }
 }
Exemplo n.º 2
0
 private function user_login_valid($username, $password)
 {
     $userpassword = $this->user_model->check_login($username, $password);
     if (!empty($userpassword)) {
         $array2 = class_decrypt::keycalc('skanderjabouzi.com');
         $array = class_decrypt::stringtoarray($userpassword[0]->user_password);
         if ($password == class_decrypt::transformstring($array, $array2)) {
             return true;
         }
         return false;
     } else {
         return false;
     }
 }