Exemple #1
0
 public static function installAddon()
 {
     $result = array();
     $installed = lC_Store_Admin::install($_GET['name']);
     if ($installed) {
         $result['rpcStatus'] = RPC_STATUS_SUCCESS;
     }
     echo json_encode($result);
 }
Exemple #2
0
 private static function _autoInstall($key)
 {
     global $lC_Database;
     $Qchk = $lC_Database->query("select id from :table_templates_boxes where modules_group LIKE '%" . $key . "%'");
     $Qchk->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES);
     $Qchk->execute();
     if ($Qchk->numberOfRows() > 0) {
         return false;
     } else {
         lC_Store_Admin::install($key);
         return true;
     }
 }