Changeset 2700
- Timestamp:
- Oct 10, 2008, 3:11:31 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r2544 r2700 138 138 include(PHPWG_ROOT_PATH . 'include/constants.php'); 139 139 include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); 140 include(PHPWG_ROOT_PATH . 'include/template.class.php');141 140 142 141 // Database connection -
trunk/include/functions.inc.php
r2620 r2700 31 31 include_once( PHPWG_ROOT_PATH .'include/functions_url.inc.php' ); 32 32 include_once( PHPWG_ROOT_PATH .'include/functions_plugins.inc.php' ); 33 include_once( PHPWG_ROOT_PATH .'include/template.class.php'); 33 34 34 35 //----------------------------------------------------------- generic functions … … 70 71 { 71 72 $boolean = true; 72 if ( preg_match( '/^false$/i', $string) )73 if ( 'false' == strtolower($string) ) 73 74 { 74 75 $boolean = false; … … 87 88 if (is_bool($var)) 88 89 { 89 if ($var) 90 { 91 return 'true'; 92 } 93 else 94 { 95 return 'false'; 96 } 90 return $var ? 'true' : 'false'; 97 91 } 98 92 else -
trunk/install.php
r2479 r2700 187 187 include(PHPWG_ROOT_PATH . 'admin/include/functions.php'); 188 188 include(PHPWG_ROOT_PATH . 'admin/include/functions_upgrade.php'); 189 include(PHPWG_ROOT_PATH . 'include/template.class.php');190 189 191 190 if (isset($_GET['language'])) -
trunk/template-common/scripts.js
r2496 r2700 80 80 } 81 81 82 PwgWS = function(urlRoot)82 function PwgWS(urlRoot) 83 83 { 84 84 this.urlRoot = urlRoot; -
trunk/template/yoga/picture_nav_buttons.tpl
r2478 r2700 63 63 </div> 64 64 65 <script type="text/javascript"> 65 <script type="text/javascript">// <![CDATA[ 66 66 {literal} 67 67 function keyboardNavigation(e) 68 68 { 69 if(!e) vare=window.event;70 71 72 73 74 75 69 if(!e) e=window.event; 70 if (e.altKey) return true; 71 var target = e.target || e.srcElement; 72 if (target && target.type) return true; //an input editable element 73 var keyCode=e.keyCode || e.which; 74 var docElem = document.documentElement; 75 switch(keyCode) { 76 76 {/literal} 77 77 {if isset($next)} 78 78 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; } break; 79 79 {/if} 80 80 {if isset($previous)} 81 81 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break; 82 82 {/if} 83 83 {if isset($first)} 84 84 /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break; 85 85 {/if} 86 86 {if isset($last)} 87 87 /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break; 88 88 {/if} 89 89 {if isset($U_UP) and !isset($slideshow)} 90 90 /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break; 91 91 {/if} 92 92 93 93 {if isset($slideshow.U_START_PLAY)} 94 94 /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break; 95 95 {/if} 96 96 {if isset($slideshow.U_STOP_PLAY)} 97 97 /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break; 98 98 {/if} 99 100 99 } 100 return true; 101 101 } 102 102 document.onkeydown=keyboardNavigation; 103 </script>103 // ]]></script> -
trunk/upgrade.php
r2512 r2700 27 27 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 28 28 include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php'); 29 include(PHPWG_ROOT_PATH.'include/template.class.php');30 29 31 30 include(PHPWG_ROOT_PATH.'include/mysql.inc.php');
Note: See TracChangeset
for help on using the changeset viewer.