コード例 #1
0
 public function processform()
 {
     $plugin = tshortcode::i();
     //$plugin->setcodes($_POST['codes']);
     $plugin->items = tini2array::parsesection($_POST['codes']);
     $plugin->save();
 }
コード例 #2
0
 public function addtext($name, $section, $s)
 {
     $s = trim($s);
     if ($s != '') {
         $this->addsection($name, $section, tini2array::parsesection($s));
     }
 }
コード例 #3
0
 public static function getabout(array &$files)
 {
     if ($about_ini = self::getfile($files, 'about.ini')) {
         $about_ini = trim($about_ini);
         //trim unicode sign
         $about_ini = substr($about_ini, strpos($about_ini, '['));
         $about = tini2array::parse($about_ini);
         if (isset($about[litepublisher::$options->language])) {
             $about['about'] = $about[litepublisher::$options->language] + $about['about'];
         }
         return $about['about'];
     }
     return false;
 }
コード例 #4
0
 public function processform()
 {
     $contact = tcontactform::singleinstance('tcontactform');
     $contact->data['extra'] = tini2array::parsesection(trim($_POST['items']));
     $contact->save();
 }