Changeset 4716 for extensions/Juza/include/functions.inc.php
- Timestamp:
- Jan 21, 2010, 9:32:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Juza/include/functions.inc.php
r4659 r4716 86 86 } 87 87 88 function remove_AkBookStyle_handlers() {89 global $public_content;90 remove_event_handler('loc_begin_index_thumbnails', array($public_content, 'loc_begin_index_thumbnails'));91 remove_event_handler('loc_end_index_thumbnails', array($public_content, 'loc_end_index_thumbnails'));92 remove_event_handler('loc_begin_index', array($public_content, 'page_force'));93 remove_event_handler('loc_end_picture', array($public_content, 'loc_end_picture'));94 }95 96 88 function Juza_update() { 97 89 global $template, $conf, $user; … … 108 100 $conf_Juza['Juza_shift'] = ($conf_Juza['Juza_shift'] > 0) ? 0 : $conf_Juza['Juza_shift']; 109 101 $conf_Juza['Juza_shift'] = ($conf_Juza['Juza_shift'] < -320) ? 320 : $conf_Juza['Juza_shift']; 110 $conf_Juza['Juza_Auto_CS'] = isset($_POST['Juza_Auto_CS']) ? true:false;111 102 $conf['Juza Config'] = serialize($conf_Juza); 112 103 $query = 'REPLACE INTO '.CONFIG_TABLE.' … … 138 129 $template->assign('Juza_shift2', 150-$conf_Juza['Juza_height']); 139 130 $template->assign('Juza_shift3', -(12+$conf_Juza['Juza_height'])); 140 if ($conf_Juza['Juza_Auto_CS']) $template->assign('Juza_Auto_CS', 'checked="checked"');141 131 } 142 132 function Juza_default() { … … 144 134 'Juza_width' => 885, 145 135 'Juza_height' => 240, 146 'Juza_shift' => -160, 147 'Juza_Auto_CS' => true,); 136 'Juza_shift' => -160,); 148 137 } 149 138 ?>
Note: See TracChangeset
for help on using the changeset viewer.