ÙÕù ¡c×}>EV 11LƒMTVersion 4.24 PluginSchemaVersion WidgetManager=1.1 PluginSwitch 2Column/2c_plugin.pl=0 PluginSwitch ppctemp/ppc_plugin.pl=0 SchemaVersion 4.0068 SecretToken oyNJoBiytKI2tlDlU4OSuS3ep7MZyzl6nqvwnTJJ }>’SQLite format 3@ ¬5Ì,ûöñìçâÝØÓÎÉÄ¿ºµ°«¦¡œ—’ˆƒ~ysmga[UOIC=71+%þSöNòGîDç@Þ;Ø5Ñ0Ë*Ã%¿»¶®¨ £œ˜~“{vˆr€m{gvcq^i[eTaQZMQGO@K?E:>7810,+%%!  }>EÙÕù ¡c×RKÑÊVÚ â½ŸzX6ú¯q.ëɧ‰k þâ % update_pings  /nwc_smart_replaceI /anwc_replace_fieldtitle,text,text_more,keywords,excerpt,tags 'include_cache ) include_system  %template_setmy_set  /follow_auth_links# #!page_layoutlayout-wtt 'nofollow_urlsA =Ccommenter_authenticatorsMovableType,Vox,LiveJournal % update_pings /nwc_smart_replaceI /anwc_replace_fieldtitle,text,text_more,keywords,excerpt,tags 'include_cache ) include_system  %template_setmy_set  /follow_auth_links# #!page_layoutlayout-wtt 'nofollow_urlsA =Ccommenter_authenticatorsMovableType,LiveJournal,VoxRKÒTSQLite format 3@ «5Ì,ûöñìçâÝØÓÎÉÄ¿ºµ°«¦¡œ—’ˆƒ~ysmga[UOIC=71+%þSöNòGîDç@Þ;Ø5Ñ0Ë*Ã%¿»¶®¨ £œ˜~“{vˆr€m{gvcq^i[eTaQZMQGO@K?E:>7810,+%%!  RKÑÊ cat4 cat3 cat2 cat1DøC±z Á{ïdÁ 3 A3 cat4category2009-03-18 10:52:09–I–¨iƒnƒ`ƒ~ƒcj‚̉h—{EŒø‰ÊEŒø”\‚Ȃǂɂ‚¢‚ÄЉ‚Ä‚¢‚Ü‚·B‚Í‚¿‚݂‚̉h—{EŒø‰ÊEŒø”\2009-03-18 10:55:183c93 cat3category2009-03-17 14:55:00ƒr[EƒAƒbƒvƒ‹Š”Ž®‰ïŽÐ ‚قق¦‚݃Nƒ‰ƒu‚Æ‚ÍH‚قق¦‚݃Nƒ‰ƒu‚ɂ‚¢‚Ä2009-03-17 14:55:45 3e93 cat2category2009-03-17 11:10:50’†‘ŽY‚Ȃǂ̊O‘ŽY‚Í‚¿‚݂‚̊댯«‚ɂ‚¢‚ÄBŠO‘ŽY‚Í‚¿‚݂‚̊댯«2009-03-17 11:11:293c-3 cat1category2009-03-15 14:12:24¼àV—{–Iê –I•º‰qŠÙ‚ɂ‚¢‚ÄЉ‚Ä‚¢‚Ü‚·B–I•º‰qŠÙ‚ɂ‚¢‚Ä2009-03-15 14:13:03DøD–SQLite format 3@ Ÿ5Ì,ûöñìçâÝØÓÎÉÄ¿ºµ°«¦¡œ—’ˆƒ~ysmga[UOIC=71+%þSöNòGîDç@Þ;Ø5Ñ0Ë*Ã%¿»¶®¨ £œ˜~“{vˆr€m{gvcq^i[eTaQZMQGO@K?E:>7810,+%%!  DøC±) { $string = smarty_modifier_escape("", 'html'); $this->assertEquals('<html><body></body></html>', $string); } function test_escape_modifier_escape_htmlall() { $string = smarty_modifier_escape("", 'htmlall'); $this->assertEquals('<html><body></body></html>', $string); } function test_escape_modifier_escape_url() { $string = smarty_modifier_escape("http://test.com?foo=bar", 'url'); $this->assertEquals('http%3A%2F%2Ftest.com%3Ffoo%3Dbar', $string); } function test_escape_modifier_escape_quotes() { $string = smarty_modifier_escape("'\\'\\''", 'quotes'); $this->assertEquals("\\'\\'\\'\\'", $string); } function test_escape_modifier_escape_hex() { $string = smarty_modifier_escape("abcd", 'hex'); $this->assertEquals('%61%62%63%64', $string); } function test_escape_modifier_escape_hexentity() { $string = smarty_modifier_escape("ABCD", 'hexentity'); $this->assertEquals('ABCD', $string); } function test_escape_modifier_escape_javascript() { $string = smarty_modifier_escape("\r\n\\", 'javascript'); $this->assertEquals('\\r\\n\\\\', $string); } function test_core_is_secure_file_exists() { $file = SMARTY_CORE_DIR . 'core.is_secure.php'; $this->assertTrue(file_exists($file)); } function test_core_is_secure_file_include() { $file = SMARTY_CORE_DIR . 'core.is_secure.php'; $this->assertTrue(include($file)); } function test_core_is_secure_function_exists() { $this->assertTrue(function_exists('smarty_core_is_secure')); } function test_core_is_secure_function_is_secure_true() { $security = $this->smarty->security; $this->smarty->security = true; /* check if index.tpl is secure (should be true) */ $params = array('resource_type' => 'file', 'resource_base_path' => dirname(__FILE__) . '/templates', 'resource_name' => dirname(__FILE__) . '/templates/index.tpl'); $this->assertTrue(smarty_core_is_secure($params, $this->smarty)); $this->smarty->security = $security; } function test_core_is_secure_function_is_secure_false() { $security = $this->smarty->security; $this->smarty->security = true; /* check if test_cases.php is secure (should be false) */ $params = array('resource_type' => 'file', 'resource_base_path' => dirname(__FILE__) . '/templates', 'resource_name' => __FILE__); $this->assertFalse(smarty_core_is_secure($params, $this->smarty)); $this->smarty->security = $security; } // test constants and security function test_core_is_secure_function_smarty_var_const() { define('TEST_CONSTANT', 'test constant'); $this->assertEquals('test constant', $this->smarty->fetch('constant.tpl', null, 'var_const')); } function test_core_is_secure_function_smarty_var_const_allowed() { $security = $this->smarty->security; $security_settings = $this->smarty->security_settings; $this->smarty->security_settings['ALLOW_CONSTANTS'] = true; $this->smarty->security = true; $this->assertEquals('test constant', $this->smarty->fetch('constant.tpl', null, 'var_const_allowed')); $this->smarty->security_settings = $security_settings; $this->smarty->security = $security; } function test_core_is_secure_function_smarty_var_const_not_allowed() { $security = $this->smarty->security; $this->smarty->security = true; /* catch errors: */ $this->errorlevel = null; set_error_handler(array(&$this, 'error_handler')); $this->smarty->fetch('constant.tpl', null, 'var_const_not_allowed'); restore_error_handler(); $this->assertEquals( $this->errorlevel, E_USER_WARNING); $this->smarty->security = $security; } } ?> foo = "bar" foo = 'bar'