<?php require_once('/home/www/www.onetipp.com/library/Template.inc.php'); require_once('/home/www/www.onetipp.com/library/Functions.inc.php'); require_once('/home/www/www.onetipp.com/library/sentence/autoloader.php'); $design = new Template(); $func = new Functions(); $sent = new Sentence(); //1: Textannahme mit PHP $text = $_REQUEST['textOrginal']; $sentences = $sent->split($text); $SynChangedText = ""; foreach ($sentences as $s) { $s_md5 = md5($s); $s_url = "http://sempria.de:3309/reformulate?s=$s&enc=utf8"; $t = $func->get_html($s_url); $t_md5 = md5($t); $SynChangedText .= $t; // echo "$s -> md5: $s_md5<br>"; // echo "<b>$t -> md5: $t_md5</b><br>"; // echo "<br>"; } $content = array_merge( array('robots'=>"INDEX,FOLLOW,ALL"), array('title'=>"Unique Content Creation by OneTIPP.COM!"), array('onetipp_original'=>$text), array('onetipp_results'=>$SynChangedText), array('description'=>"Kopiere einen Text und erstelle vollautomatisch einen neuen Text!") ); $design->setPath("/home/www/www.onetipp.com/tpl-new"); $design->display('startpage_new', $content, true, false); exit(0); ?>