* * @package (Informatikon.com).ossn * @author OSSN Core Team <*****@*****.**> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license General Public Licence http://www.opensource-socialnetwork.org/licence * @link http://www.opensource-socialnetwork.org/licence */ $database = new OssnDatabase(); /** * Check if the upgrades settings exist or not * * @access private */ $fetch['from'] = 'ossn_site_settings'; $fetch['wheres'] = array("name='upgrades'"); $upgrade_settings = $database->select($fetch); /** * If settings didn't exist then create settings * * @access private */ if (empty($upgrade_settings->setting_id)) { $insert['into'] = 'ossn_site_settings'; $insert['names'] = array('name', 'value'); $insert['values'] = array('upgrades', ''); $database->insert($insert); } /** * Fixed the relationship table type from int to varchat * * @access private
* * @package (Informatikon.com).ossn * @author OSSN Core Team <*****@*****.**> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license General Public Licence http://www.opensource-socialnetwork.org/licence * @link http://www.opensource-socialnetwork.org/licence */ $database = new OssnDatabase(); /** * Check if the site errors settings exists or not * * @access private */ $fetch['from'] = 'ossn_site_settings'; $fetch['wheres'] = array("name='display_errors'"); $siterror_settings = $database->select($fetch); /** * If settings didn't exist then create settings * * @access private */ if (empty($siterror_settings->setting_id)) { $insert['into'] = 'ossn_site_settings'; $insert['names'] = array('name', 'value'); $insert['values'] = array('display_errors', 'off'); $database->insert($insert); } /** * Check if the site key settings exists or not * * @access private