public function processform() { $plugin = tshortcode::i(); //$plugin->setcodes($_POST['codes']); $plugin->items = tini2array::parsesection($_POST['codes']); $plugin->save(); }
public function addtext($name, $section, $s) { $s = trim($s); if ($s != '') { $this->addsection($name, $section, tini2array::parsesection($s)); } }
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; }
public function processform() { $contact = tcontactform::singleinstance('tcontactform'); $contact->data['extra'] = tini2array::parsesection(trim($_POST['items'])); $contact->save(); }