Changeset 2338 for plugins/pollsFactory/inc
- Timestamp:
- 06/09/10 03:12:52 (13 years ago)
- Location:
- plugins/pollsFactory/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pollsFactory/inc/class.pollsfactory.chart.php
r2240 r2338 30 30 # Cache directory 31 31 $this->cache_dir = path::real(DC_TPL_CACHE); 32 $use_cache = (boolean) $core->blog->settings->pollsFactory _graph_cache;32 $use_cache = (boolean) $core->blog->settings->pollsFactory->pollsFactory_graph_cache; 33 33 if (!$use_cache || !is_dir($this->cache_dir) || !is_writable($this->cache_dir)) { 34 34 $this->cache_dir = null; 35 35 } 36 36 # Image properties 37 $this->prop = @unserialize($core->blog->settings->pollsFactory _graph_options);37 $this->prop = @unserialize($core->blog->settings->pollsFactory->pollsFactory_graph_options); 38 38 if (!is_array($this->prop) || empty($this->prop)){ 39 39 $this->prop = self::defaultOptions(); … … 42 42 } 43 43 # Last update 44 $this->trigger = (integer) $core->blog->settings->pollsFactory _graph_trigger;44 $this->trigger = (integer) $core->blog->settings->pollsFactory->pollsFactory_graph_trigger; 45 45 } 46 46 -
plugins/pollsFactory/inc/class.pollsfactory.php
r2146 r2338 34 34 $chk = false; 35 35 $poll_id = (integer) $poll_id; 36 $ident = (integer) $this->core->blog->settings->pollsFactory _people_ident;36 $ident = (integer) $this->core->blog->settings->pollsFactory->pollsFactory_people_ident; 37 37 38 38 # Cookie … … 104 104 105 105 # Cookie 106 if($this->core->blog->settings->pollsFactory _people_ident < 2)106 if($this->core->blog->settings->pollsFactory->pollsFactory_people_ident < 2) 107 107 { 108 108 $list = isset($_COOKIE['pollsFactoryVotes']) ? … … 113 113 } 114 114 # Ident 115 $ip = $this->core->blog->settings->pollsFactory _people_ident > 0 ?115 $ip = $this->core->blog->settings->pollsFactory->pollsFactory_people_ident > 0 ? 116 116 $this->con->escape(http::realIP()) : 117 117 substr(http::browserUID(DC_MASTER_KEY),0,24); -
plugins/pollsFactory/inc/index.polls.php
r2146 r2338 288 288 if ($core->auth->check('publish,contentadmin',$core->blog->id)) 289 289 { 290 $combo_action[__(' publish')] = 'publish';291 $combo_action[__(' unpublish')] = 'unpublish';292 $combo_action[__(' schedule')] = 'schedule';293 $combo_action[__(' mark as pending')] = 'pending';294 $combo_action[__(' open voting')] = 'open';295 $combo_action[__(' close voting')] = 'close';296 } 297 $combo_action[__(' mark as selected')] = 'selected';298 $combo_action[__(' mark as unselected')] = 'unselected';290 $combo_action[__('Status')][__('Publish')] = 'publish'; 291 $combo_action[__('Status')][__('Unpublish')] = 'unpublish'; 292 $combo_action[__('Status')][__('Schedule')] = 'schedule'; 293 $combo_action[__('Status')][__('Mark as pending')] = 'pending'; 294 $combo_action[__('Votes')][__('Open voting')] = 'open'; 295 $combo_action[__('Votes')][__('Close voting')] = 'close'; 296 } 297 $combo_action[__('Mark')][__('Mark as selected')] = 'selected'; 298 $combo_action[__('Mark')][__('Mark as unselected')] = 'unselected'; 299 299 if ($core->auth->check('delete,contentadmin',$core->blog->id)) 300 300 { 301 $combo_action[__(' delete')] = 'delete';301 $combo_action[__('Delete')][__('Delete')] = 'delete'; 302 302 } 303 303 -
plugins/pollsFactory/inc/index.setting.php
r2240 r2338 32 32 if ($default_tab == 'setting' && $action == 'savesetting') 33 33 { 34 try {35 $s->setNameSpace('pollsFactory');34 try 35 { 36 36 $s->put('pollsFactory_active',!empty($_POST['active'])); 37 37 $s->put('pollsFactory_people_ident', (integer) $_POST['people_ident']); … … 53 53 } 54 54 55 $s->setNameSpace('system');56 55 $core->blog->triggerBlog(); 57 56 58 57 http::redirect($p_url.'&tab=setting&msg='.$action.'§ion='.$section); 59 58 } 60 catch (Exception $e) { 59 catch (Exception $e) 60 { 61 61 $core->error->add($e->getMessage()); 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.