<?php $_ginfo["page"] = curfilename(); $_ginfo["query"] = array(); $formconv = array("dob" => array(function ($inp, $add = array()) { mergeifunset($add, array('format' => null)); if (isset($inp["dob"])) { $inp["dob"] = Fun::timetostr_t3($inp["dob"], $add["format"]); } return $inp; }, function ($inp, $add = array()) { mergeifunset($add, array('format' => null)); if (isset($inp["dob"])) { $inp["dob"] = Fun::strtotime_t3($inp["dob"], $add["format"]); } return $inp; }), "name" => array(function ($inp, $add = array()) { if (isset($inp["name"])) { $msvar = explode(" ", $inp["name"] . " ", 2); mergeifunset($inp, map(array("fname", "lname"), f('$msvar[$ind]'), array("isindexed" => true))); } return $inp; }, function ($inp) { if (isallset(array("fname", "lname"), $inp)) { $inp["name"] = $inp["fname"] . " " . $inp["lname"]; } return $inp; }));
public static function dummymm($to, $sub, $body, $add = array()) { $cont = "To : " . $to . "\nSub : " . $sub . "\nTime : " . Fun::timetostr(time()) . "\n\n" . $body . "\n\n" . json_encode($add) . "\n\n----------------------------------------------------\n"; mergeifunset($add, array("file" => "data/mailf")); $oldc = file_exists($add["file"]) ? file_get_contents($add["file"]) : ""; file_put_contents($add["file"], $oldc . $cont); return chmod($add["file"], 0777); }
function input3($inp) { foreach ($inp as $key => $val) { ${$key} = $val; } mergeifunset($inpattr, array("name" => $name, "type" => $type, "dc" => $dc, "id" => rit("input3_" . $id, $id != ''))); mergeifunset($divattr, array("class" => $divclass)); ?> <div <?php echo param2str($divattr); ?> > <input <?php echo param2str($inpattr); ?> > <label for="<?php echo $inpattr["id"]; ?> " ><?php echo $label; ?> </label> </div> <?php }
function dummyheight($inp, $params = array()) { //dummy height div $inp = 0 + $inp; mergeifunset($params, array("style" => "height:" . $inp . "px", 'innerHTML' => '')); ocloset("div", $params['innerHTML'], $params); }