Пример #1
0
 /**
  * Get the user configuration and information about the current blog
  *
  */
 function GetBlogData()
 {
     $blogData = array();
     if (file_exists($this->indexFile)) {
         require $this->indexFile;
     }
     //old twitter auth no longer works
     if (isset($blogData['twitter_username']) || isset($blogData['twitter_password'])) {
         unset($blogData['twitter_username']);
         unset($blogData['twitter_password']);
     }
     SimpleBlogCommon::$data = $blogData + SimpleBlogCommon::Defaults();
     $this->GenIndexStr();
     //update to simple blog 2.0 data
     if (isset(SimpleBlogCommon::$data['post_info'])) {
         $this->DataUpdate20();
     }
 }