예제 #1
0
 public function display()
 {
     $iae8c74e5273dec25096dbae362493a9f609ecfc8 = parent::display();
     $i1238ed0a93a32faf9485892fe4a454435972b1cc = new UserProfile($this->getDb());
     $i761d4d405845a382ce9ea0af0705de3e4856e9d9 = $i1238ed0a93a32faf9485892fe4a454435972b1cc->getProfile();
     if (is_array($i761d4d405845a382ce9ea0af0705de3e4856e9d9) && count($i761d4d405845a382ce9ea0af0705de3e4856e9d9) > 2) {
         $this->username = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["user"];
         $this->password = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["passwd"];
         $this->simulate = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["simulatesms"];
         $this->deleteDb = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["deletedb"];
         $this->pocetkredit = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["pocetkredit"];
         $this->deliveryemail = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["deliveryemail"];
         $this->URLreports = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["URLreports"];
         $this->pref_billing = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["pref_billing"];
         $this->delivery_reports_error_only = $i761d4d405845a382ce9ea0af0705de3e4856e9d9["delivery_reports_error_only"];
     }
     $iae8c74e5273dec25096dbae362493a9f609ecfc8 .= '<script type="text/javascript" src="' . DIR_SMS_JS . 'sms.js"></script>';
     if (!$this->fcade530f4a16debaf9c8b3aacfd7e7e557ee8292($i761d4d405845a382ce9ea0af0705de3e4856e9d9)) {
         $iae8c74e5273dec25096dbae362493a9f609ecfc8 .= ' <h2>' . v_adminsmsprofile_profilenotactive . '</h2> <div> <div class="left half"> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_newaccount . '</legend> ' . $this->f54b8d242a128f32cc160d8be566e3a54e851d614() . ' </fieldset> </div> <div class="half right"> <fieldset> <legend><img alt="' . v_adminsmsprofile_sign . '" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_sign . '</legend> ' . $this->f26a88040808849cb2ea942bec2e313c01a3a7cd3() . ' </fieldset> </div> </div> ';
     } else {
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
         $i3964ab17d4e3c76c12a1b84b29be7bf6f6484dc3 = date("Y-m-d");
         $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_settings where name like 'lastversion'");
         if ($ic6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) {
             foreach ($ic6e936002fe51b97bc1b95f337c09606ceb011de->rows as $i43ef5aef4168652439ef5de195405ced9f0f7952) {
                 $i87395dcafb6eb7221410dbcd87e9e8ce0007214abfcabb3c146796c60c6a7ae4e3408160f3ac0ae = $i43ef5aef4168652439ef5de195405ced9f0f7952["value"];
             }
         } else {
             $i87395dcafb6eb7221410dbcd87e9e8ce0007214abfcabb3c146796c60c6a7ae4e3408160f3ac0ae = 0;
         }
         if (!strlen($i87395dcafb6eb7221410dbcd87e9e8ce0007214abfcabb3c146796c60c6a7ae4e3408160f3ac0ae) > 0 || !isset($_SESSION["SMS_VERSION_ACTUAL"])) {
             $_SESSION["SMS_VERSION_ACTUAL"] = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->refreshVersion();
             $this->Execute("DELETE FROM " . DB_PREFIX . "sp_settings WHERE name = 'lastversion'");
             $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_settings` (`name`, `value`) VALUES ('lastversion','" . $this->escape($i3964ab17d4e3c76c12a1b84b29be7bf6f6484dc3) . "')");
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getExceptions();
         } elseif ($i87395dcafb6eb7221410dbcd87e9e8ce0007214abfcabb3c146796c60c6a7ae4e3408160f3ac0ae != $i3964ab17d4e3c76c12a1b84b29be7bf6f6484dc3) {
             $_SESSION["SMS_VERSION_ACTUAL"] = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->refreshVersion();
             $this->Execute("UPDATE " . DB_PREFIX . "sp_settings SET value = '" . $this->escape($i3964ab17d4e3c76c12a1b84b29be7bf6f6484dc3) . "' WHERE name LIKE 'lastversion'");
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getExceptions();
         }
         if ($_SESSION["SMS_VERSION_ACTUAL"] > SMS_VERSION) {
             $ie07972b4d7e69eb13cc2273c5cceb4c18a7f59df = '<span class="right"><a href="http://' . v_about_website_name_oc . '/download.html"><b>' . v_smsprestashop_newversion . " " . $_SESSION["SMS_VERSION_ACTUAL"] . '</b></a></span>';
         } else {
             $ie07972b4d7e69eb13cc2273c5cceb4c18a7f59df = "";
         }
         $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_smsuser where ID=1");
         $iae8c74e5273dec25096dbae362493a9f609ecfc8 .= $ie07972b4d7e69eb13cc2273c5cceb4c18a7f59df . ' <h2>' . v_adminsmsprofile_profileactive . '</h2> <div> <div class="half left"> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_editaccount . '</legend> ' . $this->f16baed92b40c0611e279718e39c1f6f458b1b01a($ic6e936002fe51b97bc1b95f337c09606ceb011de, $i761d4d405845a382ce9ea0af0705de3e4856e9d9) . ' </fieldset> </div> <div class="right half"> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_accountinfo . '</legend> <table class="formTable profile"> <tbody> <tr> <td>' . self::getLabel(v_adminsmsprofile_username, 'class="bold"') . '</td> <td>' . $i761d4d405845a382ce9ea0af0705de3e4856e9d9["user"] . '</td> </tr> <tr> <td>' . self::getLabel(v_adminsmsprofile_password, 'class="bold"') . '</td> <td>' . $i761d4d405845a382ce9ea0af0705de3e4856e9d9["passwd"] . '</td> </tr> <tr> <td>' . self::getLabel(v_adminsmsprofile_credit, 'class="bold"') . '</td> <td>' . (isset($this->credit) ? $this->credit : "0.000") . '</td> </tr> </tbody> </table> </fieldset> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_addadmin . '</legend> <div id="snippet-admins">' . $this->fd4075c16d1a89b72662dd64f15f63dfa32583938() . '</div> </fieldset> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_settings . '</legend> ' . $this->f30de648edea18d0c5d3ce961826e1a20259c1f78() . ' </fieldset> </div> ';
     }
     $iae8c74e5273dec25096dbae362493a9f609ecfc8 .= ' <script type="text/javascript"> jQuery(".bussinessButton").click(function(){ jQuery(".bussiness").removeClass("hidden"); }); jQuery(".personButton").click(function(){ jQuery(".bussiness").addClass("hidden"); }); </script> ';
     return $iae8c74e5273dec25096dbae362493a9f609ecfc8;
 }
예제 #2
0
 public function display()
 {
     $i02fcabda2448d40bdb76bd10f9e95950039649ee = parent::display();
     $i5071ce49aa74dec77b6a05acd8c726411c9543d8 = new UserProfile($this->getDb());
     $i986f0e400c2b3a0307f9712307da35ce2ee9676d = $i5071ce49aa74dec77b6a05acd8c726411c9543d8->getProfile();
     if (is_array($i986f0e400c2b3a0307f9712307da35ce2ee9676d) && count($i986f0e400c2b3a0307f9712307da35ce2ee9676d) > 2) {
         $this->username = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["user"];
         $this->password = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["passwd"];
         $this->simulate = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["simulatesms"];
         $this->deleteDb = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["deletedb"];
         $this->pocetkredit = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["pocetkredit"];
         $this->deliveryemail = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["deliveryemail"];
         $this->URLreports = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["URLreports"];
         $this->pref_billing = $i986f0e400c2b3a0307f9712307da35ce2ee9676d["pref_billing"];
     }
     $i02fcabda2448d40bdb76bd10f9e95950039649ee .= '<script type="text/javascript" src="' . DIR_SMS_JS . 'sms.js"></script>';
     if (!$this->f2cabfeb0961627616624db11d0e24035e8011907($i986f0e400c2b3a0307f9712307da35ce2ee9676d)) {
         $i02fcabda2448d40bdb76bd10f9e95950039649ee .= ' <h2>' . v_adminsmsprofile_profilenotactive . '</h2> <div> <div class="left half"> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_newaccount . '</legend> ' . $this->f9fa65df97b8de00106ecf05e8e274673250fe19a() . ' </fieldset> </div> <div class="half right"> <fieldset> <legend><img alt="' . v_adminsmsprofile_sign . '" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_sign . '</legend> ' . $this->ffebe43f1766af3ed1ee846e89c66dee951e51062() . ' </fieldset> </div> </div> ';
     } else {
         $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
         $ie5b0dc673ae7185f8cfea133baf9fef6a88b3281 = date("Y-m-d");
         $i83d1339527a9dc91b02fa99420eb13b0cd47adfe = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_settings where name like 'lastversion'");
         if ($i83d1339527a9dc91b02fa99420eb13b0cd47adfe->num_rows) {
             foreach ($i83d1339527a9dc91b02fa99420eb13b0cd47adfe->rows as $i2e93e61d67c274d891066238c74ba6322d527b6d) {
                 $i88671923b16408bdf890533cf2d9063aefd56601 = $i2e93e61d67c274d891066238c74ba6322d527b6d["value"];
             }
         } else {
             $i88671923b16408bdf890533cf2d9063aefd56601 = 0;
         }
         if (!strlen($i88671923b16408bdf890533cf2d9063aefd56601) > 0 || !isset($_SESSION["SMS_VERSION_ACTUAL"])) {
             $_SESSION["SMS_VERSION_ACTUAL"] = $i9ec854a302fbdb72d043506b55d5bf395184517b->refreshVersion();
             $this->Execute("DELETE FROM " . DB_PREFIX . "sp_settings WHERE name = 'lastversion'");
             $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_settings` (`name`, `value`) VALUES ('lastversion','" . $this->escape($ie5b0dc673ae7185f8cfea133baf9fef6a88b3281) . "')");
             $i9ec854a302fbdb72d043506b55d5bf395184517b->getExceptions();
         } elseif ($i88671923b16408bdf890533cf2d9063aefd56601 != $ie5b0dc673ae7185f8cfea133baf9fef6a88b3281) {
             $_SESSION["SMS_VERSION_ACTUAL"] = $i9ec854a302fbdb72d043506b55d5bf395184517b->refreshVersion();
             $this->Execute("UPDATE " . DB_PREFIX . "sp_settings SET value = '" . $this->escape($ie5b0dc673ae7185f8cfea133baf9fef6a88b3281) . "' WHERE name LIKE 'lastversion'");
             $i9ec854a302fbdb72d043506b55d5bf395184517b->getExceptions();
         }
         if ($_SESSION["SMS_VERSION_ACTUAL"] > SMS_VERSION) {
             $i88652dd482a8d77a2f80831b5c46f2f9101ac700 = '<span class="right"><a href="http://' . v_about_website_name_oc . '/download.html"><b>' . v_smsprestashop_newversion . " " . $_SESSION["SMS_VERSION_ACTUAL"] . '</b></a></span>';
         } else {
             $i88652dd482a8d77a2f80831b5c46f2f9101ac700 = "";
         }
         $i83d1339527a9dc91b02fa99420eb13b0cd47adfe = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_smsuser where ID=1");
         $i02fcabda2448d40bdb76bd10f9e95950039649ee .= $i88652dd482a8d77a2f80831b5c46f2f9101ac700 . ' <h2>' . v_adminsmsprofile_profileactive . '</h2> <div> <div class="half left"> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_editaccount . '</legend> ' . $this->f917321b4b0c70b1606d7416e040dd2ed3a905ceb($i83d1339527a9dc91b02fa99420eb13b0cd47adfe, $i986f0e400c2b3a0307f9712307da35ce2ee9676d) . ' </fieldset> </div> <div class="right half"> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_accountinfo . '</legend> <table class="formTable profile"> <tbody> <tr> <td>' . self::getLabel(v_adminsmsprofile_username, 'class="bold"') . '</td> <td>' . $i986f0e400c2b3a0307f9712307da35ce2ee9676d["user"] . '</td> </tr> <tr> <td>' . self::getLabel(v_adminsmsprofile_password, 'class="bold"') . '</td> <td>' . $i986f0e400c2b3a0307f9712307da35ce2ee9676d["passwd"] . '</td> </tr> <tr> <td>' . self::getLabel(v_adminsmsprofile_credit, 'class="bold"') . '</td> <td>' . (isset($this->credit) ? $this->credit : "0.000") . '</td> </tr> </tbody> </table> </fieldset> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_addadmin . '</legend> <div id="snippet-admins">' . $this->fbf9b3101836799ebd580f8b6a6a2637ec8417539() . '</div> </fieldset> <fieldset> <legend><img alt="" src="' . self::$adminEmployeesImg . '" /> ' . v_adminsmsprofile_settings . '</legend> ' . $this->fb78d17953dd422cb85e244bdc187737b0839d1e1() . ' </fieldset> </div> ';
     }
     $i02fcabda2448d40bdb76bd10f9e95950039649ee .= ' <script type="text/javascript"> jQuery(".bussinessButton").click(function(){ jQuery(".bussiness").removeClass("hidden"); }); jQuery(".personButton").click(function(){ jQuery(".bussiness").addClass("hidden"); }); </script> ';
     return $i02fcabda2448d40bdb76bd10f9e95950039649ee;
 }