Replaced '<?php' with '<?'
This commit is contained in:
@@ -43,16 +43,16 @@ try {
|
||||
$sContent = '';
|
||||
|
||||
if ($withWS) {
|
||||
//creating sys.info;
|
||||
//creating sys.info;
|
||||
$SITE_PUBLIC_PATH = '';
|
||||
if (file_exists ( $SITE_PUBLIC_PATH . '' )) {}
|
||||
|
||||
//creating the first file
|
||||
//creating the first file
|
||||
require_once 'classes/model/Dynaform.php';
|
||||
$oDynaform = new Dynaform ( );
|
||||
$aDynaform = $oDynaform->load ( $sDYNAFORM );
|
||||
$dynTitle = str_replace ( ' ', '_', str_replace ( '/', '_', $aDynaform['DYN_TITLE'] ) );
|
||||
$sContent = "<?\n";
|
||||
$sContent = "<?php\n";
|
||||
$sContent .= "global \$_DBArray;\n";
|
||||
$sContent .= "if (!isset(\$_DBArray)) {\n";
|
||||
$sContent .= " \$_DBArray = array();\n";
|
||||
@@ -63,7 +63,7 @@ try {
|
||||
$sContent .= "\$G_PUBLISH->AddContent('dynaform', 'xmlform', '" . $sPRO_UID . '/' . $sDYNAFORM . "', '', array(), '" . $dynTitle . 'Post.php' . "');\n";
|
||||
$sContent .= "G::RenderPage('publish', 'blank');";
|
||||
file_put_contents ( $pathProcess . $dynTitle . '.php', $sContent );
|
||||
//creating the second file, the post file who receive the post form.
|
||||
//creating the second file, the post file who receive the post form.
|
||||
$pluginTpl = PATH_CORE . 'templates' . PATH_SEP . 'processes' . PATH_SEP . 'webentryPost.tpl';
|
||||
$template = new TemplatePower ( $pluginTpl );
|
||||
$template->prepare ();
|
||||
@@ -90,7 +90,7 @@ try {
|
||||
|
||||
$fileName = $pathProcess . $dynTitle . 'Post.php';
|
||||
file_put_contents ( $fileName, $template->getOutputContent () );
|
||||
//creating the third file, only if this wsClient.php file doesn't exists.
|
||||
//creating the third file, only if this wsClient.php file doesn't exists.
|
||||
$fileName = $pathProcess . 'wsClient.php';
|
||||
$pluginTpl = PATH_CORE . 'test' . PATH_SEP . 'unit' . PATH_SEP . 'ws' . PATH_SEP . 'wsClient.php';
|
||||
|
||||
@@ -109,9 +109,9 @@ try {
|
||||
file_put_contents ( $fileName, $template->getOutputContent () );
|
||||
}
|
||||
|
||||
//Show link
|
||||
//Show link
|
||||
$link = $http . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/' . $sPRO_UID . '/' . $dynTitle . '.php';
|
||||
//print "\n<a href='$link' target='_new' > $link </a>";
|
||||
//print "\n<a href='$link' target='_new' > $link </a>";
|
||||
|
||||
|
||||
} else {
|
||||
@@ -123,7 +123,7 @@ try {
|
||||
$scriptCode = str_replace ( '/controls/', $http . $_SERVER['HTTP_HOST'] . '/controls/', $scriptCode );
|
||||
$scriptCode = str_replace ( '/js/maborak/core/images/', $http . $_SERVER['HTTP_HOST'] . '/js/maborak/core/images/', $scriptCode );
|
||||
|
||||
//render the template
|
||||
//render the template
|
||||
$pluginTpl = PATH_CORE . 'templates' . PATH_SEP . 'processes' . PATH_SEP . 'webentry.tpl';
|
||||
$template = new TemplatePower ( $pluginTpl );
|
||||
$template->prepare ();
|
||||
|
||||
Reference in New Issue
Block a user