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 | * Project: Smarty: the PHP compiling template engine | 4 | * Project: Smarty: the PHP compiling template engine |
| @@ -188,7 +188,7 @@ class Smarty | @@ -188,7 +188,7 @@ class Smarty | ||
| 188 | var $cache_modified_check = false; | 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 | * possible values: | 192 | * possible values: |
| 193 | * <ul> | 193 | * <ul> |
| 194 | * <li>SMARTY_PHP_PASSTHRU -> print tags as plain text</li> | 194 | * <li>SMARTY_PHP_PASSTHRU -> print tags as plain text</li> |
| 1 | -<?PHP | 1 | +<?php |
| 2 | 2 | ||
| 3 | /** | 3 | /** |
| 4 | * Project: Smarty: the PHP compiling template engine | 4 | * Project: Smarty: the PHP compiling template engine |
| @@ -289,7 +289,7 @@ class Smarty_Compiler extends Smarty { | @@ -289,7 +289,7 @@ class Smarty_Compiler extends Smarty { | ||
| 289 | for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) { | 289 | for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) { |
| 290 | if ($this->php_handling == SMARTY_PHP_PASSTHRU) { | 290 | if ($this->php_handling == SMARTY_PHP_PASSTHRU) { |
| 291 | /* echo php contents */ | 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 | } else if ($this->php_handling == SMARTY_PHP_QUOTE) { | 293 | } else if ($this->php_handling == SMARTY_PHP_QUOTE) { |
| 294 | /* quote php tags */ | 294 | /* quote php tags */ |
| 295 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]); | 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,7 +298,7 @@ class Smarty_Compiler extends Smarty { | ||
| 298 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', '', $text_blocks[$curr_tb]); | 298 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', '', $text_blocks[$curr_tb]); |
| 299 | } else { | 299 | } else { |
| 300 | /* SMARTY_PHP_ALLOW, but echo non php starting tags */ | 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 | $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', $sp_match[1][$curr_sp], $text_blocks[$curr_tb]); | 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,7 +337,7 @@ class Smarty_Compiler extends Smarty { | ||
| 337 | /* remove trailing whitespaces from the last text_block */ | 337 | /* remove trailing whitespaces from the last text_block */ |
| 338 | $text_blocks[$j] = rtrim($text_blocks[$j]); | 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 | if ($compiled_tags[$j] == '{/strip}') { | 341 | if ($compiled_tags[$j] == '{/strip}') { |
| 342 | $compiled_tags[$j] = "\n"; /* slurped by php, but necessary | 342 | $compiled_tags[$j] = "\n"; /* slurped by php, but necessary |
| 343 | if a newline is following the closing strip-tag */ | 343 | if a newline is following the closing strip-tag */ |
| @@ -359,19 +359,19 @@ class Smarty_Compiler extends Smarty { | @@ -359,19 +359,19 @@ class Smarty_Compiler extends Smarty { | ||
| 359 | $text_blocks[$i+1] = preg_replace('~^(\r\n|\r|\n)~', '', $text_blocks[$i+1]); | 359 | $text_blocks[$i+1] = preg_replace('~^(\r\n|\r|\n)~', '', $text_blocks[$i+1]); |
| 360 | } | 360 | } |
| 361 | // replace legit PHP tags with placeholder | 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 | $compiled_content .= $text_blocks[$i] . $compiled_tags[$i]; | 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 | // escape php tags created by interleaving | 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 | // recover legit tags | 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 | // remove \n from the end of the file, if any | 376 | // remove \n from the end of the file, if any |
| 377 | if (strlen($compiled_content) && (substr($compiled_content, -1) == "\n") ) { | 377 | if (strlen($compiled_content) && (substr($compiled_content, -1) == "\n") ) { |
| @@ -379,7 +379,7 @@ class Smarty_Compiler extends Smarty { | @@ -379,7 +379,7 @@ class Smarty_Compiler extends Smarty { | ||
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | if (!empty($this->_cache_serial)) { | 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 | // run compiled template through postfilter functions | 385 | // run compiled template through postfilter functions |
| @@ -397,7 +397,7 @@ class Smarty_Compiler extends Smarty { | @@ -397,7 +397,7 @@ class Smarty_Compiler extends Smarty { | ||
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | // put header at the top of the compiled template | 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 | $template_header .= " compiled from ".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))." */ ?>\n"; | 401 | $template_header .= " compiled from ".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))." */ ?>\n"; |
| 402 | 402 | ||
| 403 | /* Emit code to load needed plugins. */ | 403 | /* Emit code to load needed plugins. */ |
| @@ -411,14 +411,14 @@ class Smarty_Compiler extends Smarty { | @@ -411,14 +411,14 @@ class Smarty_Compiler extends Smarty { | ||
| 411 | } | 411 | } |
| 412 | } | 412 | } |
| 413 | $_plugins_params .= '))'; | 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 | $template_header .= $plugins_code; | 415 | $template_header .= $plugins_code; |
| 416 | $this->_plugin_info = array(); | 416 | $this->_plugin_info = array(); |
| 417 | $this->_plugins_code = $plugins_code; | 417 | $this->_plugins_code = $plugins_code; |
| 418 | } | 418 | } |
| 419 | 419 | ||
| 420 | if ($this->_init_smarty_vars) { | 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 | $this->_init_smarty_vars = false; | 422 | $this->_init_smarty_vars = false; |
| 423 | } | 423 | } |
| 424 | 424 | ||
| @@ -453,7 +453,7 @@ class Smarty_Compiler extends Smarty { | @@ -453,7 +453,7 @@ class Smarty_Compiler extends Smarty { | ||
| 453 | if (preg_match('~^' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '$~', $tag_command)) { | 453 | if (preg_match('~^' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '$~', $tag_command)) { |
| 454 | /* tag name is a variable or object */ | 454 | /* tag name is a variable or object */ |
| 455 | $_return = $this->_parse_var_props($tag_command . $tag_modifier); | 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 | /* If the tag name is a registered object, we process it. */ | 459 | /* If the tag name is a registered object, we process it. */ |
| @@ -478,7 +478,7 @@ class Smarty_Compiler extends Smarty { | @@ -478,7 +478,7 @@ class Smarty_Compiler extends Smarty { | ||
| 478 | $this->_syntax_error('unexpected {else}', E_USER_ERROR, __FILE__, __LINE__); | 478 | $this->_syntax_error('unexpected {else}', E_USER_ERROR, __FILE__, __LINE__); |
| 479 | else | 479 | else |
| 480 | $this->_push_tag('else'); | 480 | $this->_push_tag('else'); |
| 481 | - return '<?PHP else: ?>'; | 481 | + return '<?php else: ?>'; |
| 482 | 482 | ||
| 483 | case 'elseif': | 483 | case 'elseif': |
| 484 | list($_open_tag) = end($this->_tag_stack); | 484 | list($_open_tag) = end($this->_tag_stack); |
| @@ -490,7 +490,7 @@ class Smarty_Compiler extends Smarty { | @@ -490,7 +490,7 @@ class Smarty_Compiler extends Smarty { | ||
| 490 | 490 | ||
| 491 | case '/if': | 491 | case '/if': |
| 492 | $this->_pop_tag('if'); | 492 | $this->_pop_tag('if'); |
| 493 | - return '<?PHP endif; ?>'; | 493 | + return '<?php endif; ?>'; |
| 494 | 494 | ||
| 495 | case 'capture': | 495 | case 'capture': |
| 496 | return $this->_compile_capture_tag(true, $tag_args); | 496 | return $this->_compile_capture_tag(true, $tag_args); |
| @@ -510,15 +510,15 @@ class Smarty_Compiler extends Smarty { | @@ -510,15 +510,15 @@ class Smarty_Compiler extends Smarty { | ||
| 510 | 510 | ||
| 511 | case 'sectionelse': | 511 | case 'sectionelse': |
| 512 | $this->_push_tag('sectionelse'); | 512 | $this->_push_tag('sectionelse'); |
| 513 | - return "<?PHP endfor; else: ?>"; | 513 | + return "<?php endfor; else: ?>"; |
| 514 | break; | 514 | break; |
| 515 | 515 | ||
| 516 | case '/section': | 516 | case '/section': |
| 517 | $_open_tag = $this->_pop_tag('section'); | 517 | $_open_tag = $this->_pop_tag('section'); |
| 518 | if ($_open_tag == 'sectionelse') | 518 | if ($_open_tag == 'sectionelse') |
| 519 | - return "<?PHP endif; ?>"; | 519 | + return "<?php endif; ?>"; |
| 520 | else | 520 | else |
| 521 | - return "<?PHP endfor; endif; ?>"; | 521 | + return "<?php endfor; endif; ?>"; |
| 522 | 522 | ||
| 523 | case 'foreach': | 523 | case 'foreach': |
| 524 | $this->_push_tag('foreach'); | 524 | $this->_push_tag('foreach'); |
| @@ -527,14 +527,14 @@ class Smarty_Compiler extends Smarty { | @@ -527,14 +527,14 @@ class Smarty_Compiler extends Smarty { | ||
| 527 | 527 | ||
| 528 | case 'foreachelse': | 528 | case 'foreachelse': |
| 529 | $this->_push_tag('foreachelse'); | 529 | $this->_push_tag('foreachelse'); |
| 530 | - return "<?PHP endforeach; else: ?>"; | 530 | + return "<?php endforeach; else: ?>"; |
| 531 | 531 | ||
| 532 | case '/foreach': | 532 | case '/foreach': |
| 533 | $_open_tag = $this->_pop_tag('foreach'); | 533 | $_open_tag = $this->_pop_tag('foreach'); |
| 534 | if ($_open_tag == 'foreachelse') | 534 | if ($_open_tag == 'foreachelse') |
| 535 | - return "<?PHP endif; unset(\$_from); ?>"; | 535 | + return "<?php endif; unset(\$_from); ?>"; |
| 536 | else | 536 | else |
| 537 | - return "<?PHP endforeach; endif; unset(\$_from); ?>"; | 537 | + return "<?php endforeach; endif; unset(\$_from); ?>"; |
| 538 | break; | 538 | break; |
| 539 | 539 | ||
| 540 | case 'strip': | 540 | case 'strip': |
| @@ -565,14 +565,14 @@ class Smarty_Compiler extends Smarty { | @@ -565,14 +565,14 @@ class Smarty_Compiler extends Smarty { | ||
| 565 | return ''; | 565 | return ''; |
| 566 | 566 | ||
| 567 | case 3: /* literal */ | 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 | case 4: /* php */ | 570 | case 4: /* php */ |
| 571 | if ($this->security && !$this->security_settings['PHP_TAGS']) { | 571 | if ($this->security && !$this->security_settings['PHP_TAGS']) { |
| 572 | $this->_syntax_error("(secure mode) php tags not permitted", E_USER_WARNING, __FILE__, __LINE__); | 572 | $this->_syntax_error("(secure mode) php tags not permitted", E_USER_WARNING, __FILE__, __LINE__); |
| 573 | return; | 573 | return; |
| 574 | } | 574 | } |
| 575 | - return '<?PHP ' . $block[3] .' ?>'; | 575 | + return '<?php ' . $block[3] .' ?>'; |
| 576 | } | 576 | } |
| 577 | break; | 577 | break; |
| 578 | 578 | ||
| @@ -648,7 +648,7 @@ class Smarty_Compiler extends Smarty { | @@ -648,7 +648,7 @@ class Smarty_Compiler extends Smarty { | ||
| 648 | if ($have_function) { | 648 | if ($have_function) { |
| 649 | $output = call_user_func_array($plugin_func, array($tag_args, &$this)); | 649 | $output = call_user_func_array($plugin_func, array($tag_args, &$this)); |
| 650 | if($output != '') { | 650 | if($output != '') { |
| 651 | - $output = '<?PHP ' . $this->_push_cacheable_state('compiler', $tag_command) | 651 | + $output = '<?php ' . $this->_push_cacheable_state('compiler', $tag_command) |
| 652 | . $output | 652 | . $output |
| 653 | . $this->_pop_cacheable_state('compiler', $tag_command) . ' ?>'; | 653 | . $this->_pop_cacheable_state('compiler', $tag_command) . ' ?>'; |
| 654 | } | 654 | } |
| @@ -734,7 +734,7 @@ class Smarty_Compiler extends Smarty { | @@ -734,7 +734,7 @@ class Smarty_Compiler extends Smarty { | ||
| 734 | $this->_pop_tag($tag_command); | 734 | $this->_pop_tag($tag_command); |
| 735 | 735 | ||
| 736 | if ($start_tag) { | 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 | $attrs = $this->_parse_attrs($tag_args); | 738 | $attrs = $this->_parse_attrs($tag_args); |
| 739 | $_cache_attrs=''; | 739 | $_cache_attrs=''; |
| 740 | $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, $_cache_attrs); | 740 | $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, $_cache_attrs); |
| @@ -742,7 +742,7 @@ class Smarty_Compiler extends Smarty { | @@ -742,7 +742,7 @@ class Smarty_Compiler extends Smarty { | ||
| 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);'; | 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 | $output .= 'while ($_block_repeat) { ob_start(); ?>'; | 743 | $output .= 'while ($_block_repeat) { ob_start(); ?>'; |
| 744 | } else { | 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 | $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat)'; | 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 | if ($tag_modifier != '') { | 747 | if ($tag_modifier != '') { |
| 748 | $this->_parse_modifiers($_out_tag_text, $tag_modifier); | 748 | $this->_parse_modifiers($_out_tag_text, $tag_modifier); |
| @@ -821,7 +821,7 @@ class Smarty_Compiler extends Smarty { | @@ -821,7 +821,7 @@ class Smarty_Compiler extends Smarty { | ||
| 821 | } | 821 | } |
| 822 | 822 | ||
| 823 | if($output != '') { | 823 | if($output != '') { |
| 824 | - $output = '<?PHP ' . $_cacheable_state . $_cache_attrs . 'echo ' . $output . ';' | 824 | + $output = '<?php ' . $_cacheable_state . $_cache_attrs . 'echo ' . $output . ';' |
| 825 | . $this->_pop_cacheable_state('function', $tag_command) . "?>" . $this->_additional_newline; | 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,7 +919,7 @@ class Smarty_Compiler extends Smarty { | ||
| 919 | $output = ''; | 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,7 +957,7 @@ class Smarty_Compiler extends Smarty { | ||
| 957 | 957 | ||
| 958 | $_params = "array('args' => array(".implode(', ', (array)$arg_list)."))"; | 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,7 +988,7 @@ class Smarty_Compiler extends Smarty { | ||
| 988 | $arg_list[] = "'$arg_name' => $arg_value"; | 988 | $arg_list[] = "'$arg_name' => $arg_value"; |
| 989 | } | 989 | } |
| 990 | 990 | ||
| 991 | - $output = '<?PHP '; | 991 | + $output = '<?php '; |
| 992 | 992 | ||
| 993 | if (isset($assign_var)) { | 993 | if (isset($assign_var)) { |
| 994 | $output .= "ob_start();\n"; | 994 | $output .= "ob_start();\n"; |
| @@ -1041,7 +1041,7 @@ class Smarty_Compiler extends Smarty { | @@ -1041,7 +1041,7 @@ class Smarty_Compiler extends Smarty { | ||
| 1041 | 1041 | ||
| 1042 | $_params = "array('smarty_file' => " . $attrs['file'] . ", 'smarty_assign' => '$assign_var', 'smarty_once' => $once_var, 'smarty_include_vars' => array(".implode(',', $arg_list)."))"; | 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,7 +1056,7 @@ class Smarty_Compiler extends Smarty { | ||
| 1056 | $attrs = $this->_parse_attrs($tag_args); | 1056 | $attrs = $this->_parse_attrs($tag_args); |
| 1057 | $arg_list = array(); | 1057 | $arg_list = array(); |
| 1058 | 1058 | ||
| 1059 | - $output = '<?PHP '; | 1059 | + $output = '<?php '; |
| 1060 | $section_name = $attrs['name']; | 1060 | $section_name = $attrs['name']; |
| 1061 | if (empty($section_name)) { | 1061 | if (empty($section_name)) { |
| 1062 | $this->_syntax_error("missing section name", E_USER_ERROR, __FILE__, __LINE__); | 1062 | $this->_syntax_error("missing section name", E_USER_ERROR, __FILE__, __LINE__); |
| @@ -1191,7 +1191,7 @@ class Smarty_Compiler extends Smarty { | @@ -1191,7 +1191,7 @@ class Smarty_Compiler extends Smarty { | ||
| 1191 | $name = null; | 1191 | $name = null; |
| 1192 | } | 1192 | } |
| 1193 | 1193 | ||
| 1194 | - $output = '<?PHP '; | 1194 | + $output = '<?php '; |
| 1195 | $output .= "\$_from = $from; if (!is_array(\$_from) && !is_object(\$_from)) { settype(\$_from, 'array'); }"; | 1195 | $output .= "\$_from = $from; if (!is_array(\$_from) && !is_object(\$_from)) { settype(\$_from, 'array'); }"; |
| 1196 | if (isset($name)) { | 1196 | if (isset($name)) { |
| 1197 | $foreach_props = "\$this->_foreach[$name]"; | 1197 | $foreach_props = "\$this->_foreach[$name]"; |
| @@ -1226,11 +1226,11 @@ class Smarty_Compiler extends Smarty { | @@ -1226,11 +1226,11 @@ class Smarty_Compiler extends Smarty { | ||
| 1226 | $assign = isset($attrs['assign']) ? $attrs['assign'] : null; | 1226 | $assign = isset($attrs['assign']) ? $attrs['assign'] : null; |
| 1227 | $append = isset($attrs['append']) ? $attrs['append'] : null; | 1227 | $append = isset($attrs['append']) ? $attrs['append'] : null; |
| 1228 | 1228 | ||
| 1229 | - $output = "<?PHP ob_start(); ?>"; | 1229 | + $output = "<?php ob_start(); ?>"; |
| 1230 | $this->_capture_stack[] = array($buffer, $assign, $append); | 1230 | $this->_capture_stack[] = array($buffer, $assign, $append); |
| 1231 | } else { | 1231 | } else { |
| 1232 | list($buffer, $assign, $append) = array_pop($this->_capture_stack); | 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 | if (isset($assign)) { | 1234 | if (isset($assign)) { |
| 1235 | $output .= " \$this->assign($assign, ob_get_contents());"; | 1235 | $output .= " \$this->assign($assign, ob_get_contents());"; |
| 1236 | } | 1236 | } |
| @@ -1414,9 +1414,9 @@ class Smarty_Compiler extends Smarty { | @@ -1414,9 +1414,9 @@ class Smarty_Compiler extends Smarty { | ||
| 1414 | } | 1414 | } |
| 1415 | 1415 | ||
| 1416 | if ($elseif) | 1416 | if ($elseif) |
| 1417 | - return '<?PHP elseif ('.implode(' ', $tokens).'): ?>'; | 1417 | + return '<?php elseif ('.implode(' ', $tokens).'): ?>'; |
| 1418 | else | 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 | * Smarty plugin | 3 | * Smarty plugin |
| 4 | * @package Smarty | 4 | * @package Smarty |
| @@ -25,7 +25,7 @@ function smarty_core_write_compiled_include($params, &$smarty) | @@ -25,7 +25,7 @@ function smarty_core_write_compiled_include($params, &$smarty) | ||
| 25 | if (count($_match_source)==0) return; | 25 | if (count($_match_source)==0) return; |
| 26 | 26 | ||
| 27 | // convert the matched php-code to functions | 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 | $_include_compiled .= " compiled from " . strtr(urlencode($params['resource_name']), array('%2F'=>'/', '%3A'=>':')) . " */\n\n"; | 29 | $_include_compiled .= " compiled from " . strtr(urlencode($params['resource_name']), array('%2F'=>'/', '%3A'=>':')) . " */\n\n"; |
| 30 | 30 | ||
| 31 | $_compile_path = $params['include_file_path']; | 31 | $_compile_path = $params['include_file_path']; |
| @@ -34,7 +34,7 @@ function smarty_core_write_compiled_include($params, &$smarty) | @@ -34,7 +34,7 @@ function smarty_core_write_compiled_include($params, &$smarty) | ||
| 34 | $_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>"; | 34 | $_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>"; |
| 35 | 35 | ||
| 36 | $_include_compiled .= $params['plugins_code']; | 36 | $_include_compiled .= $params['plugins_code']; |
| 37 | - $_include_compiled .= "<?PHP "; | 37 | + $_include_compiled .= "<?php"; |
| 38 | 38 | ||
| 39 | $this_varname = ((double)phpversion() >= 5.0) ? '_smarty' : 'this'; | 39 | $this_varname = ((double)phpversion() >= 5.0) ? '_smarty' : 'this'; |
| 40 | for ($_i = 0, $_for_max = count($_match_source); $_i < $_for_max; $_i++) { | 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,9 +42,9 @@ function smarty_core_write_compiled_include($params, &$smarty) | ||
| 42 | $source = $_match[4]; | 42 | $source = $_match[4]; |
| 43 | if ($this_varname == '_smarty') { | 43 | if ($this_varname == '_smarty') { |
| 44 | /* rename $this to $_smarty in the sourcecode */ | 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 | $open_tag = ''; | 48 | $open_tag = ''; |
| 49 | while ($tokens) { | 49 | while ($tokens) { |
| 50 | $token = array_shift($tokens); | 50 | $token = array_shift($tokens); |
| @@ -53,7 +53,7 @@ function smarty_core_write_compiled_include($params, &$smarty) | @@ -53,7 +53,7 @@ function smarty_core_write_compiled_include($params, &$smarty) | ||
| 53 | } else { | 53 | } else { |
| 54 | $open_tag .= $token; | 54 | $open_tag .= $token; |
| 55 | } | 55 | } |
| 56 | - if ($open_tag == '<?PHP ') break; | 56 | + if ($open_tag == '<?php ') break; |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | for ($i=0, $count = count($tokens); $i < $count; $i++) { | 59 | for ($i=0, $count = count($tokens); $i < $count; $i++) { |
| 1 | -<?PHP | 1 | +<?php |
| 2 | /** | 2 | /** |
| 3 | * Smarty plugin | 3 | * Smarty plugin |
| 4 | * @package Smarty | 4 | * @package Smarty |
| @@ -98,9 +98,9 @@ function smarty_function_config_load($params, &$smarty) | @@ -98,9 +98,9 @@ function smarty_function_config_load($params, &$smarty) | ||
| 98 | $_config_vars = array_merge($smarty->_conf_obj->get($_file), | 98 | $_config_vars = array_merge($smarty->_conf_obj->get($_file), |
| 99 | $smarty->_conf_obj->get($_file, $_section)); | 99 | $smarty->_conf_obj->get($_file, $_section)); |
| 100 | if(function_exists('var_export')) { | 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 | } else { | 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 | $_params = (array('compile_path' => $_compile_file, 'compiled_content' => $_output, 'resource_timestamp' => $_params['resource_timestamp'])); | 105 | $_params = (array('compile_path' => $_compile_file, 'compiled_content' => $_output, 'resource_timestamp' => $_params['resource_timestamp'])); |
| 106 | require_once(SMARTY_CORE_DIR . 'core.write_compiled_resource.php'); | 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