Ejemplo n.º 1
0
 public function post_skype()
 {
     $skype = Input::get('api');
     $skype = trim($skype);
     $settings = IniHandle::readini();
     $settings['skypeapi'] = $skype;
     IniHandle::write_ini_file($settings);
     return \Laravel\Redirect::to('/admin/booter/skype');
 }
Ejemplo n.º 2
0
 public function post_ipbl()
 {
     $price = Input::Get('price');
     if (empty($price) || !is_numeric($price)) {
         return View::make('msg.error')->with('error', 'Invalid price set');
     }
     $settings = IniHandle::readini();
     $settings['ipbl'] = $price;
     IniHandle::write_ini_file($settings);
     return Redirect::to('/admin/plan/blacklist');
 }
Ejemplo n.º 3
0
 public function get_dump()
 {
     $settings = IniHandle::readini();
     $methods = $settings['methods'];
     $api = $settings['skypeapi'];
     $skypebl = $settings['skypebl'];
     $ipbl = $settings['ipbl'];
     $result = array();
     foreach ($settings as $key => $value) {
         $result[$key] = '';
     }
     $result['pagetitle'] = 'PrettyBoot';
     $result['name_part1'] = 'Pretty';
     $result['name_part2'] = 'Boot';
     $result['booterstatus'] = 1;
     $result['methods'] = $methods;
     $result['skypeapi'] = $api;
     $result['skypebl'] = $skypebl;
     $result['ipbl'] = $ipbl;
     $result['ppcurrency'] = 'USD';
     IniHandle::write_ini_file($result);
     return Redirect::to('/admin/settings');
 }