function metsave($url, $text, $depth, $htm, $gent, $prent) { global $db, $met_config, $lang, $met_sitemap_auto, $adminmodify; $htm = $htm != '' ? delnull($htm) : ''; $url = $url == '-1' ? $url : urlencode($url); $text = urlencode($text); $gent = urlencode($gent); if ($met_sitemap_auto == 0) { $gent = ''; } if ($htm) { $query = "INSERT INTO {$met_config} SET name='metsave_html_list',value='{$htm}',lang='{$lang}'"; $db->query($query); $htm = mysql_insert_id(); } $url = $depth . "../include/turnover.php?geturl={$url}&adminmodify={$adminmodify}&text={$text}&gent={$gent}&hml={$htm}&prent={$prent}"; echo "<script type='text/javascript'>location.href='{$url}';</script>"; exit; }
function metsave($url, $text, $depth, $htm, $gent, $prent) { global $db, $met_config, $lang, $met_sitemap_auto, $adminmodify, $met_weburl, $met_adminfile, $lang_physicaldelok; if (strstr($url, 'app/dlapp/')) { header('location:' . $met_weburl . $met_adminfile . '/index.php?anyid=44&n=myapp&c=myapp&a=doindex&lang=' . $lang . '&turnovertext=' . $lang_physicaldelok); die; } $htm = $htm != '' ? delnull($htm) : ''; $url = $url == '-1' ? $url : urlencode($url); $text = urlencode($text); $gent = urlencode($gent); if ($met_sitemap_auto == 0) { $gent = ''; } if ($htm) { $query = "INSERT INTO {$met_config} SET name='metsave_html_list',value='{$htm}',lang='{$lang}'"; $db->query($query); $htm = mysql_insert_id(); } $url = $depth . "../include/turnover.php?geturl={$url}&adminmodify={$adminmodify}&text={$text}&gent={$gent}&hml={$htm}&prent={$prent}"; echo "<script type='text/javascript'>location.href='{$url}';</script>"; exit; }