コード例 #1
0
ファイル: BuildConfig.php プロジェクト: TheSavior/WhiteBoard
 protected static function setValues()
 {
     $timestamp = time();
     // Default values for config entities
     self::$defaultValues = array("group" => "general", "time_modified" => $timestamp);
     // The config values to insert
     self::$insertValues = array(array("name" => "SiteName", "value" => "Forum_Name", "description" => "The name of the website to appear in the titlebar, and at the start of breadcrumbs."), array("name" => "ForumVersion", "value" => "1.0", "description" => "The version of the forum system"), array("name" => "DefaultTheme", "value" => 1, "description" => "The default theme to use for the forum"), array("name" => "CrumbSeperator", "value" => "»", "description" => "The seperator used in the breadcrumbs"), array("name" => "TimeZone", "value" => "America/Los_Angeles", "description" => "The default timezone for the board to use."), array("name" => "DateFormat", "value" => "n/j/y", "description" => "The date format to use on the board. Format according to PHP's date() function"), array("name" => "TimeFormat", "value" => "g:ia", "description" => "The time format to use on the board. Format according to PHP\\'s date() function."), array("name" => "PostsPerPage", "value" => 10, "description" => "The number of posts to display on a single page"), array("name" => "TopicsPerPage", "value" => 20, "description" => "The number of topics to display on a single page"), array("name" => "UsersOnlineOffset", "value" => "15", "description" => "The number of minutes for the Users Online list to display"));
 }
コード例 #2
0
ファイル: Index.php プロジェクト: TheSavior/WhiteBoard
 public function indexAction()
 {
     $adapter = $this->registry->dbAdapter;
     $populate = new Application_Modules_Installer_Models_PopulateTable($adapter);
     Application_Modules_Installer_Models_BuildBans::run($adapter);
     Application_Modules_Installer_Models_BuildConfig::run($adapter);
     Application_Modules_Installer_Models_BuildForums::run($adapter);
     Application_Modules_Installer_Models_BuildGroups::run($adapter);
     Application_Modules_Installer_Models_BuildImages::run($adapter);
     Application_Modules_Installer_Models_BuildOnline::run($adapter);
     Application_Modules_Installer_Models_BuildPermissions::run($adapter);
     Application_Modules_Installer_Models_BuildPosts::run($adapter);
     Application_Modules_Installer_Models_BuildThemes::run($adapter);
     Application_Modules_Installer_Models_BuildTopics::run($adapter);
     Application_Modules_Installer_Models_BuildUsers::run($adapter, "Username", "Displayname", "Password", "*****@*****.**");
 }