Changeset 896
- Timestamp:
- 09/05/08 01:33:40 (3 months ago)
- Location:
- plugins/hpm/trunk
- Files:
-
- 4 modified
-
habaripackage.php (modified) (1 diff)
-
habaripackages.php (modified) (2 diffs)
-
hpm.plugin.php (modified) (1 diff)
-
templates/hpm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/hpm/trunk/habaripackage.php
r884 r896 218 218 private function trigger_hooks( $hook ) 219 219 { 220 $install_profile = $this->install_profile; 220 221 switch ( $this->type ) { 221 222 case 'plugin': 222 foreach( $ this->install_profile as $file => $install_location ) {223 foreach( $install_profile as $file => $install_location ) { 223 224 if ( strpos( basename($file), '.plugin.php' ) !== false ) { 224 225 $plugin_file = HABARI_PATH . $install_location; -
plugins/hpm/trunk/habaripackages.php
r884 r896 222 222 public static function tempnam() 223 223 { 224 return tempnam( HABARI_PATH . '/3rdparty/hpm', 'HPM-' );224 return tempnam( self::tempdir(), 'HPM-' ); 225 225 } 226 226 … … 228 228 { 229 229 $tmp_dir = 'HPM-' . md5( UUID::get() ); 230 if ( is_writable( HABARI_PATH . "/3rdparty/hpm" ) ) { 231 $tmp_dir = HABARI_PATH . "/3rdparty/hpm/$tmp_dir"; 232 } 233 else { 234 $tmp_dir = sys_get_temp_dir() . "/$tmp_dir"; 235 } 230 $tmp_dir = HABARI_PATH . "/3rdparty/$tmp_dir"; 236 231 mkdir( $tmp_dir, 0777 ); 237 232 return $tmp_dir; -
plugins/hpm/trunk/hpm.plugin.php
r884 r896 230 230 public function action_auth_ajax_hpm_packages( $handler ) 231 231 { 232 Plugins::act('hpm_init'); 232 233 $theme = Themes::create( 'admin', 'RawPHPEngine', dirname(__FILE__) .'/' ); 233 234 $search = isset( $handler->handler_vars['search'] ) ? $handler->handler_vars['search'] : ''; -
plugins/hpm/trunk/templates/hpm.php
r566 r896 5 5 <span class="search pct100"><input id="search" type="search" placeholder="Type and wait to search for any entry component" autosave="habaricontent" results="100" value=""></span> 6 6 7 < span class="special_search pct100">8 < a href="#plugin">Plugins</a>9 < a href="#theme">Themes</a>10 < a href="#admin">Administration</a>11 < a href="#spam">Spam Filter</a>12 < a href="#service">3rdparty Services</a>13 < a href="#two column">Two Column</a>14 < a href="#blue">Blue</a>15 < a href="#pink">Pink</a>16 </ span>7 <ul class="dropbutton special_search"> 8 <li><a href="#plugin">Plugins</a></li> 9 <li><a href="#theme">Themes</a></li> 10 <li><a href="#admin">Administration</a></li> 11 <li><a href="#spam">Spam Filter</a></li> 12 <li><a href="#service">3rdparty Services</a></li> 13 <li><a href="#two column">Two Column</a></li> 14 <li><a href="#blue">Blue</a></li> 15 <li><a href="#pink">Pink</a></li> 16 </ul> 17 17 </div> 18 18 … … 26 26 </div> 27 27 28 <div id="comments"> 29 <div class="container items entries"> 28 <div id="comments" class="container manage comments"> 30 29 <?php $theme->display( 'hpm_packages' ); ?> 31 </div>32 30 </div> 33 31 34 32 <script type="text/javascript"> 35 liveSearch.search= function() { 36 spinner.start(); 37 38 $.post( 39 '<?php echo URL::get('auth_ajax', array('context' => 'hpm_packages')) ?>', 40 '&search=' + liveSearch.input.val(), 41 function(json) { 42 $('.entries').html(json.items); 43 spinner.stop(); 44 itemManage.initItems(); 45 findChildren() 46 }, 47 'json' 48 ); 49 }; 33 itemManage.fetchURL = "<?php echo URL::get('auth_ajax', array('context' => 'hpm_packages')) ?>"; 34 itemManage.fetchReplace = $('#comments'); 50 35 </script> 51 36
