本文整理汇总了PHP中ConfigFile::close方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfigFile::close方法的具体用法?PHP ConfigFile::close怎么用?PHP ConfigFile::close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigFile
的用法示例。
在下文中一共展示了ConfigFile::close方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
# Place for table aliases
ConfigFile::write(['', '', '# Database Table Aliases']);
ConfigFile::write('/* Add Database Table Aliases for Development here */');
ConfigFile::write(['', 'break;', '', '']);
ConfigFile::tab(-1);
}
# Ending the switch
ConfigFile::tab(-1);
ConfigFile::write('}');
ConfigFile::write('');
}
}
# Logging
$G_OUTPUT_RESULTS[] = ' - Closing the config file.<br />';
# Closing the config file
ConfigFile::close();
}
# Advanced install of storage servers
if ($_POST['install-mode'] == 'advanced' && (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '' || isset($_POST['create_storage_host']) && $_POST['create_storage_host'] != '')) {
# Storage Servers header
create_header('Storage Servers', $G_OUTPUT_RESULTS);
# Adding controller to database host
if (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '') {
# Creating image host
$G_OUTPUT_RESULTS[] = ' - Creating database host.<br />';
$query = "\tINSERT INTO\n\t\t\t\t\t\t\t" . NQ_CONTROLLER_DATABASE . ".`" . NQ_CONTROLLER_TABLE_PREFIX . "servers_database`\n\t\t\t\t\t\tSET\n\t\t \t\t\t\t\t`local_name` \t\t= 'Database Server #1', \n\t\t \t\t\t\t\t`host_app_id`\t\t= 0,\n\t\t \t\t\t\t\t`host_app_group`\t= 0,\n\t\t \t\t\t\t\t`host`\t\t\t= '" . mysqli_escape_string($G_CONTROLLER_DBLINK, NQ_DATABASE_STORAGE_HOST) . "', \n\t\t \t\t\t\t\t`username`\t\t= '" . mysqli_escape_string($G_CONTROLLER_DBLINK, NQ_DATABASE_STORAGE_USERNAME) . "',\n\t\t \t\t\t\t\t`password`\t\t= '" . mysqli_escape_string($G_CONTROLLER_DBLINK, NQ_DATABASE_STORAGE_PASSWORD) . "',\n\t\t \t\t\t\t\t`environment`\t\t= '*', \n\t\t \t\t\t\t\t`database`\t\t= '" . mysqli_escape_string($G_CONTROLLER_DBLINK, NQ_DATABASE_STORAGE_DATABASE) . "', \n\t\t \t\t\t\t\t`ssh_username`\t\t= '', \n\t\t \t\t\t\t\t`ssh_password`\t\t= '',\n\t\t \t\t\t\t\t`space_used`\t\t= 0, \n\t\t \t\t\t\t\t`available_space`\t= 0, \n\t\t \t\t\t\t\t`available_percent`\t= 100.00, \n\t\t \t\t\t\t\t`total_space`\t\t= 2147483648";
$result = mysqli_query($G_CONTROLLER_DBLINK, $query) or die(mysqli_error($G_CONTROLLER_DBLINK));
}
# Creating our storage hosts
if (isset($_POST['create_storage_host']) && $_POST['create_storage_host'] != '') {
# Making the storage directory