Commit 7a3e7c8f authored by RemyD's avatar RemyD

3.0.2.2

parent f8e2f55e
CREATE TABLE `hosted` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL DEFAULT '0',
`datacenter_server` varchar(150) NOT NULL DEFAULT 'localhost.localdomain.com',
`vmname` varchar(255) NOT NULL DEFAULT '',
`vmid` char(36) NOT NULL DEFAULT '',
`status_pwr` int(1) NOT NULL,
`status_vmw` int(1) NOT NULL,
`info` varchar(300) DEFAULT 'NOT_AVAILABLE',
`vmtype` varchar(30) DEFAULT 'MACHINE',
`updateDate` datetime DEFAULT NULL,
`vmbootTime` datetime DEFAULT NULL,
`vm_mem_MB` int(11) DEFAULT '0',
`vm_cpu` int(11) DEFAULT '0',
`vm_config_date` datetime DEFAULT NULL,
`vm_disk_capacity_GB` int(11) DEFAULT '0',
`vm_OS` varchar(150) DEFAULT NULL,
`vm_disk_freespace_GB` int(11) DEFAULT NULL,
`task_run` varchar(15) DEFAULT 'NONE',
`sys_userid` int(11) NOT NULL DEFAULT '0',
`sys_groupid` int(11) NOT NULL,
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) NOT NULL DEFAULT 'ru',
`sys_perm_other` varchar(5) DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `ix_vmid` (`vmid`)
) ENGINE=InnoDB AUTO_INCREMENT=164 DEFAULT CHARSET=utf8
;
CREATE TABLE `hosted_events` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`vmname` varchar(250) NOT NULL DEFAULT '',
`task_id` int(15) NOT NULL,
`end_date` datetime NOT NULL,
`task_status` varchar(50) NOT NULL DEFAULT '',
`task_description` varchar(300) NOT NULL DEFAULT '',
`start_time` datetime DEFAULT NULL,
`sys_userid` int(11) NOT NULL DEFAULT '0',
`sys_groupid` int(11) NOT NULL,
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) DEFAULT '',
`sys_perm_other` varchar(5) DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `ix_task_id` (`task_id`)
) ENGINE=InnoDB AUTO_INCREMENT=40704 DEFAULT CHARSET=utf8
;
CREATE TABLE `hosted_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`clientId` int(11) NOT NULL,
`clientType` varchar(64) DEFAULT NULL,
`ip` varchar(15) NOT NULL,
`domain` varchar(64) NOT NULL,
`ua` varchar(256) NOT NULL,
`ref` varchar(128) NOT NULL,
`script` varchar(255) NOT NULL DEFAULT '',
`ts` datetime NOT NULL,
`action` varchar(32) NOT NULL,
`target` varchar(32) NOT NULL,
`sys_userid` int(11) NOT NULL DEFAULT '0',
`sys_groupid` int(11) NOT NULL,
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) DEFAULT '',
`sys_perm_other` varchar(5) DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=297 DEFAULT CHARSET=utf8
;
CREATE TABLE `hosted_Setup` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sys_groupid` int(11) NOT NULL,
`sys_userid` int(11) NOT NULL DEFAULT '0',
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) DEFAULT '',
`sys_perm_other` varchar(5) DEFAULT '',
`AppVersion` int(1) DEFAULT '0',
`AppRevision` int(1) DEFAULT '0',
`AppSubversion` int(1) DEFAULT '0',
`AppDevVersion` int(1) DEFAULT '0',
`CreateDate` datetime DEFAULT NULL,
`username` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`server` varchar(55) DEFAULT NULL,
`loglevel` int(1) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8
;
CREATE TABLE `hosted_snapshots` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`vmid` char(36) NOT NULL DEFAULT '',
`snap_name` varchar(255) NOT NULL DEFAULT '',
`snap_desc` varchar(500) DEFAULT 'NO DESCRIPTION',
`snap_level` int(11) DEFAULT NULL,
`isInit` tinyint(1) DEFAULT '0',
`update_date` datetime DEFAULT NULL,
`snap_archive` int(11) DEFAULT '0',
`sys_userid` int(11) NOT NULL DEFAULT '0',
`sys_groupid` int(11) NOT NULL,
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) DEFAULT '',
`sys_perm_other` varchar(5) DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
;
\ No newline at end of file
......@@ -49,7 +49,7 @@ class cstiConfig { /* CSTI Config Class, used for tracking version, Init and upd
# Table tracking and setup
private $_TableSetupData="(id, AppVersion, AppRevision, AppSubversion, AppDevVersion, CreateDate, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other,username,password,server,loglevel) VALUES (1, 1, 0, 0, now(), 0, 0, 'ruid', 'r', '', '','username','','',1);";
private $_TableSetupUpdate="INSERT INTO hosted_Setup (id, AppVersion, AppRevision, AppSubversion, AppDevVersion, CreateDate, sys_userid, sys_groupid,
sys_perm_user, sys_perm_group, sys_perm_other) VALUES (7,3,0,1, 0, now() , 0,0, 'ruid', 'r', '');";
sys_perm_user, sys_perm_group, sys_perm_other) VALUES (8,3,0,2, 0, now() , 0,0, 'ruid', 'r', '');";
function __construct(){
$this->_site_url=$_SESSION['$_SITE_SOURCE'] . "/tags";
......@@ -75,7 +75,7 @@ class cstiConfig { /* CSTI Config Class, used for tracking version, Init and upd
curl_close($ch);
$find ='<div class="tags">';
$notice = strstr($reponse, $find, true );
$pos =strlen($notice) +225;
$pos =strlen($notice) +227;
$this->version=(substr($reponse,$pos,1));
$this->revision=(substr($reponse,$pos +2,1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment