نقل قول نوشته اصلی توسط 1eng.ir نمایش پست ها
Techno Pars:
فقط کار ریسیت و روشن و خاموش و ... رو انجام میده یا کاملتره؟
در جریان جزئیات بذارم تا ببینیم برنامه نویس خوب میشه پیدا کرد یا نه ...
ساخت کامل VPS به طور اتوماتیک
امکان تغییر IP و ...
یک قسمت از سورس را اینجا می گذارم:
کد PHP:
function vmware_ConfigOptions() {
    
# Should return an array of the module options for each product - maximum of 24
    
$configarray = array(
        
"Virtual machine template" => array( "Type" => "text""Size" => "40", ),
        
"Operating system" => array( "Type" => "dropdown""Options" => "do not customize,windows,linux" ),
        
"Datacenter" => array( "Type" => "text""Size" => "40", ),
        
"Datastore (optional)" => array( "Type" => "text""Size" => "40", ),
        
"Folder (optional)" => array( "Type" => "text""Size" => "40", ),
        
"Cluster (optional)" => array( "Type" => "text""Size" => "40", ),
        
"ESX/ESXi Host (optional)" => array( "Type" => "text""Size" => "40", ),
        
"Resource Pool (optional)" => array( "Type" => "text""Size" => "40", ),
        
"Memory Size (optional)" => array( "Type" => "text""Size" => "10""Description" => "MB" ),
        
"Number of CPUs (optional)" => array( "Type" => "text""Size" => "3", ),
        
"Hard Disk Size (optional)" => array( "Type" => "text""Size" => "3""Description" => "GB" ),
        
"Timezone (Windows)" => array( "Type" => "text""Size" => "3", ),
        
"Organization (Windows)" => array( "Type" => "text""Size" => "40", ),
        
"User (Windows)" => array( "Type" => "text""Size" => "40", ),
        
"License Key (Windows)" => array( "Type" => "text""Size" => "40", ),
        
"vCenter Windows domain" => array( "Type" => "text""Size" => "40", ),
        
"Host domain (Linux)" => array( "Type" => "text""Size" => "40", ),
        
"Timezone (Linux)" => array( "Type" => "text""Size" => "40", ),
        
"Power On" => array( "Type" => "yesno""Description" => "Power on VM after setup" ),
        
"Networking" => array( "Type" => "dropdown""Options" => "DHCP,Static IP from IP Manager Module" ),
        
"LDAP base OU for accounts" => array( "Type" => "text""Size" => "40", ),
        
"CPU MHZ Limit (optional)" => array( "Type" => "text""Size" => "40", ),
        
"Network Setup parameters (Static IP)" => array( "Type" => "text""Size" => "40", ),
        
"Network ID (optional)" => array( "Type" => "text""Size" => "40", ),
    );
    return 
$configarray;