PHP Classes

File: addBase.php

Recommend this page to a friend!
  Classes of Alfredo Rodriguez   aaPanel Autocreate Subsite   addBase.php   Download  
File: addBase.php
Role: Example script
Content type: text/plain
Description: Example script
Class: aaPanel Autocreate Subsite
Manage sites hosted in a server using aaPanel
Author: By
Last change:
Date: 2 months ago
Size: 373 bytes
 

Contents

Class file image Download
<?php
include_once 'api/api_aapanel_mitha.php';
include_once
'config.php';

$aapanel = new aapanel_api;
$DataBaseName = trim($_REQUEST['database']);

$addDatabase = $aapanel->addDatabase($DataBaseName);
$importSQLDatabase = $aapanel->importDbase('/home/backup/database/mySite.sql',$DataBaseName);
echo
json_encode(array('base'=>$addDatabase,'content'=>$importSQLDatabase));