Showing
100 changed files
with
174 additions
and
118 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
| 1 | -<?PHP | |
| 1 | +<?php | |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * Project: Smarty: the PHP compiling template engine |
| ... | ... | @@ -188,7 +188,7 @@ class Smarty |
| 188 | 188 | var $cache_modified_check = false; |
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | - * This determines how Smarty handles "<?PHP ... ?>" tags in templates. | |
| 191 | + * This determines how Smarty handles "<?php ... ?>" tags in templates. | |
| 192 | 192 | * possible values: |
| 193 | 193 | * <ul> |
| 194 | 194 | * <li>SMARTY_PHP_PASSTHRU -> print tags as plain text</li> | ... | ... |
| 1 | -<?PHP | |
| 1 | +<?php | |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * Project: Smarty: the PHP compiling template engine |
| ... | ... | @@ -289,7 +289,7 @@ class Smarty_Compiler extends Smarty { |
| 289 | 289 | for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) { |
| 290 | 290 | if ($this->php_handling == SMARTY_PHP_PASSTHRU) { |
| 291 | 291 | /* echo php contents */ |
| 292 | - $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', '<?PHP echo \''.str_replace("'", "\'", $sp_match[1][$curr_sp]).'\'; ?>'."\n", $text_blocks[$curr_tb]); | |
| 292 | + $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', '<?php echo \''.str_replace("'", "\'", $sp_match[1][$curr_sp]).'\'; ?>'."\n", $text_blocks[$curr_tb]); | |
| 293 | 293 | } else if ($this->php_handling == SMARTY_PHP_QUOTE) { |
| 294 | 294 | /* quote php tags */ |
| 295 | 295 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]); |
| ... | ... | @@ -298,7 +298,7 @@ class Smarty_Compiler extends Smarty { |
| 298 | 298 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', '', $text_blocks[$curr_tb]); |
| 299 | 299 | } else { |
| 300 | 300 | /* SMARTY_PHP_ALLOW, but echo non php starting tags */ |
| 301 | - $sp_match[1][$curr_sp] = preg_replace('~(<\?(?!php|=|$))~i', '<?PHP echo \'\\1\'?>'."\n", $sp_match[1][$curr_sp]); | |
| 301 | + $sp_match[1][$curr_sp] = preg_replace('~(<\?(?!php|=|$))~i', '<?php echo \'\\1\'?>'."\n", $sp_match[1][$curr_sp]); | |
| 302 | 302 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', $sp_match[1][$curr_sp], $text_blocks[$curr_tb]); |
| 303 | 303 | } |
| 304 | 304 | } |
| ... | ... | @@ -337,7 +337,7 @@ class Smarty_Compiler extends Smarty { |
| 337 | 337 | /* remove trailing whitespaces from the last text_block */ |
| 338 | 338 | $text_blocks[$j] = rtrim($text_blocks[$j]); |
| 339 | 339 | } |
| 340 | - $text_blocks[$j] = "<?PHP echo '" . strtr($text_blocks[$j], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>"; | |
| 340 | + $text_blocks[$j] = "<?php echo '" . strtr($text_blocks[$j], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>"; | |
| 341 | 341 | if ($compiled_tags[$j] == '{/strip}') { |
| 342 | 342 | $compiled_tags[$j] = "\n"; /* slurped by php, but necessary |
| 343 | 343 | if a newline is following the closing strip-tag */ |
| ... | ... | @@ -359,19 +359,19 @@ class Smarty_Compiler extends Smarty { |
| 359 | 359 | $text_blocks[$i+1] = preg_replace('~^(\r\n|\r|\n)~', '', $text_blocks[$i+1]); |
| 360 | 360 | } |
| 361 | 361 | // replace legit PHP tags with placeholder |
| 362 | - $text_blocks[$i] = str_replace('<?PHP ', $tag_guard, $text_blocks[$i]); | |
| 363 | - $compiled_tags[$i] = str_replace('<?PHP ', $tag_guard, $compiled_tags[$i]); | |
| 362 | + $text_blocks[$i] = str_replace('<?', $tag_guard, $text_blocks[$i]); | |
| 363 | + $compiled_tags[$i] = str_replace('<?', $tag_guard, $compiled_tags[$i]); | |
| 364 | 364 | |
| 365 | 365 | $compiled_content .= $text_blocks[$i] . $compiled_tags[$i]; |
| 366 | 366 | } |
| 367 | - $compiled_content .= str_replace('<?PHP ', $tag_guard, $text_blocks[$i]); | |
| 367 | + $compiled_content .= str_replace('<?', $tag_guard, $text_blocks[$i]); | |
| 368 | 368 | |
| 369 | 369 | // escape php tags created by interleaving |
| 370 | - $compiled_content = str_replace('<?PHP ', "<?PHP echo '<?PHP ' ?>\n", $compiled_content); | |
| 371 | - $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?PHP echo 'language=php' ?>\n", $compiled_content); | |
| 370 | + $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content); | |
| 371 | + $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content); | |
| 372 | 372 | |
| 373 | 373 | // recover legit tags |
| 374 | - $compiled_content = str_replace($tag_guard, '<?PHP ', $compiled_content); | |
| 374 | + $compiled_content = str_replace($tag_guard, '<?', $compiled_content); | |
| 375 | 375 | |
| 376 | 376 | // remove \n from the end of the file, if any |
| 377 | 377 | if (strlen($compiled_content) && (substr($compiled_content, -1) == "\n") ) { |
| ... | ... | @@ -379,7 +379,7 @@ class Smarty_Compiler extends Smarty { |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | if (!empty($this->_cache_serial)) { |
| 382 | - $compiled_content = "<?PHP \$this->_cache_serials['".$this->_cache_include."'] = '".$this->_cache_serial."'; ?>" . $compiled_content; | |
| 382 | + $compiled_content = "<?php \$this->_cache_serials['".$this->_cache_include."'] = '".$this->_cache_serial."'; ?>" . $compiled_content; | |
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | // run compiled template through postfilter functions |
| ... | ... | @@ -397,7 +397,7 @@ class Smarty_Compiler extends Smarty { |
| 397 | 397 | } |
| 398 | 398 | |
| 399 | 399 | // put header at the top of the compiled template |
| 400 | - $template_header = "<?PHP /* Smarty version ".$this->_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; | |
| 400 | + $template_header = "<?php /* Smarty version ".$this->_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; | |
| 401 | 401 | $template_header .= " compiled from ".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))." */ ?>\n"; |
| 402 | 402 | |
| 403 | 403 | /* Emit code to load needed plugins. */ |
| ... | ... | @@ -411,14 +411,14 @@ class Smarty_Compiler extends Smarty { |
| 411 | 411 | } |
| 412 | 412 | } |
| 413 | 413 | $_plugins_params .= '))'; |
| 414 | - $plugins_code = "<?PHP require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');\nsmarty_core_load_plugins($_plugins_params, \$this); ?>\n"; | |
| 414 | + $plugins_code = "<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');\nsmarty_core_load_plugins($_plugins_params, \$this); ?>\n"; | |
| 415 | 415 | $template_header .= $plugins_code; |
| 416 | 416 | $this->_plugin_info = array(); |
| 417 | 417 | $this->_plugins_code = $plugins_code; |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | if ($this->_init_smarty_vars) { |
| 421 | - $template_header .= "<?PHP require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n"; | |
| 421 | + $template_header .= "<?php require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n"; | |
| 422 | 422 | $this->_init_smarty_vars = false; |
| 423 | 423 | } |
| 424 | 424 | |
| ... | ... | @@ -453,7 +453,7 @@ class Smarty_Compiler extends Smarty { |
| 453 | 453 | if (preg_match('~^' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '$~', $tag_command)) { |
| 454 | 454 | /* tag name is a variable or object */ |
| 455 | 455 | $_return = $this->_parse_var_props($tag_command . $tag_modifier); |
| 456 | - return "<?PHP echo $_return; ?>" . $this->_additional_newline; | |
| 456 | + return "<?php echo $_return; ?>" . $this->_additional_newline; | |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | 459 | /* If the tag name is a registered object, we process it. */ |
| ... | ... | @@ -478,7 +478,7 @@ class Smarty_Compiler extends Smarty { |
| 478 | 478 | $this->_syntax_error('unexpected {else}', E_USER_ERROR, __FILE__, __LINE__); |
| 479 | 479 | else |
| 480 | 480 | $this->_push_tag('else'); |
| 481 | - return '<?PHP else: ?>'; | |
| 481 | + return '<?php else: ?>'; | |
| 482 | 482 | |
| 483 | 483 | case 'elseif': |
| 484 | 484 | list($_open_tag) = end($this->_tag_stack); |
| ... | ... | @@ -490,7 +490,7 @@ class Smarty_Compiler extends Smarty { |
| 490 | 490 | |
| 491 | 491 | case '/if': |
| 492 | 492 | $this->_pop_tag('if'); |
| 493 | - return '<?PHP endif; ?>'; | |
| 493 | + return '<?php endif; ?>'; | |
| 494 | 494 | |
| 495 | 495 | case 'capture': |
| 496 | 496 | return $this->_compile_capture_tag(true, $tag_args); |
| ... | ... | @@ -510,15 +510,15 @@ class Smarty_Compiler extends Smarty { |
| 510 | 510 | |
| 511 | 511 | case 'sectionelse': |
| 512 | 512 | $this->_push_tag('sectionelse'); |
| 513 | - return "<?PHP endfor; else: ?>"; | |
| 513 | + return "<?php endfor; else: ?>"; | |
| 514 | 514 | break; |
| 515 | 515 | |
| 516 | 516 | case '/section': |
| 517 | 517 | $_open_tag = $this->_pop_tag('section'); |
| 518 | 518 | if ($_open_tag == 'sectionelse') |
| 519 | - return "<?PHP endif; ?>"; | |
| 519 | + return "<?php endif; ?>"; | |
| 520 | 520 | else |
| 521 | - return "<?PHP endfor; endif; ?>"; | |
| 521 | + return "<?php endfor; endif; ?>"; | |
| 522 | 522 | |
| 523 | 523 | case 'foreach': |
| 524 | 524 | $this->_push_tag('foreach'); |
| ... | ... | @@ -527,14 +527,14 @@ class Smarty_Compiler extends Smarty { |
| 527 | 527 | |
| 528 | 528 | case 'foreachelse': |
| 529 | 529 | $this->_push_tag('foreachelse'); |
| 530 | - return "<?PHP endforeach; else: ?>"; | |
| 530 | + return "<?php endforeach; else: ?>"; | |
| 531 | 531 | |
| 532 | 532 | case '/foreach': |
| 533 | 533 | $_open_tag = $this->_pop_tag('foreach'); |
| 534 | 534 | if ($_open_tag == 'foreachelse') |
| 535 | - return "<?PHP endif; unset(\$_from); ?>"; | |
| 535 | + return "<?php endif; unset(\$_from); ?>"; | |
| 536 | 536 | else |
| 537 | - return "<?PHP endforeach; endif; unset(\$_from); ?>"; | |
| 537 | + return "<?php endforeach; endif; unset(\$_from); ?>"; | |
| 538 | 538 | break; |
| 539 | 539 | |
| 540 | 540 | case 'strip': |
| ... | ... | @@ -565,14 +565,14 @@ class Smarty_Compiler extends Smarty { |
| 565 | 565 | return ''; |
| 566 | 566 | |
| 567 | 567 | case 3: /* literal */ |
| 568 | - return "<?PHP echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline; | |
| 568 | + return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline; | |
| 569 | 569 | |
| 570 | 570 | case 4: /* php */ |
| 571 | 571 | if ($this->security && !$this->security_settings['PHP_TAGS']) { |
| 572 | 572 | $this->_syntax_error("(secure mode) php tags not permitted", E_USER_WARNING, __FILE__, __LINE__); |
| 573 | 573 | return; |
| 574 | 574 | } |
| 575 | - return '<?PHP ' . $block[3] .' ?>'; | |
| 575 | + return '<?php ' . $block[3] .' ?>'; | |
| 576 | 576 | } |
| 577 | 577 | break; |
| 578 | 578 | |
| ... | ... | @@ -648,7 +648,7 @@ class Smarty_Compiler extends Smarty { |
| 648 | 648 | if ($have_function) { |
| 649 | 649 | $output = call_user_func_array($plugin_func, array($tag_args, &$this)); |
| 650 | 650 | if($output != '') { |
| 651 | - $output = '<?PHP ' . $this->_push_cacheable_state('compiler', $tag_command) | |
| 651 | + $output = '<?php ' . $this->_push_cacheable_state('compiler', $tag_command) | |
| 652 | 652 | . $output |
| 653 | 653 | . $this->_pop_cacheable_state('compiler', $tag_command) . ' ?>'; |
| 654 | 654 | } |
| ... | ... | @@ -734,7 +734,7 @@ class Smarty_Compiler extends Smarty { |
| 734 | 734 | $this->_pop_tag($tag_command); |
| 735 | 735 | |
| 736 | 736 | if ($start_tag) { |
| 737 | - $output = '<?PHP ' . $this->_push_cacheable_state('block', $tag_command); | |
| 737 | + $output = '<?php ' . $this->_push_cacheable_state('block', $tag_command); | |
| 738 | 738 | $attrs = $this->_parse_attrs($tag_args); |
| 739 | 739 | $_cache_attrs=''; |
| 740 | 740 | $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, $_cache_attrs); |
| ... | ... | @@ -742,7 +742,7 @@ class Smarty_Compiler extends Smarty { |
| 742 | 742 | $output .= '$_block_repeat=true;' . $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);'; |
| 743 | 743 | $output .= 'while ($_block_repeat) { ob_start(); ?>'; |
| 744 | 744 | } else { |
| 745 | - $output = '<?PHP $_block_content = ob_get_contents(); ob_end_clean(); '; | |
| 745 | + $output = '<?php $_block_content = ob_get_contents(); ob_end_clean(); '; | |
| 746 | 746 | $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat)'; |
| 747 | 747 | if ($tag_modifier != '') { |
| 748 | 748 | $this->_parse_modifiers($_out_tag_text, $tag_modifier); |
| ... | ... | @@ -821,7 +821,7 @@ class Smarty_Compiler extends Smarty { |
| 821 | 821 | } |
| 822 | 822 | |
| 823 | 823 | if($output != '') { |
| 824 | - $output = '<?PHP ' . $_cacheable_state . $_cache_attrs . 'echo ' . $output . ';' | |
| 824 | + $output = '<?php ' . $_cacheable_state . $_cache_attrs . 'echo ' . $output . ';' | |
| 825 | 825 | . $this->_pop_cacheable_state('function', $tag_command) . "?>" . $this->_additional_newline; |
| 826 | 826 | } |
| 827 | 827 | |
| ... | ... | @@ -919,7 +919,7 @@ class Smarty_Compiler extends Smarty { |
| 919 | 919 | $output = ''; |
| 920 | 920 | } |
| 921 | 921 | |
| 922 | - return '<?PHP ' . $prefix . $output . $postfix . "?>" . $newline; | |
| 922 | + return '<?php ' . $prefix . $output . $postfix . "?>" . $newline; | |
| 923 | 923 | } |
| 924 | 924 | |
| 925 | 925 | /** |
| ... | ... | @@ -957,7 +957,7 @@ class Smarty_Compiler extends Smarty { |
| 957 | 957 | |
| 958 | 958 | $_params = "array('args' => array(".implode(', ', (array)$arg_list)."))"; |
| 959 | 959 | |
| 960 | - return "<?PHP require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');\necho smarty_core_run_insert_handler($_params, \$this); ?>" . $this->_additional_newline; | |
| 960 | + return "<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');\necho smarty_core_run_insert_handler($_params, \$this); ?>" . $this->_additional_newline; | |
| 961 | 961 | } |
| 962 | 962 | |
| 963 | 963 | /** |
| ... | ... | @@ -988,7 +988,7 @@ class Smarty_Compiler extends Smarty { |
| 988 | 988 | $arg_list[] = "'$arg_name' => $arg_value"; |
| 989 | 989 | } |
| 990 | 990 | |
| 991 | - $output = '<?PHP '; | |
| 991 | + $output = '<?php '; | |
| 992 | 992 | |
| 993 | 993 | if (isset($assign_var)) { |
| 994 | 994 | $output .= "ob_start();\n"; |
| ... | ... | @@ -1041,7 +1041,7 @@ class Smarty_Compiler extends Smarty { |
| 1041 | 1041 | |
| 1042 | 1042 | $_params = "array('smarty_file' => " . $attrs['file'] . ", 'smarty_assign' => '$assign_var', 'smarty_once' => $once_var, 'smarty_include_vars' => array(".implode(',', $arg_list)."))"; |
| 1043 | 1043 | |
| 1044 | - return "<?PHP require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline; | |
| 1044 | + return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline; | |
| 1045 | 1045 | } |
| 1046 | 1046 | |
| 1047 | 1047 | |
| ... | ... | @@ -1056,7 +1056,7 @@ class Smarty_Compiler extends Smarty { |
| 1056 | 1056 | $attrs = $this->_parse_attrs($tag_args); |
| 1057 | 1057 | $arg_list = array(); |
| 1058 | 1058 | |
| 1059 | - $output = '<?PHP '; | |
| 1059 | + $output = '<?php '; | |
| 1060 | 1060 | $section_name = $attrs['name']; |
| 1061 | 1061 | if (empty($section_name)) { |
| 1062 | 1062 | $this->_syntax_error("missing section name", E_USER_ERROR, __FILE__, __LINE__); |
| ... | ... | @@ -1191,7 +1191,7 @@ class Smarty_Compiler extends Smarty { |
| 1191 | 1191 | $name = null; |
| 1192 | 1192 | } |
| 1193 | 1193 | |
| 1194 | - $output = '<?PHP '; | |
| 1194 | + $output = '<?php '; | |
| 1195 | 1195 | $output .= "\$_from = $from; if (!is_array(\$_from) && !is_object(\$_from)) { settype(\$_from, 'array'); }"; |
| 1196 | 1196 | if (isset($name)) { |
| 1197 | 1197 | $foreach_props = "\$this->_foreach[$name]"; |
| ... | ... | @@ -1226,11 +1226,11 @@ class Smarty_Compiler extends Smarty { |
| 1226 | 1226 | $assign = isset($attrs['assign']) ? $attrs['assign'] : null; |
| 1227 | 1227 | $append = isset($attrs['append']) ? $attrs['append'] : null; |
| 1228 | 1228 | |
| 1229 | - $output = "<?PHP ob_start(); ?>"; | |
| 1229 | + $output = "<?php ob_start(); ?>"; | |
| 1230 | 1230 | $this->_capture_stack[] = array($buffer, $assign, $append); |
| 1231 | 1231 | } else { |
| 1232 | 1232 | list($buffer, $assign, $append) = array_pop($this->_capture_stack); |
| 1233 | - $output = "<?PHP \$this->_smarty_vars['capture'][$buffer] = ob_get_contents(); "; | |
| 1233 | + $output = "<?php \$this->_smarty_vars['capture'][$buffer] = ob_get_contents(); "; | |
| 1234 | 1234 | if (isset($assign)) { |
| 1235 | 1235 | $output .= " \$this->assign($assign, ob_get_contents());"; |
| 1236 | 1236 | } |
| ... | ... | @@ -1414,9 +1414,9 @@ class Smarty_Compiler extends Smarty { |
| 1414 | 1414 | } |
| 1415 | 1415 | |
| 1416 | 1416 | if ($elseif) |
| 1417 | - return '<?PHP elseif ('.implode(' ', $tokens).'): ?>'; | |
| 1417 | + return '<?php elseif ('.implode(' ', $tokens).'): ?>'; | |
| 1418 | 1418 | else |
| 1419 | - return '<?PHP if ('.implode(' ', $tokens).'): ?>'; | |
| 1419 | + return '<?php if ('.implode(' ', $tokens).'): ?>'; | |
| 1420 | 1420 | } |
| 1421 | 1421 | |
| 1422 | 1422 | ... | ... |
| 1 | -<?PHP | |
| 1 | +<?php | |
| 2 | 2 | /** |
| 3 | 3 | * Smarty plugin |
| 4 | 4 | * @package Smarty |
| ... | ... | @@ -25,7 +25,7 @@ function smarty_core_write_compiled_include($params, &$smarty) |
| 25 | 25 | if (count($_match_source)==0) return; |
| 26 | 26 | |
| 27 | 27 | // convert the matched php-code to functions |
| 28 | - $_include_compiled = "<?PHP /* Smarty version ".$smarty->_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; | |
| 28 | + $_include_compiled = "<?php /* Smarty version ".$smarty->_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; | |
| 29 | 29 | $_include_compiled .= " compiled from " . strtr(urlencode($params['resource_name']), array('%2F'=>'/', '%3A'=>':')) . " */\n\n"; |
| 30 | 30 | |
| 31 | 31 | $_compile_path = $params['include_file_path']; |
| ... | ... | @@ -34,7 +34,7 @@ function smarty_core_write_compiled_include($params, &$smarty) |
| 34 | 34 | $_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>"; |
| 35 | 35 | |
| 36 | 36 | $_include_compiled .= $params['plugins_code']; |
| 37 | - $_include_compiled .= "<?PHP "; | |
| 37 | + $_include_compiled .= "<?php"; | |
| 38 | 38 | |
| 39 | 39 | $this_varname = ((double)phpversion() >= 5.0) ? '_smarty' : 'this'; |
| 40 | 40 | for ($_i = 0, $_for_max = count($_match_source); $_i < $_for_max; $_i++) { |
| ... | ... | @@ -42,9 +42,9 @@ function smarty_core_write_compiled_include($params, &$smarty) |
| 42 | 42 | $source = $_match[4]; |
| 43 | 43 | if ($this_varname == '_smarty') { |
| 44 | 44 | /* rename $this to $_smarty in the sourcecode */ |
| 45 | - $tokens = token_get_all('<?PHP ' . $_match[4]); | |
| 45 | + $tokens = token_get_all('<?php ' . $_match[4]); | |
| 46 | 46 | |
| 47 | - /* remove trailing <?PHP */ | |
| 47 | + /* remove trailing <?php */ | |
| 48 | 48 | $open_tag = ''; |
| 49 | 49 | while ($tokens) { |
| 50 | 50 | $token = array_shift($tokens); |
| ... | ... | @@ -53,7 +53,7 @@ function smarty_core_write_compiled_include($params, &$smarty) |
| 53 | 53 | } else { |
| 54 | 54 | $open_tag .= $token; |
| 55 | 55 | } |
| 56 | - if ($open_tag == '<?PHP ') break; | |
| 56 | + if ($open_tag == '<?php ') break; | |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | for ($i=0, $count = count($tokens); $i < $count; $i++) { | ... | ... |
| 1 | -<?PHP | |
| 1 | +<?php | |
| 2 | 2 | /** |
| 3 | 3 | * Smarty plugin |
| 4 | 4 | * @package Smarty |
| ... | ... | @@ -98,9 +98,9 @@ function smarty_function_config_load($params, &$smarty) |
| 98 | 98 | $_config_vars = array_merge($smarty->_conf_obj->get($_file), |
| 99 | 99 | $smarty->_conf_obj->get($_file, $_section)); |
| 100 | 100 | if(function_exists('var_export')) { |
| 101 | - $_output = '<?PHP $_config_vars = ' . var_export($_config_vars, true) . '; ?>'; | |
| 101 | + $_output = '<?php $_config_vars = ' . var_export($_config_vars, true) . '; ?>'; | |
| 102 | 102 | } else { |
| 103 | - $_output = '<?PHP $_config_vars = unserialize(\'' . strtr(serialize($_config_vars),array('\''=>'\\\'', '\\'=>'\\\\')) . '\'); ?>'; | |
| 103 | + $_output = '<?php $_config_vars = unserialize(\'' . strtr(serialize($_config_vars),array('\''=>'\\\'', '\\'=>'\\\\')) . '\'); ?>'; | |
| 104 | 104 | } |
| 105 | 105 | $_params = (array('compile_path' => $_compile_file, 'compiled_content' => $_output, 'resource_timestamp' => $_params['resource_timestamp'])); |
| 106 | 106 | require_once(SMARTY_CORE_DIR . 'core.write_compiled_resource.php'); | ... | ... |
calendar/0225/calendar.php
0 → 100644
| 1 | +<? | |
| 2 | +//***************************************************************************** | |
| 3 | +//* | |
| 4 | +//* プログラム名:e-イベント | |
| 5 | +//* プログラムID:calender.php | |
| 6 | +//* 機能 :イベント表示画面 | |
| 7 | +//* 作成者 : | |
| 8 | +//* | |
| 9 | +//***************************************************************************** | |
| 10 | +header("Content-type: text/html; charset=shift-jis"); | |
| 11 | + | |
| 12 | +include('../_process/main.inc'); | |
| 13 | + | |
| 14 | +?> | ... | ... |
calendar/0225/data/event/eventmst01.csv
0 → 100644
calendar/0225/data/event/eventmst02.csv
0 → 100644
calendar/0225/data/event/eventmst03.csv
0 → 100644
calendar/0225/data/event/eventmst04.csv
0 → 100644
calendar/0225/data/event/eventmst05.csv
0 → 100644
calendar/0225/data/event/eventmst06.csv
0 → 100644
calendar/0225/data/event/eventmst07.csv
0 → 100644
calendar/0225/data/event/eventmst08.csv
0 → 100644
calendar/0225/data/event/eventmst09.csv
0 → 100644
calendar/0225/data/event/eventmst10.csv
0 → 100644
calendar/0225/data/event/eventmst11.csv
0 → 100644
calendar/0225/data/event/eventmst12.csv
0 → 100644
calendar/0225/usr_data.php
0 → 100644
| 1 | +<? | |
| 2 | +//***************************************************************************** | |
| 3 | +//* | |
| 4 | +//* プログラム名:e-イベント | |
| 5 | +//* プログラムID:usr_input.php | |
| 6 | +//* 機能 :イベント表示画面 | |
| 7 | +//* 作成者 : | |
| 8 | +//* | |
| 9 | +//***************************************************************************** | |
| 10 | +header("Content-type: text/html; charset=shift-jis"); | |
| 11 | + | |
| 12 | +include('../_process/usr_data.inc'); | |
| 13 | + | |
| 14 | +?> | ... | ... |
calendar/0225/usr_input.php
0 → 100644
| 1 | +<? | |
| 2 | +//***************************************************************************** | |
| 3 | +//* | |
| 4 | +//* プログラム名:e-イベント | |
| 5 | +//* プログラムID:usr_input.php | |
| 6 | +//* 機能 :イベント表示画面 | |
| 7 | +//* 作成者 : | |
| 8 | +//* | |
| 9 | +//***************************************************************************** | |
| 10 | +header("Content-type: text/html; charset=shift-jis"); | |
| 11 | + | |
| 12 | +include('../_process/usr_input.inc'); | |
| 13 | + | |
| 14 | +?> | ... | ... |
calendar/19191920ik/calendar.php
0 → 100644
| 1 | +<? | |
| 2 | +//***************************************************************************** | |
| 3 | +//* | |
| 4 | +//* プログラム名:e-イベント | |
| 5 | +//* プログラムID:calender.php | |
| 6 | +//* 機能 :イベント表示画面 | |
| 7 | +//* 作成者 : | |
| 8 | +//* | |
| 9 | +//***************************************************************************** | |
| 10 | +header("Content-type: text/html; charset=shift-jis"); | |
| 11 | + | |
| 12 | +include('../_process/main.inc'); | |
| 13 | + | |
| 14 | +?> | ... | ... |
Please
register
or
login
to post a comment