***************************************************************/ include "connect.inc.php"; include "settings.inc.php"; include "utilities.inc.php"; $p = ''; if (isset($_REQUEST['selection']) && isset($_SESSION['testsql'])) { $p = "selection=" . $_REQUEST['selection']; } if (isset($_REQUEST['lang'])) { $p = "lang=" . $_REQUEST['lang']; } if (isset($_REQUEST['text'])) { $p = "text=" . $_REQUEST['text']; } if ($p != '') { framesetheader('Test'); ?> <frameset cols="<?php echo tohtml(getSettingWithDefault('set-test-l-framewidth-percent')); ?> %,*"> <frameset rows="<?php echo tohtml(getSettingWithDefault('set-test-h-frameheight')); ?> ,*"> <frame src="do_test_header.php?<?php echo $p; ?> " scrolling="no" name="h" /> <frame src="empty.htm" scrolling="auto" name="l" /> </frameset>
***************************************************************/ /************************************************************** Call: display_impr_text.php?text=[textid] Display an improved annotated text (frame set) ***************************************************************/ require_once 'settings.inc.php'; require_once 'connect.inc.php'; require_once 'dbutils.inc.php'; require_once 'utilities.inc.php'; require_once 'php-mobile-detect/Mobile_Detect.php'; $detect = new Mobile_Detect(); $mobileDisplayMode = getSettingWithDefault('set-mobile-display-mode') + 0; $mobile = $mobileDisplayMode == 0 && $detect->isMobile() || $mobileDisplayMode == 2; if (isset($_REQUEST['text'])) { $audio = get_first_value('select TxAudioURI as value from ' . $tbpref . 'texts where TxID = ' . $_REQUEST['text']); framesetheader('Display'); if ($mobile) { ?> <style type="text/css"> body { background-color: #cccccc; margin: 0; overflow: hidden; } #frame-h, #frame-l { position:absolute; overflow:scroll; -webkit-overflow-scrolling: touch; } #frame-h-2, #frame-l-2 {
In case this is not legally possible, any entity is granted the right to use this work for any purpose, without any conditions, unless such conditions are required by law. Developed by J.P. in 2011, 2012. ***************************************************************/ /************************************************************** Call: do_text.php?start=[textid] Start Reading a text (frameset) ***************************************************************/ include "connect.inc.php"; include "settings.inc.php"; include "utilities.inc.php"; if (isset($_REQUEST['start'])) { $audio = get_first_value('select TxAudioURI as value from texts where TxID = ' . $_REQUEST['start']); framesetheader('Read'); ?> <frameset cols="<?php echo tohtml(getSettingWithDefault('set-text-l-framewidth-percent')); ?> %,*"> <frameset rows="<?php echo isset($audio) ? getSettingWithDefault('set-text-h-frameheight-with-audio') : getSettingWithDefault('set-text-h-frameheight-no-audio'); ?> ,*"> <frame src="do_text_header.php?text=<?php echo $_REQUEST['start']; ?> " scrolling="no" name="h" /> <frame src="do_text_text.php?text=<?php echo $_REQUEST['start'];