2020-04-22 22:48:56 +03:00
|
|
|
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
2015-10-18 20:51:24 +03:00
|
|
|
|
2016-01-01 17:45:01 +02:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
2020-03-11 12:10:59 +03:00
|
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
2016-01-01 17:45:01 +02:00
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.1.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2015-10-18 20:51:24 +03:00
|
|
|
/**
|
|
|
|
* Check if Easy!Appointments is installed.
|
|
|
|
*
|
2020-04-22 22:48:56 +03:00
|
|
|
* This function will check some factors to determine if Easy!Appointments is installed or not. It is possible that the
|
|
|
|
* installation is properly configure without being recognized by this method.
|
2015-10-18 20:51:24 +03:00
|
|
|
*
|
2020-04-22 22:48:56 +03:00
|
|
|
* Notice: You can add more checks into this file in order to further check the installation state of the application.
|
2015-10-18 20:51:24 +03:00
|
|
|
*
|
|
|
|
* @return bool Returns whether E!A is installed or not.
|
|
|
|
*/
|
2020-09-07 11:15:58 +03:00
|
|
|
function is_app_installed()
|
2017-09-15 14:36:37 +03:00
|
|
|
{
|
2020-04-22 22:48:56 +03:00
|
|
|
$framework =& get_instance();
|
|
|
|
|
2020-05-02 13:51:06 +03:00
|
|
|
return $framework->db->table_exists('users');
|
2015-10-18 20:51:24 +03:00
|
|
|
}
|