7,8c7
< // Modified: 2008-06-13 [v1.1] by: Petr Vaněk aka krteczek added Texyla, added function o()
< // Modified: 2008-06-14 [v1.1] by: Petr Vaněk aka krteczek: patch the texy error when non use Texyla editor
---
> 
21,44c20,29
< 
< //edit byx krteczek: path to use Texyla
< if($which_editor == 6)
< 	{
< 		# when use Texyla
< 		$content = o(texyla($_POST['ta'], 'admin', 'utf-8'));
< 		$texy = o($_POST['ta']); //added for Texyla
< 	}
< else
< 	{
< 		# non use Texyla
< 		$content = o($_POST['ta']);
< 		$texy = o($_POST['ta']); //added for Texyla
< 	}
< 
< $pagetitle = o($_POST['pagetitle']);
< $description = o($_POST['description']);
< $alias = o($_POST['alias']);
< $isfolder = o($_POST['isfolder']);
< $richtext = o($_POST['richtext']);
< $published = o($_POST['published']);
< $parent = $_POST['parent']!='' ? o($_POST['parent']) : 0;
< $template = o($_POST['template']);
< $menuindex = o($_POST['menuindex']);
---
> $content = addslashes($_POST['ta']);
> $pagetitle = addslashes($_POST['pagetitle']);
> $description = addslashes($_POST['description']);
> $alias = addslashes($_POST['alias']);
> $isfolder = $_POST['isfolder'];
> $richtext = $_POST['richtext'];
> $published = $_POST['published'];
> $parent = $_POST['parent']!='' ? $_POST['parent'] : 0;
> $template = $_POST['template'];
> $menuindex = $_POST['menuindex'];
46,58c31,43
< $searchable = o($_POST['searchable']);
< $cacheable = o($_POST['cacheable']);
< $syncsite = o($_POST['syncsite']);
< $createdon = o($_POST['createdon']);
< $pub_date = o($_POST['pub_date']);
< $unpub_date = o($_POST['unpub_date']);
< $document_groups = o($_POST['document_groups']);
< $type = o($_POST['type']);
< $keywords = o($_POST['keywords']);
< $contentType = o($_POST['contentType']);
< $longtitle = o($_POST['setitle']);
< $authenticate = o($_POST['authenticate']);
< $showinmenu = o($_POST['showinmenu']);
---
> $searchable = $_POST['searchable'];
> $cacheable = $_POST['cacheable'];
> $syncsite = $_POST['syncsite'];
> $createdon = $_POST['createdon'];
> $pub_date = $_POST['pub_date'];
> $unpub_date = $_POST['unpub_date'];
> $document_groups = $_POST['document_groups'];
> $type = $_POST['type'];
> $keywords = $_POST['keywords'];
> $contentType = $_POST['contentType'];
> $longtitle = addslashes($_POST['setitle']);
> $authenticate = $_POST['authenticate'];
> $showinmenu = $_POST['showinmenu'];
181,182c166,167
<     $sql = "INSERT INTO $dbase.".$table_prefix."site_content(content, texy, pagetitle, longtitle, type, description, alias, isfolder, richtext, published, parent, template, menuindex, searchable, cacheable, createdby, createdon, editedby, editedon, pub_date, unpub_date, contentType, authenticate, showinmenu)
<         VALUES('".$content."', '" . $texy . "', '".$pagetitle."', '".$longtitle."', '".$type."', '".$description."', '".$alias."', '".$isfolder."', '".$richtext."', '".$published."', '".$parent."', '".$template."', '".$menuindex."', '".$searchable."', '".$cacheable."', ".$_SESSION['internalKey'].", ".time().", ".$_SESSION['internalKey'].", ".$createdon.", $pub_date, $unpub_date, '$contentType', '$authenticate', '$showinmenu')";
---
>     $sql = "INSERT INTO $dbase.".$table_prefix."site_content(content, pagetitle, longtitle, type, description, alias, isfolder, richtext, published, parent, template, menuindex, searchable, cacheable, createdby, createdon, editedby, editedon, pub_date, unpub_date, contentType, authenticate, showinmenu)
>         VALUES('".$content."', '".$pagetitle."', '".$longtitle."', '".$type."', '".$description."', '".$alias."', '".$isfolder."', '".$richtext."', '".$published."', '".$parent."', '".$template."', '".$menuindex."', '".$searchable."', '".$cacheable."', ".$_SESSION['internalKey'].", ".time().", ".$_SESSION['internalKey'].", ".$createdon.", $pub_date, $unpub_date, '$contentType', '$authenticate', '$showinmenu')";
305c290
<     $sql = "UPDATE $dbase.".$table_prefix."site_content SET content='$content',texy='$texy', pagetitle='$pagetitle', longtitle='$longtitle', type='$type', description='$description', alias='$alias',
---
>     $sql = "UPDATE $dbase.".$table_prefix."site_content SET content='$content', pagetitle='$pagetitle', longtitle='$longtitle', type='$type', description='$description', alias='$alias',
