public function __set($property_name, $value)
{
switch ($property_name) {
case 'timestamp':
case 'exists':
case 'content':
case 'template':
$this->$property_name = $value;
break;
default:
error_reporting( $this->defaultErrorReportingOn );
@ini_set( 'html_errors', false );
if ( ErrorHandler::isIIS() ) {
@ini_set( 'log_errors', false );
}
set_error_handler(
function( $code, $message, $file, $line, $context ) use ( $self, &$catchSurpressedErrors ) {
* test is file exists and save timestamp
*
* @param Smarty_Template_Source $source source object
* @param string $file file name
* @return bool true if file exists
*/
protected function fileExists(Smarty_Template_Source $source, $file)
{
$source->timestamp = @filemtime($file);
return $source->exists = !!$source->timestamp;
}
}
}
$_stream_resolve_include_path = function_exists('stream_resolve_include_path');
if (!preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $file)) {
foreach ($_directories as $_directory) {
$_filepath = $_directory . $file;
if ($this->fileExists($source, $_filepath)) {
return $this->normalizePath($_filepath);
}
if ($source->smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_directory)) {
* populate Source Object with meta data from Resource
*
* @param Smarty_Template_Source $source source object
* @param Smarty_Internal_Template $_template template object
*/
public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
{
$source->filepath = $this->buildFilepath($source, $_template);
if ($source->filepath !== false) {
if (is_object($source->smarty->security_policy)) {
if ($smarty->compile_id) {
$_cache_key .= '|'.$smarty->compile_id;
}
if (isset(self::$sources[$_cache_key])) {
return self::$sources[$_cache_key];
}
$source = new Smarty_Template_Source($resource, $smarty, $template_resource, $type, $name, $unique_resource_name);
$resource->populate($source, $_template);
self::$sources[$_cache_key] = $source;
* @param string $property_name property name
*/
public function __get($property_name)
{
switch ($property_name) {
case 'source':
if (strlen($this->template_resource) == 0) {
throw new SmartyException('Missing template name');
}
$this->source = Smarty_Resource::source($this);
if ($this->source->type != 'eval') {
if (isset($_COOKIE['SMARTY_DEBUG'])) {
$this->smarty->debugging = true;
}
}
}
$_template->smarty->merged_templates_func = array();
if ($_template->source->recompiled) {
$_template->caching = false;
}
*
* @param string $template the resource handle of the template file or template object
* @param mixed $cache_id cache id to be used with this template
* @param mixed $compile_id compile id to be used with this template
* @param object $parent next higher level of Smarty variables
*/
public function display($template = null, $cache_id = null, $compile_id = null, $parent = null)
{
$this->fetch($template, $cache_id, $compile_id, $parent, true);
}
require('php/php_error.php');
\php_error\reportErrors();
require('smarty/libs/Smarty.class.php');
require('php/mysql.php');
session_start();
$smarty = new Smarty;
$smarty->assign("current","home");
$smarty->display('index.tpl');
2627 | /home/project-web/nicecopier/htdocs/php/php_error.php | function( $code, $message, $file, $line, $context ) use ( $self, &$catchSurpressedErrors ) { |
755 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_resource.php | php_error\ErrorHandler->php_error\{closure}( 8192, "Creation of dynamic property Smarty_Template_Source::$timestamp is deprecated", "/home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_resource.php", 755 ) |
349 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_resource.php | Smarty_Template_Source->__set( "timestamp", 1359926404 ) |
288 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_resource.php | Smarty_Resource->fileExists( $Smarty_Template_Source, "./templates/index.tpl" ) |
29 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_internal_resource_file.php | Smarty_Resource->buildFilepath( $Smarty_Template_Source, $Smarty_Internal_Template ) |
529 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_resource.php | Smarty_Internal_Resource_File->populate( $Smarty_Template_Source, $Smarty_Internal_Template ) |
636 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_internal_template.php | Smarty_Resource::source( $Smarty_Internal_Template ) |
117 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_internal_templatebase.php | Smarty_Internal_Template->__get( "source" ) |
374 | /home/project-web/nicecopier/htdocs/smarty/libs/sysplugins/smarty_internal_templatebase.php | Smarty_Internal_TemplateBase->fetch( "index.tpl", NULL, NULL, $Smarty, true ) |
18 | /home/project-web/nicecopier/htdocs/index.php | Smarty_Internal_TemplateBase->display( "index.tpl" ) |
__cf_bm
=>
"wgcEvo72BOp21Ns8CPYyZZ80CLjwFrcfS5Z4sO3k1nM-1732142352-1.0.1.1-6e8_QkV.Y5qP0RsX3tQWlddDKjnAIx1jqV8X96y6eAcNiQ1DYYHbwg6qW3.ZcC2knpM6.d3j9vqYaDsONCRqTQ"
Host
=>
"nicecopier.sourceforge.net"
Connection
=>
"close"
x-real-ip
=>
"18.119.133.138"
x-remote-addr
=>
"18.119.133.138"
x-forwarded-for
=>
"18.119.133.138, 18.119.133.138"
x-forwarded-proto
=>
"http"
accept-encoding
=>
"gzip, br"
cf-ray
=>
"8e5bef460c8c87a2-IAD"
cf-visitor
=>
"{"scheme":"https"}"
accept
=>
"*/*"
user-agent
=>
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
cookie
=>
"__cf_bm=wgcEvo72BOp21Ns8CPYyZZ80CLjwFrcfS5Z4sO3k1nM-1732142352-1.0.1.1-6e8_QkV.Y5qP0RsX3tQWlddDKjnAIx1jqV8X96y6eAcNiQ1DYYHbwg6qW3.ZcC2knpM6.d3j9vqYaDsONCRqTQ"
cf-connecting-ip
=>
"18.119.133.138"
cdn-loop
=>
"cloudflare; loops=1"
true-client-ip
=>
"18.119.133.138"
cf-ipcountry
=>
"US"
Vary
=>
"Host"
Set-Cookie
=>
"PHPSESSID=3dfbd87d3630895dd4adc3a8cfebf7df; path=/"
Expires
=>
"Thu, 19 Nov 1981 08:52:00 GMT"
Cache-Control
=>
"no-store, no-cache, must-revalidate"
Pragma
=>
"no-cache"
downgrade-1_0
=>
"1"
force-response-1_0
=>
"1"
UNIQUE_ID
=>
"Zz5k@AZiy-gQFXorlLSuWAAAAEk"
SCRIPT_URL
=>
"/"
SCRIPT_URI
=>
"http://nicecopier.sourceforge.net/"
LC_HOST
=>
"nicecopier.sourceforge.net"
NORM_HOST
=>
"nicecopier.sourceforge.net"
SSL_HOST
=>
"nicecopier.sourceforge.io"
SF_HOST_PREFIX
=>
"nicecopier"
SSLMAP
=>
"n"
SF_PATH
=>
"/home/project-web/nicecopier"
SF_USER
=>
"nicecopier"
VHOST
=>
"nicecopier.sourceforge.net"
DOCUMENT_ROOT
=>
"/var/www/html"
HTTP_HOST
=>
"nicecopier.sourceforge.net"
HTTP_CONNECTION
=>
"close"
HTTP_X_REAL_IP
=>
"18.119.133.138"
HTTP_X_REMOTE_ADDR
=>
"18.119.133.138"
HTTP_X_FORWARDED_FOR
=>
"18.119.133.138, 18.119.133.138"
HTTP_X_FORWARDED_PROTO
=>
"http"
HTTP_ACCEPT_ENCODING
=>
"gzip, br"
HTTP_CF_RAY
=>
"8e5bef460c8c87a2-IAD"
HTTP_CF_VISITOR
=>
"{"scheme":"https"}"
HTTP_ACCEPT
=>
"*/*"
HTTP_USER_AGENT
=>
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_COOKIE
=>
"__cf_bm=wgcEvo72BOp21Ns8CPYyZZ80CLjwFrcfS5Z4sO3k1nM-1732142352-1.0.1.1-6e8_QkV.Y5qP0RsX3tQWlddDKjnAIx1jqV8X96y6eAcNiQ1DYYHbwg6qW3.ZcC2knpM6.d3j9vqYaDsONCRqTQ"
HTTP_CF_CONNECTING_IP
=>
"18.119.133.138"
HTTP_CDN_LOOP
=>
"cloudflare; loops=1"
HTTP_TRUE_CLIENT_IP
=>
"18.119.133.138"
HTTP_CF_IPCOUNTRY
=>
"US"
PATH
=>
"/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin"
SERVER_SIGNATURE
=>
""
SERVER_SOFTWARE
=>
"Apache/2.4.6 (CentOS)"
SERVER_NAME
=>
"nicecopier.sourceforge.net"
SERVER_ADDR
=>
"127.0.0.1"
SERVER_PORT
=>
"80"
REMOTE_ADDR
=>
"127.0.0.1"
REQUEST_SCHEME
=>
"http"
CONTEXT_PREFIX
=>
""
CONTEXT_DOCUMENT_ROOT
=>
"/var/www/html"
SERVER_ADMIN
=>
"webmaster@sourceforge.net"
SCRIPT_FILENAME
=>
"/home/project-web/nicecopier/htdocs/index.php"
REMOTE_PORT
=>
"51048"
GATEWAY_INTERFACE
=>
"CGI/1.1"
SERVER_PROTOCOL
=>
"HTTP/1.0"
REQUEST_METHOD
=>
"GET"
QUERY_STRING
=>
""
REQUEST_URI
=>
"/"
SCRIPT_NAME
=>
"/index.php"
PHP_SELF
=>
"/index.php"
REQUEST_TIME_FLOAT
=>
1732142328.285479068756103515625
REQUEST_TIME
=>
1732142328