Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
interface/lib/classes/aps_guicontroller.inc.php
@@ -27,7 +27,7 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
require_once('aps_base.inc.php');
require_once 'aps_base.inc.php';
class ApsGUIController extends ApsBase
{
@@ -36,10 +36,14 @@
    *
    * @param $app the application instance (db handle)
    */
    public function __construct($app)
    {
        parent::__construct($app);
    }
    
    /**
     * Reads in a package metadata file and registers it's namespaces
@@ -57,6 +61,8 @@
        
        return $sxe; 
    }
    
    /**
     * Applies a RegEx pattern onto a location path in order to secure it against 
@@ -79,6 +85,8 @@
        return $location;
    }
    
    /**
     * Gets the CustomerID (ClientID) which belongs to a specific domain
     * 
@@ -97,6 +105,8 @@
        
        return $customerid;
    }
    
    /**
     * Returns the server_id for an already installed instance. Is actually 
@@ -125,6 +135,8 @@
        
        return $webserver_id;
    } 
    
    /**
     * Finds out if there is a newer package version for 
@@ -173,6 +185,8 @@
         return true;
    }
    
    /**
     * Validates a given instance ID
     *
@@ -195,6 +209,8 @@
         
         return true;
    }    
    
    /**
     * Creates a new database record for the package instance and
@@ -331,6 +347,8 @@
      $app->db->datalogUpdate('aps_instances', "instance_status = ".INSTANCE_INSTALL, 'id', $InstanceID);
    }
    
    /**
     * Sets the status of an instance to "should be removed" and creates a 
     * datalog entry to give the ISPConfig server a real removal advice 
@@ -362,6 +380,8 @@
      $app->db->datalogUpdate('aps_instances', "instance_status = ".INSTANCE_REMOVE, 'id', $instanceid);
    }
    
    /**
     * Sets the status of an instance to "installation planned" and creates a 
@@ -472,6 +492,8 @@
        return $settings;
    }
    
    /**
     * Validates the user input according to the settings array and
@@ -670,6 +692,8 @@
        return $ret;
    }
    
    /**
     * Read the metadata of a package and returns some content
     * 
@@ -841,5 +865,7 @@
        
        return $pkg;
    }
}
?>