| | |
| | | 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 |
| | | { |
| | |
| | | * |
| | | * @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 |
| | |
| | | |
| | | return $sxe; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Applies a RegEx pattern onto a location path in order to secure it against |
| | |
| | | return $location; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Gets the CustomerID (ClientID) which belongs to a specific domain |
| | | * |
| | |
| | | |
| | | return $customerid; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Returns the server_id for an already installed instance. Is actually |
| | |
| | | |
| | | return $webserver_id; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Finds out if there is a newer package version for |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Validates a given instance ID |
| | | * |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new database record for the package instance and |
| | |
| | | $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 |
| | |
| | | $app->db->datalogUpdate('aps_instances', "instance_status = ".INSTANCE_REMOVE, 'id', $instanceid); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sets the status of an instance to "installation planned" and creates a |
| | |
| | | |
| | | return $settings; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Validates the user input according to the settings array and |
| | |
| | | return $ret; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Read the metadata of a package and returns some content |
| | | * |
| | |
| | | |
| | | return $pkg; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |