Replaced '<?php' with '<?'

This commit is contained in:
abraar
2011-01-06 11:11:53 +00:00
parent 693ea10113
commit 3562b03fa3
19 changed files with 41 additions and 41 deletions

View File

@@ -51,7 +51,7 @@
</tr> </tr>
<tr> <tr>
<td width="50%" height="16" valign="bottom" class="title"> <td width="50%" height="16" valign="bottom" class="title">
<div align="right"><? //aca iba el título ?></div> <div align="right"><?php //aca iba el título ?></div>
</td> </td>
</tr> </tr>
</table> </table>

View File

@@ -129,7 +129,7 @@ XML:
tag any tag from "<" till ">" tag any tag from "<" till ">"
comment comment comment comment
pi processing instruction (<? ... ?>) pi processing instruction (<?php ... ?>)
cdata CDATA section cdata CDATA section
attribute attribute attribute attribute
value attribute's value value attribute's value

View File

@@ -133,7 +133,7 @@ XML:
tag любой открывающий или закрывающий тег от "<" до ">" tag любой открывающий или закрывающий тег от "<" до ">"
comment комментарий comment комментарий
pi инструкции обработки (<? ... ?>) pi инструкции обработки (<?php ... ?>)
cdata раздел CDATA cdata раздел CDATA
attribute атрибут attribute атрибут
value значение атрибута value значение атрибута

View File

@@ -365,7 +365,7 @@ class G
<td colspan=2 nowrap><font color=gray>File: $file</font></td></tr> <td colspan=2 nowrap><font color=gray>File: $file</font></td></tr>
"; ";
for ($i = $start; $i <= $end; $i++) { for ($i = $start; $i <= $end; $i++) {
$str = @highlight_string ("<?" . $__src_array[$file][$i-1] . "?>", TRUE); $str = @highlight_string ("<?php" . $__src_array[$file][$i-1] . "?>", TRUE);
$pos1 = strpos ($str,"&lt;?"); $pos1 = strpos ($str,"&lt;?");
$pos2 = strrpos ($str,"?&gt;"); $pos2 = strrpos ($str,"?&gt;");
@@ -1651,7 +1651,7 @@ class G
} }
} }
$f = fopen( $cacheFile , 'w'); $f = fopen( $cacheFile , 'w');
fwrite( $f , "<?\n" ); fwrite( $f , "<?php\n" );
fwrite( $f , '$arrayXmlMessages[\'' . $languageFile . '\']=' . 'unserialize(\'' . fwrite( $f , '$arrayXmlMessages[\'' . $languageFile . '\']=' . 'unserialize(\'' .
addcslashes( serialize ( $arrayXmlMessages[ $languageFile ] ), '\\\'' ) . addcslashes( serialize ( $arrayXmlMessages[ $languageFile ] ), '\\\'' ) .
"');\n"); "');\n");

View File

