Example #1
0
function gnavi_addinfo_array($str, $myts)
{
    $str = gnavi_addinfo_reg($str);
    $strarray = explode("<", $str);
    $foo = array();
    $i = 0;
    foreach ($strarray as $item) {
        $itemarray = explode(">", $item);
        if (count($itemarray) > 1) {
            $foo[$i] = array('title' => $myts->makeTboxData4Show(trim($itemarray[0])), 'desc' => $myts->displayTarea(trim($itemarray[1]), 0, 1, 1, 1, 1, 1));
            $i++;
        }
    }
    return $foo;
}
Example #2
0
    $caption = $myts->stripSlashesGPC($_POST["caption"]);
    $caption1 = $myts->stripSlashesGPC($_POST["caption1"]);
    $caption2 = $myts->stripSlashesGPC($_POST["caption2"]);
    $url = $myts->stripSlashesGPC($_POST["url"]);
    $url = preg_match('/^(https?|ftp)(:\\/\\/[-_.!~*\'()a-zA-Z0-9;\\/?:\\@&=+\\$,%#]+)$/', $url) ? $url : "";
    $rss = $myts->stripSlashesGPC(@$_POST["rss"]);
    $rss = preg_match('/^(https?|ftp)(:\\/\\/[-_.!~*\'()a-zA-Z0-9;\\/?:\\@&=+\\$,%#]+)$/', $rss) ? $rss : "";
    $tel = $myts->stripSlashesGPC($_POST["tel"]);
    $fax = $myts->stripSlashesGPC($_POST["fax"]);
    $zip = $myts->stripSlashesGPC($_POST["zip"]);
    $address = $myts->stripSlashesGPC($_POST["address"]);
    $lat = floatval($myts->stripSlashesGPC(@$_POST["lat"]));
    $lng = floatval($myts->stripSlashesGPC(@$_POST["lng"]));
    $zoom = intval($myts->stripSlashesGPC(@$_POST["z"]));
    $mtype = !in_array($myts->stripSlashesGPC(@$_POST["mt"]), $gnavi_maptypes) ? "" : $myts->stripSlashesGPC(@$_POST["mt"]);
    $addinfo = gnavi_addinfo_reg($myts->stripSlashesGPC(@$_POST["addinfo"]));
    // ken add postername
    $poster_name = empty($_POST['poster_name']) ? '' : $myts->stripSlashesGPC(@$_POST['poster_name']);
    if (trim($poster_name) == "") {
        $poster_name = _GNAV_CAPTION_GUESTNAME;
        $submitter = 0;
    }
    if (!gnavi_check_name_from_uid($submitter, $poster_name)) {
        //if postername difference from uid then force guest witer
        $submitter = 0;
    }
}
// Do Modify
if (!empty($_POST['submit'])) {
    // Ticket Check
    if (!$xoopsGTicket->check()) {