public static function getInstance() { if (empty(self::$instance)) { self::$instance = new Database_Kjv(); } return self::$instance; }
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ require_once "../bootstrap/bootstrap.php"; page_access_level(Filter_Roles::CONSULTANT_LEVEL); $database_config_user = Database_Config_User::getInstance(); $database_config_bible = Database_Config_Bible::getInstance(); $database_search = Database_Search::getInstance(); $database_kjv = Database_Kjv::getInstance(); $ipc_focus = Ipc_Focus::getInstance(); $myIdentifier = Filter_User::myIdentifier(); @($bible = $_GET['b']); if (!isset($bible)) { $bible = $database_config_user->getBible(); } @($load = $_GET['load']); if (isset($load)) { $book = $ipc_focus->getBook(); $chapter = $ipc_focus->getChapter(); $verse = $ipc_focus->getVerse(); // Get Strong's numbers, plus English snippets. $searchtext = ""; $details = $database_kjv->getVerse($book, $chapter, $verse); foreach ($details as $offset => $detail) {