示例#1
0
dbconnect();
$sql_cat_work = "UPDATE `".get_db_table("link")."` SET `isfreigeschaltet`='".$ca_aktiv."' WHERE `id_link`='".$pageid."' ";
mysql_query($sql_cat_work) OR die("error");
##### Bestätigungs Mail senden #####

if(get_link_typ($pageid)=="0")
{
$mail_txt=get_free_mail();
}elseif(get_link_typ($pageid)=="1")
{
$mail_txt=get_prem_mail();
# eintrag in prem_links
add_premlink($pageid,get_prempaydate(),get_prempayenddate(),get_premrememberdate());
}

$profil_url = get_setting_data(url)."/".$pageid."-".getUrlName(getItemLinkById($pageid))."/4.html";
$mt1 = str_replace("{webkataloglogo}", get_setting_data('url')."/".get_setting_data('logo'), $mail_txt);
$mt2 = str_replace("{webkatalogname}", get_setting_data('name'), $mt1);
$mt3 = str_replace("{profil_url}", $profil_url, $mt2);
$mt4 = str_replace("{passwort}", get_link_passwort_by_id($pageid), $mt3);
$mt  = str_replace("{url}", get_link_url_by_id($pageid), $mt4);

$webmasterMail=get_setting_data("email");
$subject="Bestätigungs E-Mail von ".get_setting_data("name");
$mailUser=get_link_email($pageid);
$header .= "From: $webmasterMail\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "X-Mailer: PHP ". phpversion();

$mail='<html><body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" bgcolor="#FFFFFF"><div align="center"><table style="margin-top:10px; margin-bottom:15px;color:#000000; text-align:left; font-family:Arial, Helvetica, sans-serif; font-size:12px;" border="0" width="619px" cellpadding="0" cellspacing="0"><tr><td valign="top" width="619px" height="300px"><br>'.$mt.'<br></td></tr></table></body></html>';
示例#2
0
 /**
  * Обработчик действия: Изменение страницы.
  */
 function EditPage()
 {
     $row = A::$DB->getRowById($_REQUEST['id'], SECTION);
     if (!$row) {
         return false;
     }
     $_REQUEST['date'] = time();
     $_REQUEST['name'] = strip_tags($_REQUEST['name']);
     $_REQUEST['urlname'] = getUrlName($_REQUEST['name'], $_REQUEST['urlname'], SECTION, "type='page' AND idker={$row['idker']} AND id<>" . $row['id']);
     $_REQUEST['keywords'] = getkeywords($_REQUEST['content']);
     $_REQUEST['description'] = truncate($_REQUEST['content'], 350);
     $_REQUEST["template"] = preg_replace("/[^a-zA-Z0-9._-]+/i", "", $_REQUEST["template"]);
     $_REQUEST['active'] = isset($_REQUEST['active']) ? 'Y' : 'N';
     $_REQUEST['inmap'] = isset($_REQUEST['inmap']) ? 'Y' : 'N';
     $dataset = new A_DataSet(SECTION, true);
     $dataset->fields = array("date", "name", "urlname", "keywords", "description", "content", "tags", "template", "active", "inmap");
     if ($row = $dataset->Update()) {
         $name = getTreePath(SECTION, $row['level'] == 0 || $row['urlname'] != 'index' ? $row['id'] : $row['idker'], " - ");
         if ($_REQUEST['active'] == 'Y') {
             A::$OBSERVER->Event('searchIndexUpdate', SECTION, array('id' => $row['id'], 'name' => $name, 'content' => $_REQUEST['content'], 'tags' => $_REQUEST['tags']));
         } else {
             A::$OBSERVER->Event('searchIndexDelete', SECTION, array('id' => $row['id']));
         }
         if (!empty($_REQUEST["template"])) {
             copyfile("modules/pages/templates/default/pages_page.tpl", "templates/" . DOMAIN . "/" . $_REQUEST["template"]);
         }
         while ($row['idker']) {
             if ($row = A::$DB->getRowById($row['idker'], SECTION)) {
                 A::$DB->Update(SECTION, array('date' => $_REQUEST['date']), "id=" . $row['id']);
             }
         }
         return true;
     } else {
         return false;
     }
 }
dbconnect();
$sql_sitemap_data2 = "SELECT * FROM ".get_db_table('categorie')." WHERE aktiv = 'ja' ";
$result_sitemap_data2 = mysql_query($sql_sitemap_data2) OR die(mysql_error());
while($get_sitemap2 = mysql_fetch_assoc($result_sitemap_data2))
{
if($get_sitemap2['id_ober_kategorie'] == "0"){ $paid="2"; } else { $paid="3"; }
$sitemap_url = $page_url."/".$get_sitemap2['alias']."/". $paid.".html";
echo "<url><loc>".$sitemap_url."</loc>";
echo "<lastmod>2009-07-06</lastmod>";
echo "<changefreq>monthly</changefreq>";
echo "<priority>0.5</priority></url>";
}


#7-draw-design/4.html
dbconnect();
$sql_sitemap_data2 = "SELECT * FROM ".get_db_table('link')." WHERE isfreigeschaltet = '1' ";
$result_sitemap_data2 = mysql_query($sql_sitemap_data2) OR die(mysql_error());
while($get_sitemap2 = mysql_fetch_assoc($result_sitemap_data2))
{
if($get_sitemap2['id_ober_kategorie'] == "0"){ $paid="2"; } else { $paid="3"; }
$sitemap_url = $page_url."/".$get_sitemap2['id_link']."-".getUrlName($get_sitemap2['url'])."/4html";
echo "<url><loc>".$sitemap_url."</loc>";
echo "<lastmod>2009-07-06</lastmod>";
echo "<changefreq>monthly</changefreq>";
echo "<priority>0.5</priority></url>";
}

echo"</urlset>";
?>