mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
gsitemap - code clean-up
indentation, methods, etc.
This commit is contained in:
@@ -188,9 +188,9 @@ class gsitemap
|
|||||||
|
|
||||||
if($sql->select("gsitemap", "*", "gsitemap_id='".$e_idt[0]."' "))
|
if($sql->select("gsitemap", "*", "gsitemap_id='".$e_idt[0]."' "))
|
||||||
{
|
{
|
||||||
$foo = $sql -> db_Fetch();
|
$foo = $sql->fetch();
|
||||||
$foo['gsitemap_name'] = $tp -> toFORM($foo['gsitemap_name']);
|
$foo['gsitemap_name'] = $tp->toForm($foo['gsitemap_name']);
|
||||||
$foo['gsitemap_url'] = $tp -> toFORM($foo['gsitemap_url']);
|
$foo['gsitemap_url'] = $tp->toForm($foo['gsitemap_url']);
|
||||||
|
|
||||||
$this->doForm($foo);
|
$this->doForm($foo);
|
||||||
}
|
}
|
||||||
@@ -337,7 +337,7 @@ class gsitemap
|
|||||||
|
|
||||||
$ns = e107::getRender();
|
$ns = e107::getRender();
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$sql2 = e107::getDb('sql2');
|
//$sql2 = e107::getDb('sql2'); not used?
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
|
|
||||||
@@ -482,10 +482,13 @@ class gsitemap
|
|||||||
foreach($_POST['importid'] as $import)
|
foreach($_POST['importid'] as $import)
|
||||||
{
|
{
|
||||||
list($name, $url, $type) = explode("^", $import);
|
list($name, $url, $type) = explode("^", $import);
|
||||||
|
|
||||||
$name = $tp->toDB($name);
|
$name = $tp->toDB($name);
|
||||||
$url = $tp->toDB($url);
|
$url = $tp->toDB($url);
|
||||||
$sql -> db_Insert("gsitemap", "0, '$name', '$url', '".time()."', '".$_POST['import_freq']."', '".$_POST['import_priority']."', '$type', '0', '', '0' ");
|
|
||||||
|
$sql->insert("gsitemap", "0, '$name', '$url', '".time()."', '".$_POST['import_freq']."', '".$_POST['import_priority']."', '$type', '0', '', '0' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->message = count($_POST['importid'])." link(s) imported.";
|
$this->message = count($_POST['importid'])." link(s) imported.";
|
||||||
$log->log_event('GSMAP_01',$this->message, E_LOG_INFORMATIVE,'');
|
$log->log_event('GSMAP_01',$this->message, E_LOG_INFORMATIVE,'');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user