@@ -3779,7 +3779,7 @@ class XmlForm
//ERROR CODE [2] : Failed to open cache file //ERROR CODE [2] : Failed to open cache file
if ($f === FALSE) if ($f === FALSE)
return 2; return 2;
fwrite ( $f, "<?\n" ); fwrite ( $f, "<?php\n" );
/* fwrite ($f, '$this = unserialize( \'' . /* fwrite ($f, '$this = unserialize( \'' .
addcslashes( serialize ( $this ), '\\\'' ) . '\' );' . "\n" );*/ addcslashes( serialize ( $this ), '\\\'' ) . '\' );' . "\n" );*/
foreach ( $this as $key => $value ) { foreach ( $this as $key => $value ) {

View File

@@ -751,7 +751,7 @@ if ( PHP_SAPI != 'cli' ) {
?></li> ?></li>
</ol> </ol>
<p>Validation process completed in <? printf("%.2f", $time_diff); ?> seconds.</p> <p>Validation process completed in <?php printf("%.2f", $time_diff); ?> seconds.</p>
<div id="footer">GeSHi &copy; 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, released under the GNU GPL</div> <div id="footer">GeSHi &copy; 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, released under the GNU GPL</div>
</body> </body>
@@ -759,7 +759,7 @@ if ( PHP_SAPI != 'cli' ) {
<?php } else { ?> <?php } else { ?>
Validation process completed in <? printf("%.2f", $time_diff); ?> seconds. Validation process completed in <?php printf("%.2f", $time_diff); ?> seconds.
GeSHi &copy; 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, released under the GNU GPL GeSHi &copy; 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, released under the GNU GPL

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
<? <?php
/** /**
* wf.php * wf.php
* *
@@ -37,7 +37,7 @@
?> ?>
<html> <html>
<head> <head>
<title><? if ( $HTTP_SESSION_VARS['USER_NAME'] != "") print " (" .$HTTP_SESSION_VARS['USER_NAME'] . ")" ?></title> <title><?php if ( $HTTP_SESSION_VARS['USER_NAME'] != "") print " (" .$HTTP_SESSION_VARS['USER_NAME'] . ")" ?></title>
<meta http-equiv="PRAGMA" content="NO-CACHE" /> <meta http-equiv="PRAGMA" content="NO-CACHE" />
<meta http-equiv="CACHE-CONTROL" content="NO-STORE" /> <meta http-equiv="CACHE-CONTROL" content="NO-STORE" />
<link rel="stylesheet" type="text/css" href="/skins/wf/general.css" /> <link rel="stylesheet" type="text/css" href="/skins/wf/general.css" />
@@ -48,18 +48,18 @@
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#999999" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0"> <body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#999999" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0">
<table background="/skins/wf/topBackgr.jpg" width="100%" height="48" border="0" cellspacing="0" cellpadding="0"> <table background="/skins/wf/topBackgr.jpg" width="100%" height="48" border="0" cellspacing="0" cellpadding="0">
<td width="50%" rowspan="2" height="48" valign="top"><img src="/skins/wf/test.gif" width="125" height="48"><font color=white><? /*ac<61> iba el nombre*/ ?></font></td> <td width="50%" rowspan="2" height="48" valign="top"><img src="/skins/wf/test.gif" width="125" height="48"><font color=white><? /*ac<61> iba el nombre*/ ?></font></td>
<td width="50%" height="24" valign="top" > <td width="50%" height="24" valign="top" >
<div align="right" class="title"><small><? /*= PEAR_DATABASE*/ ?></small> &nbsp; &nbsp;</div> <div align="right" class="title"><small><? /*= PEAR_DATABASE*/ ?></small> &nbsp; &nbsp;</div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="50%" height="24" valign="bottom" class="title"> <td width="50%" height="24" valign="bottom" class="title">
<div align="right"><? //aca iba el t<>tulo ?></div> <div align="right"><? //aca iba el t<>tulo ?></div>
</td> </td>
</tr> </tr>
</table> </table>
<? <?php
$pageSplit = explode ( '/', $CURRENT_PAGE ); $pageSplit = explode ( '/', $CURRENT_PAGE );
$path = '/' .$pageSplit[1] . '/' .$pageSplit[2] . '/'.$pageSplit[3] . '/'; $path = '/' .$pageSplit[1] . '/' .$pageSplit[2] . '/'.$pageSplit[3] . '/';
if( $G_MAIN_MENU != "" ) { if( $G_MAIN_MENU != "" ) {
@@ -123,7 +123,7 @@
</tr> </tr>
</table> </table>
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<? <?php
global $HTTP_SESSION_VARS; global $HTTP_SESSION_VARS;
if (!isset($HTTP_SESSION_VARS['G_MESSAGE'])) if (!isset($HTTP_SESSION_VARS['G_MESSAGE']))
{ {
@@ -153,7 +153,7 @@
<? } ?> <? } ?>
<tr> <tr>
<td align="center"> <td align="center">
<? if( $G_TEMPLATE != "" ) G::LoadTemplate($G_TEMPLATE); ?> <?php if( $G_TEMPLATE != "" ) G::LoadTemplate($G_TEMPLATE); ?>
</td> </td>
</tr> </tr>

View File

@@ -161,7 +161,7 @@ $dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
<td width=16></td> <td width=16></td>
<td width=506></td> <td width=506></td>
</tr> </tr>
<? <?php
walkLevel (0, "*", 0); walkLevel (0, "*", 0);
?> ?>
</table> </table>

View File

@@ -163,7 +163,7 @@
<td width=16></td> <td width=16></td>
<td width=506></td> <td width=506></td>
</tr> </tr>
<? <?php
walkLevel (0, "*", 0); walkLevel (0, "*", 0);
?> ?>
</table> </table>

View File

@@ -95,7 +95,7 @@ class Translation extends BaseTranslation {
$f = fopen( $cacheFile , 'w'); $f = fopen( $cacheFile , 'w');
fwrite( $f , "<?\n" ); fwrite( $f , "<?php\n" );
fwrite( $f , '$translation =' . 'unserialize(\'' . addcslashes( serialize ( $translation ), '\\\'' ) . "');\n"); fwrite( $f , '$translation =' . 'unserialize(\'' . addcslashes( serialize ( $translation ), '\\\'' ) . "');\n");
fwrite( $f , "?>" ); fwrite( $f , "?>" );
fclose( $f ); fclose( $f );

View File

@@ -1,4 +1,4 @@
<? <?php
/** /**
* inc.JSForms.php * inc.JSForms.php
* *
@@ -34,7 +34,7 @@ $serverAjax = G::encryptLink($path.$showFieldAjax);
<script language="JavaScript"> <script language="JavaScript">
function RefreshDependentFields(ObjectName, Fields, InitValue) { function RefreshDependentFields(ObjectName, Fields, InitValue) {
<? <?php
//global $G_FORM; //global $G_FORM;
$HTTP_SESSION_VARS['INIT_VALUES'] = $G_FORM->Values; $HTTP_SESSION_VARS['INIT_VALUES'] = $G_FORM->Values;
global $HTTP_GET_VARS; global $HTTP_GET_VARS;
@@ -64,7 +64,7 @@ function RefreshDependentFields(ObjectName, Fields, InitValue) {
refillText( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' ); refillText( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' );
} }
if(FldObj.type == 'select-one') { if(FldObj.type == 'select-one') {
refillDropdown( Fields[i],'<?=$serverAjax?>', 'function=dropdown&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>'+ '&InitValue=' + InitValue , InitValue); refillDropdown( Fields[i],'<?=$serverAjax?>', 'function=dropdown&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>'+ '&InitValue=' + InitValue , InitValue);
} }
}else{ }else{
@@ -73,7 +73,7 @@ function RefreshDependentFields(ObjectName, Fields, InitValue) {
} }
} }
} }
<? <?php
// } // }
?> ?>
} }
@@ -85,7 +85,7 @@ function registerDate ( field, options ) {
Obj = getField( divName); Obj = getField( divName);
value = Obj.value; value = Obj.value;
myDatePicker = new Bs_DatePicker(); myDatePicker = new Bs_DatePicker();
<? <?php
global $G_DATE_FORMAT; global $G_DATE_FORMAT;
global $HTTP_SESSION_VARS; global $HTTP_SESSION_VARS;

View File

@@ -1,4 +1,4 @@
<? <?php
/** /**
*cases_Reassign_save.php *cases_Reassign_save.php
* *

View File

@@ -43,16 +43,16 @@ try {
$sContent = ''; $sContent = '';
if ($withWS) { if ($withWS) {
//creating sys.info; //creating sys.info;
$SITE_PUBLIC_PATH = ''; $SITE_PUBLIC_PATH = '';
if (file_exists ( $SITE_PUBLIC_PATH . '' )) {} if (file_exists ( $SITE_PUBLIC_PATH . '' )) {}
//creating the first file //creating the first file
require_once 'classes/model/Dynaform.php'; require_once 'classes/model/Dynaform.php';
$oDynaform = new Dynaform ( ); $oDynaform = new Dynaform ( );
$aDynaform = $oDynaform->load ( $sDYNAFORM ); $aDynaform = $oDynaform->load ( $sDYNAFORM );
$dynTitle = str_replace ( ' ', '_', str_replace ( '/', '_', $aDynaform['DYN_TITLE'] ) ); $dynTitle = str_replace ( ' ', '_', str_replace ( '/', '_', $aDynaform['DYN_TITLE'] ) );
$sContent = "<?\n"; $sContent = "<?php\n";
$sContent .= "global \$_DBArray;\n"; $sContent .= "global \$_DBArray;\n";
$sContent .= "if (!isset(\$_DBArray)) {\n"; $sContent .= "if (!isset(\$_DBArray)) {\n";
$sContent .= " \$_DBArray = array();\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_PUBLISH->AddContent('dynaform', 'xmlform', '" . $sPRO_UID . '/' . $sDYNAFORM . "', '', array(), '" . $dynTitle . 'Post.php' . "');\n";
$sContent .= "G::RenderPage('publish', 'blank');"; $sContent .= "G::RenderPage('publish', 'blank');";
file_put_contents ( $pathProcess . $dynTitle . '.php', $sContent ); 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'; $pluginTpl = PATH_CORE . 'templates' . PATH_SEP . 'processes' . PATH_SEP . 'webentryPost.tpl';
$template = new TemplatePower ( $pluginTpl ); $template = new TemplatePower ( $pluginTpl );
$template->prepare (); $template->prepare ();
@@ -90,7 +90,7 @@ try {
$fileName = $pathProcess . $dynTitle . 'Post.php'; $fileName = $pathProcess . $dynTitle . 'Post.php';
file_put_contents ( $fileName, $template->getOutputContent () ); 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'; $fileName = $pathProcess . 'wsClient.php';
$pluginTpl = PATH_CORE . 'test' . PATH_SEP . 'unit' . PATH_SEP . 'ws' . PATH_SEP . '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 () ); 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'; $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 { } else {
@@ -123,7 +123,7 @@ try {
$scriptCode = str_replace ( '/controls/', $http . $_SERVER['HTTP_HOST'] . '/controls/', $scriptCode ); $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 ); $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'; $pluginTpl = PATH_CORE . 'templates' . PATH_SEP . 'processes' . PATH_SEP . 'webentry.tpl';
$template = new TemplatePower ( $pluginTpl ); $template = new TemplatePower ( $pluginTpl );
$template->prepare (); $template->prepare ();

View File

@@ -52,7 +52,7 @@ a.krumo-name {
line-height:12px; line-height:12px;
} }
</style> </style>
<? <?php
if ( isset ( $_POST["epr"] ) ) { if ( isset ( $_POST["epr"] ) ) {
$_SESSION['END_POINT'] = $_POST["epr"]; $_SESSION['END_POINT'] = $_POST["epr"];
@@ -92,7 +92,7 @@ a.krumo-name {
<a class="krumo-name">createUser</a> <a class="krumo-name">createUser</a>
<ul class="krumo-node krumo-first"> <ul class="krumo-node krumo-first">
<div class="krumo-element" > <div class="krumo-element" >
Session Id <input type="text" size="36" maxlength="32" name="sessionid" value="<? print $sessionId ?>"> Session Id <input type="text" size="36" maxlength="32" name="sessionid" value="<?php print $sessionId ?>">
</div> </div>
<div class="krumo-element" > <div class="krumo-element" >
User Id <input type="text" size="16" maxlength="20" name="userid" value=""> User Id <input type="text" size="16" maxlength="20" name="userid" value="">
@@ -116,7 +116,7 @@ a.krumo-name {
<a class="krumo-name">assignUserToGroup</a> <a class="krumo-name">assignUserToGroup</a>
<ul class="krumo-node krumo-first"> <ul class="krumo-node krumo-first">
<div class="krumo-element" > <div class="krumo-element" >
Session Id <input type="text" size="36" maxlength="32" name="sessionid" value="<? print $sessionId ?>"> Session Id <input type="text" size="36" maxlength="32" name="sessionid" value="<?php print $sessionId ?>">
</div> </div>
<div class="krumo-element" > <div class="krumo-element" >
User Id <input type="text" size="16" maxlength="20" name="userid" value=""> User Id <input type="text" size="16" maxlength="20" name="userid" value="">
@@ -134,7 +134,7 @@ a.krumo-name {
<a class="krumo-name">newCase</a> <a class="krumo-name">newCase</a>
<ul class="krumo-node krumo-first"> <ul class="krumo-node krumo-first">
<div class="krumo-element" > <div class="krumo-element" >
Session Id <input type="text" size="36" maxlength="32" name="sessionid" value="<? print $sessionId ?>"> Session Id <input type="text" size="36" maxlength="32" name="sessionid" value="<?php print $sessionId ?>">
</div> </div>
<div class="krumo-element" > <div class="krumo-element" >
Process Id <input type="text" size="16" maxlength="20" name="processid" value=""> Process Id <input type="text" size="16" maxlength="20" name="processid" value="">
@@ -146,7 +146,7 @@ a.krumo-name {
</div> </div>
</form > </form >
<? <?php
if ( ! isset ( $_POST["action"] ) or $_POST["action"] == 'change endpoint' ) { if ( ! isset ( $_POST["action"] ) or $_POST["action"] == 'change endpoint' ) {
die; die;

View File

@@ -1,4 +1,4 @@
<? <?php
G::LoadClass ( 'jasperReports' ); G::LoadClass ( 'jasperReports' );
$oJasper = new jasperReports( '192.168.0.51', 8080, 'jasperadmin', 'jasperadmin' ); $oJasper = new jasperReports( '192.168.0.51', 8080, 'jasperadmin', 'jasperadmin' );

View File

@@ -47,7 +47,7 @@ if (isset($_SESSION['G_MESSAGE_TYPE']) && isset($_SESSION['G_MESSAGE'])) {
} }
?> ?>
<table width="100%" cellpadding="5" cellspacing="0" border="0"> <table width="100%" cellpadding="5" cellspacing="0" border="0">
<? <?php
if( is_array( $G_PUBLISH->Parts ) ) if( is_array( $G_PUBLISH->Parts ) )
{ {
$nplim = count( $G_PUBLISH->Parts ); $nplim = count( $G_PUBLISH->Parts );
@@ -60,10 +60,10 @@ if (isset($_SESSION['G_MESSAGE_TYPE']) && isset($_SESSION['G_MESSAGE'])) {
for( $npcount = 1; $npcount < $nplim; $npcount++ ) { for( $npcount = 1; $npcount < $nplim; $npcount++ ) {
print( "<tr>\n<td align=\"left\" valign=\"top\">\n" ); print( "<tr>\n<td align=\"left\" valign=\"top\">\n" );
?> ?>
<? <?php
$G_PUBLISH->RenderContent( $npcount, ($RBAC->userCanAccess('WF_SHOW_XMLFORM_NAME')==1?true:false) ); $G_PUBLISH->RenderContent( $npcount, ($RBAC->userCanAccess('WF_SHOW_XMLFORM_NAME')==1?true:false) );
?> ?>
<? <?php
print( "</td>\n</tr>\n" ); print( "</td>\n</tr>\n" );
} }
print "</table>"; print "</table>";