Advertisement
Guest User

Untitled

a guest
Jan 28th, 2010
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 77.72 KB | None | 0 0
  1. Search "tag" (425 hits in 46 files)
  2.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\cat_add.php (2 hits)
  3.     Line 21:    $name = htmlentities(strip_tags($_REQUEST['name']), ENT_COMPAT, "UTF-8");
  4.     Line 22:    $seo = htmlentities(strip_tags($_REQUEST['seo']), ENT_COMPAT, "UTF-8");
  5.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\cat_edit.php (2 hits)
  6.     Line 24:        $name = htmlentities(strip_tags($_REQUEST['name']), ENT_COMPAT, "UTF-8");
  7.     Line 25:        $seo = htmlentities(strip_tags($_REQUEST['seo']), ENT_COMPAT, "UTF-8");
  8.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\css\boxes.php (3 hits)
  9.     Line 774: .head-tag, .head-tag-product    { background-image:url(<?php echo $iurl;?>/fam_tag_orange.gif); }
  10.     Line 774: .head-tag, .head-tag-product    { background-image:url(<?php echo $iurl;?>/fam_tag_orange.gif); }
  11.     Line 774: .head-tag, .head-tag-product    { background-image:url(<?php echo $iurl;?>/fam_tag_orange.gif); }
  12.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\questions_edit.php (1 hits)
  13.     Line 43:        $arr = array("username", "title", "question", "tags", "category", "vote_yes", "vote_no", "active", "viewcount");
  14.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\ask.php (2 hits)
  15.     Line 25:        $question = htmlentities(strip_tags($_REQUEST['question']), ENT_COMPAT, "UTF-8");
  16.     Line 42:            $query="INSERT INTO posts SET USERID='".mysql_real_escape_string($USERID)."', title='".mysql_real_escape_string($question)."',question='".mysql_real_escape_string($question)."', tags='".mysql_real_escape_string($question)."', category='".mysql_real_escape_string($category)."', time_added='".time()."', date_added='".date("Y-m-d")."' $addtosql";
  17.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\changeemail.php (2 hits)
  18.     Line 40:            $newemail = htmlentities(strip_tags($_REQUEST[email]));
  19.     Line 129:       $notify = intval(htmlentities(strip_tags($_REQUEST[notify])));
  20.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\changepass.php (1 hits)
  21.     Line 43:                $password = htmlentities(strip_tags($_REQUEST[npassword]));
  22.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\confirmemail.php (1 hits)
  23.     Line 20:    $code = htmlentities(strip_tags($_REQUEST['code']), ENT_COMPAT, "UTF-8");
  24.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\css\apps.php (1 hits)
  25.     Line 266: .postTxt, .tagTxt{font-size:11px; color:#999999}
  26.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\css\common.php (2 hits)
  27.     Line 21: .tagCloud{list-style:none;margin:0px;padding:0}
  28.     Line 58: .tagCloud span,form{margin:0;padding:0}
  29.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\css\text_en.php (2 hits)
  30.     Line 21: p.tagCloud{line-height:190%}
  31.     Line 22: .tagCloud{line-height:180%}
  32.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\editaccount.php (3 hits)
  33.     Line 63:        $firstname = htmlentities(strip_tags($_REQUEST['firstname']), ENT_COMPAT, "UTF-8");
  34.     Line 64:        $lastname = htmlentities(strip_tags($_REQUEST['lastname']), ENT_COMPAT, "UTF-8");
  35.     Line 65:        $description = htmlentities(strip_tags($_REQUEST['vdescription']), ENT_COMPAT, "UTF-8");
  36.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\forgot.php (1 hits)
  37.     Line 18: $email = htmlentities(strip_tags($_REQUEST['email']), ENT_COMPAT, "UTF-8");
  38.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\include\functions\main.php (2 hits)
  39.     Line 419: function insert_get_tags($a)
  40.     Line 421:         $results = $a[tags];
  41.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\include\lang\english.php (1 hits)
  42.     Line 188: $lang['184'] =  "Tags";
  43.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\include\lang\french.php (1 hits)
  44.     Line 188: $lang['184'] = "Tags";
  45.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\adodb-connection.inc.php (2 hits)
  46.     Line 146:       else echo strip_tags($msg);
  47.     Line 414:       Advantages include:
  48.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\adodb-recordset.inc.php (4 hits)
  49.     Line 94:     * Generate a SELECT tag string from a recordset, and return the string.
  50.     Line 99:     * @param name          name of SELECT tag
  51.     Line 104:    * @param [selectAttr]      additional attributes to defined for SELECT tag.
  52.     Line 122:    * Generate a SELECT tag string from a recordset, and return the string.
  53.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\adodb-session.php (1 hits)
  54.     Line 63:     you can tag a session with an EXPIREREF, and before the session
  55.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\toexport.inc.php (3 hits)
  56.     Line 79:            $v = strip_tags(str_replace("\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)));
  57.     Line 98:                $v = strip_tags(str_replace("\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)));
  58.     Line 106:               $v = strip_tags(str_replace("\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)));
  59.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\tohtml.inc.php (1 hits)
  60.     Line 26: // $ztabhtml: the table tag attributes (optional)
  61.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\phpmailer\language\phpmailer.lang-no.php (2 hits)
  62.     Line 10:                                      'mottager adresse.';
  63.     Line 17:                                        'mottagere feilet: ';
  64.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\phpmailer\language\phpmailer.lang-se.php (2 hits)
  65.     Line 11:                                      'mottagares e-postadress.';
  66.     Line 18:                                        'mottagare är felaktig: ';
  67.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\login.php (2 hits)
  68.     Line 25: $username = htmlentities(strip_tags($_REQUEST['lusername']), ENT_COMPAT, "UTF-8");
  69.     Line 30:    $password = htmlentities(strip_tags($_REQUEST['lpassword']), ENT_COMPAT, "UTF-8");
  70.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\resetpassword.php (1 hits)
  71.     Line 18: $code = htmlentities(strip_tags($_REQUEST['code']), ENT_COMPAT, "UTF-8");
  72.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\search.php (2 hits)
  73.     Line 36: $key = htmlentities(strip_tags($_REQUEST['key']), ENT_COMPAT, "UTF-8");
  74.     Line 37: $text = htmlentities(strip_tags($_REQUEST['query']), ENT_COMPAT, "UTF-8");
  75.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\signup.php (5 hits)
  76.     Line 26: $username = htmlentities(strip_tags($_REQUEST['username']), ENT_COMPAT, "UTF-8");
  77.     Line 29: $email = htmlentities(strip_tags($_REQUEST['email']), ENT_COMPAT, "UTF-8");
  78.     Line 30: $redirect = htmlentities(strip_tags($_REQUEST['redirect']), ENT_COMPAT, "UTF-8");
  79.     Line 38:    $password = htmlentities(strip_tags($_REQUEST['password']), ENT_COMPAT, "UTF-8");
  80.     Line 39:    $confirmpassword = htmlentities(strip_tags($_REQUEST['confirmpassword']), ENT_COMPAT, "UTF-8");
  81.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.load_plugins.php (1 hits)
  82.     Line 110:                 $_message = "unknown tag - '$_name'";
  83.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.process_compiled_include.php (1 hits)
  84.     Line 9:  * Replace nocache-tags by results of the corresponding non-cacheable
  85.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.run_insert_handler.php (3 hits)
  86.     Line 9:  * Handle insert tags
  87.     Line 26:         if (!isset($smarty->_cache_info['insert_tags'][$_name])) {
  88.     Line 27:             $smarty->_cache_info['insert_tags'][$_name] = array('insert',
  89.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.write_cache_file.php (7 hits)
  90.     Line 34:     // collapse nocache.../nocache-tags
  91.     Line 36:         // remove everything between every pair of outermost noache.../nocache-tags
  92.     Line 37:         // and replace it by a single nocache-tag
  93.     Line 38:         // this new nocache-tag will be replaced by dynamic contents in
  94.     Line 48:                 // nocache tag
  95.     Line 49:                 if ($match[1][$j]) { // closing tag
  96.     Line 52:                 } else { // opening tag
  97.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.write_compiled_include.php (4 hits)
  98.     Line 18:     $_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\';\}';
  99.     Line 19:     $_tag_end   = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\';\}';
  100.     Line 21:     preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
  101.     Line 21:     preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
  102.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\compiler.assign.php (2 hits)
  103.     Line 19: function smarty_compiler_assign($tag_attrs, &$compiler)
  104.     Line 21:     $_params = $compiler->_parse_attrs($tag_attrs);
  105.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.config_load.php (1 hits)
  106.     Line 39:             $smarty->trigger_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__);
  107.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.html_image.php (1 hits)
  108.     Line 15:  * Purpose:  format HTML tags for the image<br>
  109.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.html_options.php (1 hits)
  110.     Line 20:  * Purpose:  Prints the list of <option> tags generated from
  111.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.html_select_date.php (3 hits)
  112.     Line 59:     /* <select size>'s of the different <select> tags.
  113.     Line 64:     /* Unparsed attributes common to *ALL* the <select>/<input> tags.
  114.     Line 67:     /* Separate attributes for the tags. */
  115.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.mailto.php (1 hits)
  116.     Line 29:  *         - extra = (optional) extra tags for the href link
  117.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\modifier.nl2br.php (1 hits)
  118.     Line 18:  *         - preceed_test = if true, includes preceeding break tags
  119.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\modifier.strip_tags.php (7 hits)
  120.     Line 10:  * Smarty strip_tags modifier plugin
  121.     Line 13:  * Name:     strip_tags<br>
  122.     Line 14:  * Purpose:  strip html tags from text
  123.     Line 15:  * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php
  124.     Line 16:  *          strip_tags (Smarty online manual)
  125.     Line 21: function smarty_modifier_strip_tags($string, $replace_with_space = true)
  126.     Line 26:         return strip_tags($string);
  127.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\outputfilter.trimwhitespace.php (1 hits)
  128.     Line 49:     // preceeded by a php close tag.
  129.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\Smarty.class.php (14 hits)
  130.     Line 191:      * This determines how Smarty handles "<?php ... ?>" tags in templates.
  131.     Line 194:      *  <li>SMARTY_PHP_PASSTHRU -> print tags as plain text</li>
  132.     Line 195:      *  <li>SMARTY_PHP_QUOTE    -> escape tags as entities</li>
  133.     Line 196:      *  <li>SMARTY_PHP_REMOVE   -> remove php tags</li>
  134.     Line 197:      *  <li>SMARTY_PHP_ALLOW    -> execute php tags</li>
  135.     Line 237:                                     'PHP_TAGS'        => false,
  136.     Line 251:      * The left delimiter used for the template tags.
  137.     Line 258:      * The right delimiter used for the template tags.
  138.     Line 435:      * keeps track of tag hierarchy
  139.     Line 439:     var $_tag_stack            = array();
  140.     Line 1171:                 if (!empty($this->_cache_info['insert_tags'])) {
  141.     Line 1172:                     $_params = array('plugins' => $this->_cache_info['insert_tags']);
  142.     Line 1200:                         if (@count($this->_cache_info['insert_tags']) == 0
  143.     Line 1280:                 // strip nocache-tags from output
  144.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\Smarty_Compiler.class.php (312 hits)
  145.     Line 272:         /* Gather all template tags. */
  146.     Line 274:         $template_tags = $_match[1];
  147.     Line 275:         /* Split content by template tags to obtain non-template content. */
  148.     Line 280:             /* match anything resembling php tags */
  149.     Line 282:                 /* replace tags with placeholders to prevent recursive replacements */
  150.     Line 294:                         /* quote php tags */
  151.     Line 297:                         /* remove php tags */
  152.     Line 300:                         /* SMARTY_PHP_ALLOW, but echo non php starting tags */
  153.     Line 308:         /* Compile the template tags into PHP code. */
  154.     Line 309:         $compiled_tags = array();
  155.     Line 310:         for ($i = 0, $for_max = count($template_tags); $i < $for_max; $i++) {
  156.     Line 312:             $compiled_tags[] = $this->_compile_tag($template_tags[$i]);
  157.     Line 312:             $compiled_tags[] = $this->_compile_tag($template_tags[$i]);
  158.     Line 312:             $compiled_tags[] = $this->_compile_tag($template_tags[$i]);
  159.     Line 313:             $this->_current_line_no += substr_count($template_tags[$i], "\n");
  160.     Line 315:         if (count($this->_tag_stack)>0) {
  161.     Line 316:             list($_open_tag, $_line_no) = end($this->_tag_stack);
  162.     Line 316:             list($_open_tag, $_line_no) = end($this->_tag_stack);
  163.     Line 317:             $this->_syntax_error("unclosed tag \{$_open_tag} (opened line $_line_no).", E_USER_ERROR, __FILE__, __LINE__);
  164.     Line 317:             $this->_syntax_error("unclosed tag \{$_open_tag} (opened line $_line_no).", E_USER_ERROR, __FILE__, __LINE__);
  165.     Line 324:         for ($i = 0, $for_max = count($compiled_tags); $i < $for_max; $i++) {
  166.     Line 325:             if ($compiled_tags[$i] == '') {
  167.     Line 326:                 // tag result empty, remove first newline from following text block
  168.     Line 329:             $compiled_content .= $text_blocks[$i].$compiled_tags[$i];
  169.     Line 333:         /* Reformat data between 'strip' and '/strip' tags, removing spaces, tabs and newlines. */
  170.     Line 335:             $strip_tags = $_match[0];
  171.     Line 336:             $strip_tags_modified = preg_replace("~{$ldq}/?strip{$rdq}|[\t ]+$|^[\t ]+~m", '', $strip_tags);
  172.     Line 336:             $strip_tags_modified = preg_replace("~{$ldq}/?strip{$rdq}|[\t ]+$|^[\t ]+~m", '', $strip_tags);
  173.     Line 337:             $strip_tags_modified = preg_replace('~[\r\n]+~m', '', $strip_tags_modified);
  174.     Line 337:             $strip_tags_modified = preg_replace('~[\r\n]+~m', '', $strip_tags_modified);
  175.     Line 338:             for ($i = 0, $for_max = count($strip_tags); $i < $for_max; $i++)
  176.     Line 340:                                                   $this->_quote_replace($strip_tags_modified[$i]),
  177.     Line 353:         // remove unnecessary close/open tags
  178.     Line 401:      * Compile a template tag
  179.     Line 403:      * @param string $template_tag
  180.     Line 406:     function _compile_tag($template_tag)
  181.     Line 406:     function _compile_tag($template_tag)
  182.     Line 409:         if ($template_tag{0} == '*' && $template_tag{strlen($template_tag) - 1} == '*')
  183.     Line 409:         if ($template_tag{0} == '*' && $template_tag{strlen($template_tag) - 1} == '*')
  184.     Line 409:         if ($template_tag{0} == '*' && $template_tag{strlen($template_tag) - 1} == '*')
  185.     Line 412:         /* Split tag into two three parts: command, command modifiers and the arguments. */
  186.     Line 416:                     ~xs', $template_tag, $match)) {
  187.     Line 417:             $this->_syntax_error("unrecognized tag: $template_tag", E_USER_ERROR, __FILE__, __LINE__);
  188.     Line 417:             $this->_syntax_error("unrecognized tag: $template_tag", E_USER_ERROR, __FILE__, __LINE__);
  189.     Line 420:         $tag_command = $match[1];
  190.     Line 421:         $tag_modifier = isset($match[2]) ? $match[2] : null;
  191.     Line 422:         $tag_args = isset($match[3]) ? $match[3] : null;
  192.     Line 424:         if (preg_match('~^' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '$~', $tag_command)) {
  193.     Line 425:             /* tag name is a variable or object */
  194.     Line 426:             $_return = $this->_parse_var_props($tag_command . $tag_modifier, $this->_parse_attrs($tag_args));
  195.     Line 426:             $_return = $this->_parse_var_props($tag_command . $tag_modifier, $this->_parse_attrs($tag_args));
  196.     Line 426:             $_return = $this->_parse_var_props($tag_command . $tag_modifier, $this->_parse_attrs($tag_args));
  197.     Line 427:             if(isset($_tag_attrs['assign'])) {
  198.     Line 428:                 return "<?php \$this->assign('" . $this->_dequote($_tag_attrs['assign']) . "', $_return ); ?>\n";
  199.     Line 434:         /* If the tag name is a registered object, we process it. */
  200.     Line 435:         if (preg_match('~^\/?' . $this->_reg_obj_regexp . '$~', $tag_command)) {
  201.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  202.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  203.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  204.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  205.     Line 439:         switch ($tag_command) {
  206.     Line 441:                 return $this->_compile_include_tag($tag_args);
  207.     Line 441:                 return $this->_compile_include_tag($tag_args);
  208.     Line 444:                 return $this->_compile_include_php_tag($tag_args);
  209.     Line 444:                 return $this->_compile_include_php_tag($tag_args);
  210.     Line 447:                 $this->_push_tag('if');
  211.     Line 448:                 return $this->_compile_if_tag($tag_args);
  212.     Line 448:                 return $this->_compile_if_tag($tag_args);
  213.     Line 451:                 list($_open_tag) = end($this->_tag_stack);
  214.     Line 451:                 list($_open_tag) = end($this->_tag_stack);
  215.     Line 452:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  216.     Line 452:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  217.     Line 455:                     $this->_push_tag('else');
  218.     Line 459:                 list($_open_tag) = end($this->_tag_stack);
  219.     Line 459:                 list($_open_tag) = end($this->_tag_stack);
  220.     Line 460:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  221.     Line 460:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  222.     Line 462:                 if ($_open_tag == 'if')
  223.     Line 463:                     $this->_push_tag('elseif');
  224.     Line 464:                 return $this->_compile_if_tag($tag_args, true);
  225.     Line 464:                 return $this->_compile_if_tag($tag_args, true);
  226.     Line 467:                 $this->_pop_tag('if');
  227.     Line 471:                 return $this->_compile_capture_tag(true, $tag_args);
  228.     Line 471:                 return $this->_compile_capture_tag(true, $tag_args);
  229.     Line 474:                 return $this->_compile_capture_tag(false);
  230.     Line 483:                 $this->_push_tag('section');
  231.     Line 484:                 return $this->_compile_section_start($tag_args);
  232.     Line 487:                 $this->_push_tag('sectionelse');
  233.     Line 492:                 $_open_tag = $this->_pop_tag('section');
  234.     Line 492:                 $_open_tag = $this->_pop_tag('section');
  235.     Line 493:                 if ($_open_tag == 'sectionelse')
  236.     Line 499:                 $this->_push_tag('foreach');
  237.     Line 500:                 return $this->_compile_foreach_start($tag_args);
  238.     Line 504:                 $this->_push_tag('foreachelse');
  239.     Line 508:                 $_open_tag = $this->_pop_tag('foreach');
  240.     Line 508:                 $_open_tag = $this->_pop_tag('foreach');
  241.     Line 509:                 if ($_open_tag == 'foreachelse')
  242.     Line 517:                 if ($tag_command{0}=='/') {
  243.     Line 518:                     $this->_pop_tag('strip');
  244.     Line 521:                         return $this->left_delimiter.$tag_command.$this->right_delimiter;
  245.     Line 524:                     $this->_push_tag('strip');
  246.     Line 527:                         return $this->left_delimiter.$tag_command.$this->right_delimiter;
  247.     Line 533:                 /* handle folded tags replaced by {php} */
  248.     Line 537:                    determins the type of folded tag that was found */
  249.     Line 546:                         if ($this->security && !$this->security_settings['PHP_TAGS']) {
  250.     Line 547:                             $this->_syntax_error("(secure mode) php tags not permitted", E_USER_WARNING, __FILE__, __LINE__);
  251.     Line 555:                 return $this->_compile_insert_tag($tag_args);
  252.     Line 555:                 return $this->_compile_insert_tag($tag_args);
  253.     Line 558:                 if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) {
  254.     Line 558:                 if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) {
  255.     Line 558:                 if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) {
  256.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  257.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  258.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  259.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  260.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  261.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  262.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  263.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  264.     Line 565:                     $this->_syntax_error("unrecognized tag '$tag_command'", E_USER_ERROR, __FILE__, __LINE__);
  265.     Line 565:                     $this->_syntax_error("unrecognized tag '$tag_command'", E_USER_ERROR, __FILE__, __LINE__);
  266.     Line 573:      * compile the custom compiler tag
  267.     Line 575:      * sets $output to the compiled custom compiler tag
  268.     Line 576:      * @param string $tag_command
  269.     Line 577:      * @param string $tag_args
  270.     Line 581:     function _compile_compiler_tag($tag_command, $tag_args, &$output)
  271.     Line 581:     function _compile_compiler_tag($tag_command, $tag_args, &$output)
  272.     Line 581:     function _compile_compiler_tag($tag_command, $tag_args, &$output)
  273.     Line 590:         if (isset($this->_plugins['compiler'][$tag_command])) {
  274.     Line 592:             $plugin_func = $this->_plugins['compiler'][$tag_command][0];
  275.     Line 594:                 $message = "compiler function '$tag_command' is not implemented";
  276.     Line 602:         else if ($plugin_file = $this->_get_plugin_filepath('compiler', $tag_command)) {
  277.     Line 607:             $plugin_func = 'smarty_compiler_' . $tag_command;
  278.     Line 612:                 $this->_plugins['compiler'][$tag_command] = array($plugin_func, null, null, null, true);
  279.     Line 620:          * tag.
  280.     Line 624:                 $output = call_user_func_array($plugin_func, array($tag_args, &$this));
  281.     Line 626:                 $output = '<?php ' . $this->_push_cacheable_state('compiler', $tag_command)
  282.     Line 628:                                    . $this->_pop_cacheable_state('compiler', $tag_command) . ' ?>';
  283.     Line 641:      * compile block function tag
  284.     Line 643:      * sets $output to compiled block function tag
  285.     Line 644:      * @param string $tag_command
  286.     Line 645:      * @param string $tag_args
  287.     Line 646:      * @param string $tag_modifier
  288.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  289.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  290.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  291.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  292.     Line 652:         if ($tag_command{0} == '/') {
  293.     Line 653:             $start_tag = false;
  294.     Line 654:             $tag_command = substr($tag_command, 1);
  295.     Line 654:             $tag_command = substr($tag_command, 1);
  296.     Line 656:             $start_tag = true;
  297.     Line 665:         if (isset($this->_plugins['block'][$tag_command])) {
  298.     Line 667:             $plugin_func = $this->_plugins['block'][$tag_command][0];
  299.     Line 669:                 $message = "block function '$tag_command' is not implemented";
  300.     Line 677:         else if ($plugin_file = $this->_get_plugin_filepath('block', $tag_command)) {
  301.     Line 682:             $plugin_func = 'smarty_block_' . $tag_command;
  302.     Line 687:                 $this->_plugins['block'][$tag_command] = array($plugin_func, null, null, null, true);
  303.     Line 704:         $this->_add_plugin('block', $tag_command);
  304.     Line 706:         if ($start_tag)
  305.     Line 707:             $this->_push_tag($tag_command);
  306.     Line 707:             $this->_push_tag($tag_command);
  307.     Line 709:             $this->_pop_tag($tag_command);
  308.     Line 709:             $this->_pop_tag($tag_command);
  309.     Line 711:         if ($start_tag) {
  310.     Line 712:             $output = '<?php ' . $this->_push_cacheable_state('block', $tag_command);
  311.     Line 713:             $attrs = $this->_parse_attrs($tag_args);
  312.     Line 714:             $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, $_cache_attrs='');
  313.     Line 715:             $output .= "$_cache_attrs\$this->_tag_stack[] = array('$tag_command', array(".implode(',', $arg_list).')); ';
  314.     Line 715:             $output .= "$_cache_attrs\$this->_tag_stack[] = array('$tag_command', array(".implode(',', $arg_list).')); ';
  315.     Line 716:             $output .= $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true);';
  316.     Line 716:             $output .= $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true);';
  317.     Line 716:             $output .= $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true);';
  318.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  319.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  320.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  321.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  322.     Line 721:             if ($tag_modifier != '') {
  323.     Line 722:                 $this->_parse_modifiers($_out_tag_text, $tag_modifier);
  324.     Line 722:                 $this->_parse_modifiers($_out_tag_text, $tag_modifier);
  325.     Line 724:             $output .= 'echo '.$_out_tag_text.'; } ';
  326.     Line 725:             $output .= " array_pop(\$this->_tag_stack); " . $this->_pop_cacheable_state('block', $tag_command) . '?>';
  327.     Line 725:             $output .= " array_pop(\$this->_tag_stack); " . $this->_pop_cacheable_state('block', $tag_command) . '?>';
  328.     Line 733:      * compile custom function tag
  329.     Line 735:      * @param string $tag_command
  330.     Line 736:      * @param string $tag_args
  331.     Line 737:      * @param string $tag_modifier
  332.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  333.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  334.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  335.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  336.     Line 749:         if (isset($this->_plugins['function'][$tag_command])) {
  337.     Line 751:             $plugin_func = $this->_plugins['function'][$tag_command][0];
  338.     Line 753:                 $message = "custom function '$tag_command' is not implemented";
  339.     Line 761:         else if ($plugin_file = $this->_get_plugin_filepath('function', $tag_command)) {
  340.     Line 766:             $plugin_func = 'smarty_function_' . $tag_command;
  341.     Line 771:                 $this->_plugins['function'][$tag_command] = array($plugin_func, null, null, null, true);
  342.     Line 785:         $this->_add_plugin('function', $tag_command);
  343.     Line 787:         $_cacheable_state = $this->_push_cacheable_state('function', $tag_command);
  344.     Line 788:         $attrs = $this->_parse_attrs($tag_args);
  345.     Line 789:         $arg_list = $this->_compile_arg_list('function', $tag_command, $attrs, $_cache_attrs='');
  346.     Line 791:         $output = $this->_compile_plugin_call('function', $tag_command).'(array('.implode(',', $arg_list)."), \$this)";
  347.     Line 792:         if($tag_modifier != '') {
  348.     Line 793:             $this->_parse_modifiers($output, $tag_modifier);
  349.     Line 798:                 . $this->_pop_cacheable_state('function', $tag_command) . "?>" . $this->_additional_newline;
  350.     Line 805:      * compile a registered object tag
  351.     Line 807:      * @param string $tag_command
  352.     Line 809:      * @param string $tag_modifier
  353.     Line 812:     function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
  354.     Line 812:     function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
  355.     Line 812:     function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
  356.     Line 814:         if ($tag_command{0} == '/') {
  357.     Line 815:             $start_tag = false;
  358.     Line 816:             $tag_command = substr($tag_command, 1);
  359.     Line 816:             $tag_command = substr($tag_command, 1);
  360.     Line 818:             $start_tag = true;
  361.     Line 821:         list($object, $obj_comp) = explode('->', $tag_command);
  362.     Line 860:                 if ($start_tag) {
  363.     Line 861:                     $prefix = "\$this->_tag_stack[] = array('$obj_comp', $args); ";
  364.     Line 862:                     $prefix .= "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], null, \$this, \$_block_repeat=true); ";
  365.     Line 862:                     $prefix .= "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], null, \$this, \$_block_repeat=true); ";
  366.     Line 868:                     $return = "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$this->_obj_block_content, \$this, \$_block_repeat=false)";
  367.     Line 868:                     $return = "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$this->_obj_block_content, \$this, \$_block_repeat=false)";
  368.     Line 869:                     $postfix = "} array_pop(\$this->_tag_stack);";
  369.     Line 881:             if($tag_modifier != '') {
  370.     Line 882:                 $this->_parse_modifiers($return, $tag_modifier);
  371.     Line 899:      * Compile {insert ...} tag
  372.     Line 901:      * @param string $tag_args
  373.     Line 904:     function _compile_insert_tag($tag_args)
  374.     Line 904:     function _compile_insert_tag($tag_args)
  375.     Line 906:         $attrs = $this->_parse_attrs($tag_args);
  376.     Line 933:      * Compile {include ...} tag
  377.     Line 935:      * @param string $tag_args
  378.     Line 938:     function _compile_include_tag($tag_args)
  379.     Line 938:     function _compile_include_tag($tag_args)
  380.     Line 940:         $attrs = $this->_parse_attrs($tag_args);
  381.     Line 944:             $this->_syntax_error("missing 'file' attribute in include tag", E_USER_ERROR, __FILE__, __LINE__);
  382.     Line 986:      * Compile {include ...} tag
  383.     Line 988:      * @param string $tag_args
  384.     Line 991:     function _compile_include_php_tag($tag_args)
  385.     Line 991:     function _compile_include_php_tag($tag_args)
  386.     Line 993:         $attrs = $this->_parse_attrs($tag_args);
  387.     Line 996:             $this->_syntax_error("missing 'file' attribute in include_php tag", E_USER_ERROR, __FILE__, __LINE__);
  388.     Line 1018:      * Compile {section ...} tag
  389.     Line 1020:      * @param string $tag_args
  390.     Line 1023:     function _compile_section_start($tag_args)
  391.     Line 1025:         $attrs = $this->_parse_attrs($tag_args);
  392.     Line 1123:      * Compile {foreach ...} tag.
  393.     Line 1125:      * @param string $tag_args
  394.     Line 1128:     function _compile_foreach_start($tag_args)
  395.     Line 1130:         $attrs = $this->_parse_attrs($tag_args);
  396.     Line 1186:      * Compile {capture} .. {/capture} tags
  397.     Line 1188:      * @param boolean $start true if this is the {capture} tag
  398.     Line 1189:      * @param string $tag_args
  399.     Line 1193:     function _compile_capture_tag($start, $tag_args = '')
  400.     Line 1193:     function _compile_capture_tag($start, $tag_args = '')
  401.     Line 1195:         $attrs = $this->_parse_attrs($tag_args);
  402.     Line 1222:      * Compile {if ...} tag
  403.     Line 1224:      * @param string $tag_args
  404.     Line 1228:     function _compile_if_tag($tag_args, $elseif = false)
  405.     Line 1228:     function _compile_if_tag($tag_args, $elseif = false)
  406.     Line 1231:         /* Tokenize args for 'if' tag. */
  407.     Line 1238:                 )~x', $tag_args, $match);
  408.     Line 1481:      * @param string $tag_args
  409.     Line 1484:     function _parse_attrs($tag_args)
  410.     Line 1487:         /* Tokenize tag attributes. */
  411.     Line 1491:                         ~x', $tag_args, $match);
  412.     Line 1580:      * @param string $tag_attrs
  413.     Line 2188:      * push opening tag-name, file-name and line-number on the tag-stack
  414.     Line 2188:      * push opening tag-name, file-name and line-number on the tag-stack
  415.     Line 2189:      * @param string the opening tag's name
  416.     Line 2191:     function _push_tag($open_tag)
  417.     Line 2191:     function _push_tag($open_tag)
  418.     Line 2193:         array_push($this->_tag_stack, array($open_tag, $this->_current_line_no));
  419.     Line 2193:         array_push($this->_tag_stack, array($open_tag, $this->_current_line_no));
  420.     Line 2197:      * pop closing tag-name
  421.     Line 2198:      * raise an error if this stack-top doesn't match with the closing tag
  422.     Line 2199:      * @param string the closing tag's name
  423.     Line 2200:      * @return string the opening tag's name
  424.     Line 2202:     function _pop_tag($close_tag)
  425.     Line 2202:     function _pop_tag($close_tag)
  426.     Line 2205:         if (count($this->_tag_stack)>0) {
  427.     Line 2206:             list($_open_tag, $_line_no) = array_pop($this->_tag_stack);
  428.     Line 2206:             list($_open_tag, $_line_no) = array_pop($this->_tag_stack);
  429.     Line 2207:             if ($close_tag == $_open_tag) {
  430.     Line 2207:             if ($close_tag == $_open_tag) {
  431.     Line 2208:                 return $_open_tag;
  432.     Line 2210:             if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
  433.     Line 2210:             if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
  434.     Line 2210:             if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
  435.     Line 2211:                 return $this->_pop_tag($close_tag);
  436.     Line 2211:                 return $this->_pop_tag($close_tag);
  437.     Line 2213:             if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
  438.     Line 2213:             if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
  439.     Line 2214:                 $this->_pop_tag($close_tag);
  440.     Line 2214:                 $this->_pop_tag($close_tag);
  441.     Line 2215:                 return $_open_tag;
  442.     Line 2217:             if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {
  443.     Line 2217:             if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {
  444.     Line 2218:                 $this->_pop_tag($close_tag);
  445.     Line 2218:                 $this->_pop_tag($close_tag);
  446.     Line 2219:                 return $_open_tag;
  447.     Line 2221:             if ($_open_tag == 'else' || $_open_tag == 'elseif') {
  448.     Line 2221:             if ($_open_tag == 'else' || $_open_tag == 'elseif') {
  449.     Line 2222:                 $_open_tag = 'if';
  450.     Line 2223:             } elseif ($_open_tag == 'sectionelse') {
  451.     Line 2224:                 $_open_tag = 'section';
  452.     Line 2225:             } elseif ($_open_tag == 'foreachelse') {
  453.     Line 2226:                 $_open_tag = 'foreach';
  454.     Line 2228:             $message = " expected {/$_open_tag} (opened line $_line_no).";
  455.     Line 2230:         $this->_syntax_error("mismatched tag {/$close_tag}.$message",
  456.     Line 2230:         $this->_syntax_error("mismatched tag {/$close_tag}.$message",
  457.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\submit_answer.php (1 hits)
  458.     Line 20: $ansdetails = htmlentities(strip_tags($_REQUEST['ansdetails']), ENT_COMPAT, "UTF-8");
  459.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\themes\administrator\questions_edit.tpl (5 hits)
  460.     Line 85:                                                         <td class="label"><label for="status">Tags </label></td>
  461.     Line 87:                                                            <input id="tags" name="tags" value="{$ques.tags|stripslashes}" class=" required-entry required-entry input-text" type="text"/>
  462.     Line 87:                                                            <input id="tags" name="tags" value="{$ques.tags|stripslashes}" class=" required-entry required-entry input-text" type="text"/>
  463.     Line 87:                                                            <input id="tags" name="tags" value="{$ques.tags|stripslashes}" class=" required-entry required-entry input-text" type="text"/>
  464.     Line 89:                                                         <td class="scope-label">[TAGS OF THE QUESTION]</td>
  465.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\themes\view.tpl (7 hits)
  466.     Line 50:                                                            {insert name=get_tags assign=looptags tags=$parray.tags}
  467.     Line 50:                                                            {insert name=get_tags assign=looptags tags=$parray.tags}
  468.     Line 50:                                                            {insert name=get_tags assign=looptags tags=$parray.tags}
  469.     Line 50:                                                            {insert name=get_tags assign=looptags tags=$parray.tags}
  470.     Line 51:                                                             {section name=tt loop=$looptags}<a href="{$baseurl}/search?query={$looptags[tt]|stripslashes}">{$looptags[tt]|stripslashes}</a>&nbsp;{/section}
  471.     Line 51:                                                             {section name=tt loop=$looptags}<a href="{$baseurl}/search?query={$looptags[tt]|stripslashes}">{$looptags[tt]|stripslashes}</a>&nbsp;{/section}
  472.     Line 51:                                                             {section name=tt loop=$looptags}<a href="{$baseurl}/search?query={$looptags[tt]|stripslashes}">{$looptags[tt]|stripslashes}</a>&nbsp;{/section}
  473. Search "tag" (413 hits in 44 files)
  474.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\cat_add.php (2 hits)
  475.     Line 21:    $name = htmlentities(strip_tags($_REQUEST['name']), ENT_COMPAT, "UTF-8");
  476.     Line 22:    $seo = htmlentities(strip_tags($_REQUEST['seo']), ENT_COMPAT, "UTF-8");
  477.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\cat_edit.php (2 hits)
  478.     Line 24:        $name = htmlentities(strip_tags($_REQUEST['name']), ENT_COMPAT, "UTF-8");
  479.     Line 25:        $seo = htmlentities(strip_tags($_REQUEST['seo']), ENT_COMPAT, "UTF-8");
  480.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\css\boxes.php (3 hits)
  481.     Line 774: .head-tag, .head-tag-product    { background-image:url(<?php echo $iurl;?>/fam_tag_orange.gif); }
  482.     Line 774: .head-tag, .head-tag-product    { background-image:url(<?php echo $iurl;?>/fam_tag_orange.gif); }
  483.     Line 774: .head-tag, .head-tag-product    { background-image:url(<?php echo $iurl;?>/fam_tag_orange.gif); }
  484.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\administrator\questions_edit.php (1 hits)
  485.     Line 43:        $arr = array("username", "title", "question", "tags", "category", "vote_yes", "vote_no", "active", "viewcount");
  486.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\ask.php (2 hits)
  487.     Line 25:        $question = htmlentities(strip_tags($_REQUEST['question']), ENT_COMPAT, "UTF-8");
  488.     Line 42:            $query="INSERT INTO posts SET USERID='".mysql_real_escape_string($USERID)."', title='".mysql_real_escape_string($question)."',question='".mysql_real_escape_string($question)."', tags='".mysql_real_escape_string($question)."', category='".mysql_real_escape_string($category)."', time_added='".time()."', date_added='".date("Y-m-d")."' $addtosql";
  489.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\changeemail.php (2 hits)
  490.     Line 40:            $newemail = htmlentities(strip_tags($_REQUEST[email]));
  491.     Line 129:       $notify = intval(htmlentities(strip_tags($_REQUEST[notify])));
  492.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\changepass.php (1 hits)
  493.     Line 43:                $password = htmlentities(strip_tags($_REQUEST[npassword]));
  494.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\confirmemail.php (1 hits)
  495.     Line 20:    $code = htmlentities(strip_tags($_REQUEST['code']), ENT_COMPAT, "UTF-8");
  496.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\css\apps.php (1 hits)
  497.     Line 266: .postTxt, .tagTxt{font-size:11px; color:#999999}
  498.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\css\common.php (2 hits)
  499.     Line 21: .tagCloud{list-style:none;margin:0px;padding:0}
  500.     Line 58: .tagCloud span,form{margin:0;padding:0}
  501.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\css\text_en.php (2 hits)
  502.     Line 21: p.tagCloud{line-height:190%}
  503.     Line 22: .tagCloud{line-height:180%}
  504.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\editaccount.php (3 hits)
  505.     Line 63:        $firstname = htmlentities(strip_tags($_REQUEST['firstname']), ENT_COMPAT, "UTF-8");
  506.     Line 64:        $lastname = htmlentities(strip_tags($_REQUEST['lastname']), ENT_COMPAT, "UTF-8");
  507.     Line 65:        $description = htmlentities(strip_tags($_REQUEST['vdescription']), ENT_COMPAT, "UTF-8");
  508.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\forgot.php (1 hits)
  509.     Line 18: $email = htmlentities(strip_tags($_REQUEST['email']), ENT_COMPAT, "UTF-8");
  510.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\include\functions\main.php (2 hits)
  511.     Line 419: function insert_get_tags($a)
  512.     Line 421:         $results = $a[tags];
  513.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\include\lang\english.php (1 hits)
  514.     Line 188: $lang['184'] =  "Tags";
  515.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\include\lang\french.php (1 hits)
  516.     Line 188: $lang['184'] = "Tags";
  517.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\adodb-connection.inc.php (2 hits)
  518.     Line 146:       else echo strip_tags($msg);
  519.     Line 414:       Advantages include:
  520.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\adodb-recordset.inc.php (4 hits)
  521.     Line 94:     * Generate a SELECT tag string from a recordset, and return the string.
  522.     Line 99:     * @param name          name of SELECT tag
  523.     Line 104:    * @param [selectAttr]      additional attributes to defined for SELECT tag.
  524.     Line 122:    * Generate a SELECT tag string from a recordset, and return the string.
  525.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\adodb-session.php (1 hits)
  526.     Line 63:     you can tag a session with an EXPIREREF, and before the session
  527.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\toexport.inc.php (3 hits)
  528.     Line 79:            $v = strip_tags(str_replace("\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)));
  529.     Line 98:                $v = strip_tags(str_replace("\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)));
  530.     Line 106:               $v = strip_tags(str_replace("\n",$replaceNewLine,str_replace($sep,$sepreplace,$v)));
  531.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\adodb\tohtml.inc.php (1 hits)
  532.     Line 26: // $ztabhtml: the table tag attributes (optional)
  533.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\phpmailer\language\phpmailer.lang-no.php (2 hits)
  534.     Line 10:                                      'mottager adresse.';
  535.     Line 17:                                        'mottagere feilet: ';
  536.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\libraries\phpmailer\language\phpmailer.lang-se.php (2 hits)
  537.     Line 11:                                      'mottagares e-postadress.';
  538.     Line 18:                                        'mottagare är felaktig: ';
  539.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\login.php (2 hits)
  540.     Line 25: $username = htmlentities(strip_tags($_REQUEST['lusername']), ENT_COMPAT, "UTF-8");
  541.     Line 30:    $password = htmlentities(strip_tags($_REQUEST['lpassword']), ENT_COMPAT, "UTF-8");
  542.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\resetpassword.php (1 hits)
  543.     Line 18: $code = htmlentities(strip_tags($_REQUEST['code']), ENT_COMPAT, "UTF-8");
  544.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\search.php (2 hits)
  545.     Line 36: $key = htmlentities(strip_tags($_REQUEST['key']), ENT_COMPAT, "UTF-8");
  546.     Line 37: $text = htmlentities(strip_tags($_REQUEST['query']), ENT_COMPAT, "UTF-8");
  547.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\signup.php (5 hits)
  548.     Line 26: $username = htmlentities(strip_tags($_REQUEST['username']), ENT_COMPAT, "UTF-8");
  549.     Line 29: $email = htmlentities(strip_tags($_REQUEST['email']), ENT_COMPAT, "UTF-8");
  550.     Line 30: $redirect = htmlentities(strip_tags($_REQUEST['redirect']), ENT_COMPAT, "UTF-8");
  551.     Line 38:    $password = htmlentities(strip_tags($_REQUEST['password']), ENT_COMPAT, "UTF-8");
  552.     Line 39:    $confirmpassword = htmlentities(strip_tags($_REQUEST['confirmpassword']), ENT_COMPAT, "UTF-8");
  553.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.load_plugins.php (1 hits)
  554.     Line 110:                 $_message = "unknown tag - '$_name'";
  555.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.process_compiled_include.php (1 hits)
  556.     Line 9:  * Replace nocache-tags by results of the corresponding non-cacheable
  557.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.run_insert_handler.php (3 hits)
  558.     Line 9:  * Handle insert tags
  559.     Line 26:         if (!isset($smarty->_cache_info['insert_tags'][$_name])) {
  560.     Line 27:             $smarty->_cache_info['insert_tags'][$_name] = array('insert',
  561.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.write_cache_file.php (7 hits)
  562.     Line 34:     // collapse nocache.../nocache-tags
  563.     Line 36:         // remove everything between every pair of outermost noache.../nocache-tags
  564.     Line 37:         // and replace it by a single nocache-tag
  565.     Line 38:         // this new nocache-tag will be replaced by dynamic contents in
  566.     Line 48:                 // nocache tag
  567.     Line 49:                 if ($match[1][$j]) { // closing tag
  568.     Line 52:                 } else { // opening tag
  569.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\internals\core.write_compiled_include.php (4 hits)
  570.     Line 18:     $_tag_start = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\';\}';
  571.     Line 19:     $_tag_end   = 'if \(\$this->caching && \!\$this->_cache_including\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\';\}';
  572.     Line 21:     preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
  573.     Line 21:     preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',
  574.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\compiler.assign.php (2 hits)
  575.     Line 19: function smarty_compiler_assign($tag_attrs, &$compiler)
  576.     Line 21:     $_params = $compiler->_parse_attrs($tag_attrs);
  577.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.config_load.php (1 hits)
  578.     Line 39:             $smarty->trigger_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__);
  579.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.html_image.php (1 hits)
  580.     Line 15:  * Purpose:  format HTML tags for the image<br>
  581.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.html_options.php (1 hits)
  582.     Line 20:  * Purpose:  Prints the list of <option> tags generated from
  583.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.html_select_date.php (3 hits)
  584.     Line 59:     /* <select size>'s of the different <select> tags.
  585.     Line 64:     /* Unparsed attributes common to *ALL* the <select>/<input> tags.
  586.     Line 67:     /* Separate attributes for the tags. */
  587.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\function.mailto.php (1 hits)
  588.     Line 29:  *         - extra = (optional) extra tags for the href link
  589.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\modifier.nl2br.php (1 hits)
  590.     Line 18:  *         - preceed_test = if true, includes preceeding break tags
  591.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\modifier.strip_tags.php (7 hits)
  592.     Line 10:  * Smarty strip_tags modifier plugin
  593.     Line 13:  * Name:     strip_tags<br>
  594.     Line 14:  * Purpose:  strip html tags from text
  595.     Line 15:  * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php
  596.     Line 16:  *          strip_tags (Smarty online manual)
  597.     Line 21: function smarty_modifier_strip_tags($string, $replace_with_space = true)
  598.     Line 26:         return strip_tags($string);
  599.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\plugins\outputfilter.trimwhitespace.php (1 hits)
  600.     Line 49:     // preceeded by a php close tag.
  601.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\Smarty.class.php (14 hits)
  602.     Line 191:      * This determines how Smarty handles "<?php ... ?>" tags in templates.
  603.     Line 194:      *  <li>SMARTY_PHP_PASSTHRU -> print tags as plain text</li>
  604.     Line 195:      *  <li>SMARTY_PHP_QUOTE    -> escape tags as entities</li>
  605.     Line 196:      *  <li>SMARTY_PHP_REMOVE   -> remove php tags</li>
  606.     Line 197:      *  <li>SMARTY_PHP_ALLOW    -> execute php tags</li>
  607.     Line 237:                                     'PHP_TAGS'        => false,
  608.     Line 251:      * The left delimiter used for the template tags.
  609.     Line 258:      * The right delimiter used for the template tags.
  610.     Line 435:      * keeps track of tag hierarchy
  611.     Line 439:     var $_tag_stack            = array();
  612.     Line 1171:                 if (!empty($this->_cache_info['insert_tags'])) {
  613.     Line 1172:                     $_params = array('plugins' => $this->_cache_info['insert_tags']);
  614.     Line 1200:                         if (@count($this->_cache_info['insert_tags']) == 0
  615.     Line 1280:                 // strip nocache-tags from output
  616.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\smarty\libs\Smarty_Compiler.class.php (312 hits)
  617.     Line 272:         /* Gather all template tags. */
  618.     Line 274:         $template_tags = $_match[1];
  619.     Line 275:         /* Split content by template tags to obtain non-template content. */
  620.     Line 280:             /* match anything resembling php tags */
  621.     Line 282:                 /* replace tags with placeholders to prevent recursive replacements */
  622.     Line 294:                         /* quote php tags */
  623.     Line 297:                         /* remove php tags */
  624.     Line 300:                         /* SMARTY_PHP_ALLOW, but echo non php starting tags */
  625.     Line 308:         /* Compile the template tags into PHP code. */
  626.     Line 309:         $compiled_tags = array();
  627.     Line 310:         for ($i = 0, $for_max = count($template_tags); $i < $for_max; $i++) {
  628.     Line 312:             $compiled_tags[] = $this->_compile_tag($template_tags[$i]);
  629.     Line 312:             $compiled_tags[] = $this->_compile_tag($template_tags[$i]);
  630.     Line 312:             $compiled_tags[] = $this->_compile_tag($template_tags[$i]);
  631.     Line 313:             $this->_current_line_no += substr_count($template_tags[$i], "\n");
  632.     Line 315:         if (count($this->_tag_stack)>0) {
  633.     Line 316:             list($_open_tag, $_line_no) = end($this->_tag_stack);
  634.     Line 316:             list($_open_tag, $_line_no) = end($this->_tag_stack);
  635.     Line 317:             $this->_syntax_error("unclosed tag \{$_open_tag} (opened line $_line_no).", E_USER_ERROR, __FILE__, __LINE__);
  636.     Line 317:             $this->_syntax_error("unclosed tag \{$_open_tag} (opened line $_line_no).", E_USER_ERROR, __FILE__, __LINE__);
  637.     Line 324:         for ($i = 0, $for_max = count($compiled_tags); $i < $for_max; $i++) {
  638.     Line 325:             if ($compiled_tags[$i] == '') {
  639.     Line 326:                 // tag result empty, remove first newline from following text block
  640.     Line 329:             $compiled_content .= $text_blocks[$i].$compiled_tags[$i];
  641.     Line 333:         /* Reformat data between 'strip' and '/strip' tags, removing spaces, tabs and newlines. */
  642.     Line 335:             $strip_tags = $_match[0];
  643.     Line 336:             $strip_tags_modified = preg_replace("~{$ldq}/?strip{$rdq}|[\t ]+$|^[\t ]+~m", '', $strip_tags);
  644.     Line 336:             $strip_tags_modified = preg_replace("~{$ldq}/?strip{$rdq}|[\t ]+$|^[\t ]+~m", '', $strip_tags);
  645.     Line 337:             $strip_tags_modified = preg_replace('~[\r\n]+~m', '', $strip_tags_modified);
  646.     Line 337:             $strip_tags_modified = preg_replace('~[\r\n]+~m', '', $strip_tags_modified);
  647.     Line 338:             for ($i = 0, $for_max = count($strip_tags); $i < $for_max; $i++)
  648.     Line 340:                                                   $this->_quote_replace($strip_tags_modified[$i]),
  649.     Line 353:         // remove unnecessary close/open tags
  650.     Line 401:      * Compile a template tag
  651.     Line 403:      * @param string $template_tag
  652.     Line 406:     function _compile_tag($template_tag)
  653.     Line 406:     function _compile_tag($template_tag)
  654.     Line 409:         if ($template_tag{0} == '*' && $template_tag{strlen($template_tag) - 1} == '*')
  655.     Line 409:         if ($template_tag{0} == '*' && $template_tag{strlen($template_tag) - 1} == '*')
  656.     Line 409:         if ($template_tag{0} == '*' && $template_tag{strlen($template_tag) - 1} == '*')
  657.     Line 412:         /* Split tag into two three parts: command, command modifiers and the arguments. */
  658.     Line 416:                     ~xs', $template_tag, $match)) {
  659.     Line 417:             $this->_syntax_error("unrecognized tag: $template_tag", E_USER_ERROR, __FILE__, __LINE__);
  660.     Line 417:             $this->_syntax_error("unrecognized tag: $template_tag", E_USER_ERROR, __FILE__, __LINE__);
  661.     Line 420:         $tag_command = $match[1];
  662.     Line 421:         $tag_modifier = isset($match[2]) ? $match[2] : null;
  663.     Line 422:         $tag_args = isset($match[3]) ? $match[3] : null;
  664.     Line 424:         if (preg_match('~^' . $this->_num_const_regexp . '|' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '$~', $tag_command)) {
  665.     Line 425:             /* tag name is a variable or object */
  666.     Line 426:             $_return = $this->_parse_var_props($tag_command . $tag_modifier, $this->_parse_attrs($tag_args));
  667.     Line 426:             $_return = $this->_parse_var_props($tag_command . $tag_modifier, $this->_parse_attrs($tag_args));
  668.     Line 426:             $_return = $this->_parse_var_props($tag_command . $tag_modifier, $this->_parse_attrs($tag_args));
  669.     Line 427:             if(isset($_tag_attrs['assign'])) {
  670.     Line 428:                 return "<?php \$this->assign('" . $this->_dequote($_tag_attrs['assign']) . "', $_return ); ?>\n";
  671.     Line 434:         /* If the tag name is a registered object, we process it. */
  672.     Line 435:         if (preg_match('~^\/?' . $this->_reg_obj_regexp . '$~', $tag_command)) {
  673.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  674.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  675.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  676.     Line 436:             return $this->_compile_registered_object_tag($tag_command, $this->_parse_attrs($tag_args), $tag_modifier);
  677.     Line 439:         switch ($tag_command) {
  678.     Line 441:                 return $this->_compile_include_tag($tag_args);
  679.     Line 441:                 return $this->_compile_include_tag($tag_args);
  680.     Line 444:                 return $this->_compile_include_php_tag($tag_args);
  681.     Line 444:                 return $this->_compile_include_php_tag($tag_args);
  682.     Line 447:                 $this->_push_tag('if');
  683.     Line 448:                 return $this->_compile_if_tag($tag_args);
  684.     Line 448:                 return $this->_compile_if_tag($tag_args);
  685.     Line 451:                 list($_open_tag) = end($this->_tag_stack);
  686.     Line 451:                 list($_open_tag) = end($this->_tag_stack);
  687.     Line 452:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  688.     Line 452:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  689.     Line 455:                     $this->_push_tag('else');
  690.     Line 459:                 list($_open_tag) = end($this->_tag_stack);
  691.     Line 459:                 list($_open_tag) = end($this->_tag_stack);
  692.     Line 460:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  693.     Line 460:                 if ($_open_tag != 'if' && $_open_tag != 'elseif')
  694.     Line 462:                 if ($_open_tag == 'if')
  695.     Line 463:                     $this->_push_tag('elseif');
  696.     Line 464:                 return $this->_compile_if_tag($tag_args, true);
  697.     Line 464:                 return $this->_compile_if_tag($tag_args, true);
  698.     Line 467:                 $this->_pop_tag('if');
  699.     Line 471:                 return $this->_compile_capture_tag(true, $tag_args);
  700.     Line 471:                 return $this->_compile_capture_tag(true, $tag_args);
  701.     Line 474:                 return $this->_compile_capture_tag(false);
  702.     Line 483:                 $this->_push_tag('section');
  703.     Line 484:                 return $this->_compile_section_start($tag_args);
  704.     Line 487:                 $this->_push_tag('sectionelse');
  705.     Line 492:                 $_open_tag = $this->_pop_tag('section');
  706.     Line 492:                 $_open_tag = $this->_pop_tag('section');
  707.     Line 493:                 if ($_open_tag == 'sectionelse')
  708.     Line 499:                 $this->_push_tag('foreach');
  709.     Line 500:                 return $this->_compile_foreach_start($tag_args);
  710.     Line 504:                 $this->_push_tag('foreachelse');
  711.     Line 508:                 $_open_tag = $this->_pop_tag('foreach');
  712.     Line 508:                 $_open_tag = $this->_pop_tag('foreach');
  713.     Line 509:                 if ($_open_tag == 'foreachelse')
  714.     Line 517:                 if ($tag_command{0}=='/') {
  715.     Line 518:                     $this->_pop_tag('strip');
  716.     Line 521:                         return $this->left_delimiter.$tag_command.$this->right_delimiter;
  717.     Line 524:                     $this->_push_tag('strip');
  718.     Line 527:                         return $this->left_delimiter.$tag_command.$this->right_delimiter;
  719.     Line 533:                 /* handle folded tags replaced by {php} */
  720.     Line 537:                    determins the type of folded tag that was found */
  721.     Line 546:                         if ($this->security && !$this->security_settings['PHP_TAGS']) {
  722.     Line 547:                             $this->_syntax_error("(secure mode) php tags not permitted", E_USER_WARNING, __FILE__, __LINE__);
  723.     Line 555:                 return $this->_compile_insert_tag($tag_args);
  724.     Line 555:                 return $this->_compile_insert_tag($tag_args);
  725.     Line 558:                 if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) {
  726.     Line 558:                 if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) {
  727.     Line 558:                 if ($this->_compile_compiler_tag($tag_command, $tag_args, $output)) {
  728.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  729.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  730.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  731.     Line 560:                 } else if ($this->_compile_block_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  732.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  733.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  734.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  735.     Line 562:                 } else if ($this->_compile_custom_tag($tag_command, $tag_args, $tag_modifier, $output)) {
  736.     Line 565:                     $this->_syntax_error("unrecognized tag '$tag_command'", E_USER_ERROR, __FILE__, __LINE__);
  737.     Line 565:                     $this->_syntax_error("unrecognized tag '$tag_command'", E_USER_ERROR, __FILE__, __LINE__);
  738.     Line 573:      * compile the custom compiler tag
  739.     Line 575:      * sets $output to the compiled custom compiler tag
  740.     Line 576:      * @param string $tag_command
  741.     Line 577:      * @param string $tag_args
  742.     Line 581:     function _compile_compiler_tag($tag_command, $tag_args, &$output)
  743.     Line 581:     function _compile_compiler_tag($tag_command, $tag_args, &$output)
  744.     Line 581:     function _compile_compiler_tag($tag_command, $tag_args, &$output)
  745.     Line 590:         if (isset($this->_plugins['compiler'][$tag_command])) {
  746.     Line 592:             $plugin_func = $this->_plugins['compiler'][$tag_command][0];
  747.     Line 594:                 $message = "compiler function '$tag_command' is not implemented";
  748.     Line 602:         else if ($plugin_file = $this->_get_plugin_filepath('compiler', $tag_command)) {
  749.     Line 607:             $plugin_func = 'smarty_compiler_' . $tag_command;
  750.     Line 612:                 $this->_plugins['compiler'][$tag_command] = array($plugin_func, null, null, null, true);
  751.     Line 620:          * tag.
  752.     Line 624:                 $output = call_user_func_array($plugin_func, array($tag_args, &$this));
  753.     Line 626:                 $output = '<?php ' . $this->_push_cacheable_state('compiler', $tag_command)
  754.     Line 628:                                    . $this->_pop_cacheable_state('compiler', $tag_command) . ' ?>';
  755.     Line 641:      * compile block function tag
  756.     Line 643:      * sets $output to compiled block function tag
  757.     Line 644:      * @param string $tag_command
  758.     Line 645:      * @param string $tag_args
  759.     Line 646:      * @param string $tag_modifier
  760.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  761.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  762.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  763.     Line 650:     function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
  764.     Line 652:         if ($tag_command{0} == '/') {
  765.     Line 653:             $start_tag = false;
  766.     Line 654:             $tag_command = substr($tag_command, 1);
  767.     Line 654:             $tag_command = substr($tag_command, 1);
  768.     Line 656:             $start_tag = true;
  769.     Line 665:         if (isset($this->_plugins['block'][$tag_command])) {
  770.     Line 667:             $plugin_func = $this->_plugins['block'][$tag_command][0];
  771.     Line 669:                 $message = "block function '$tag_command' is not implemented";
  772.     Line 677:         else if ($plugin_file = $this->_get_plugin_filepath('block', $tag_command)) {
  773.     Line 682:             $plugin_func = 'smarty_block_' . $tag_command;
  774.     Line 687:                 $this->_plugins['block'][$tag_command] = array($plugin_func, null, null, null, true);
  775.     Line 704:         $this->_add_plugin('block', $tag_command);
  776.     Line 706:         if ($start_tag)
  777.     Line 707:             $this->_push_tag($tag_command);
  778.     Line 707:             $this->_push_tag($tag_command);
  779.     Line 709:             $this->_pop_tag($tag_command);
  780.     Line 709:             $this->_pop_tag($tag_command);
  781.     Line 711:         if ($start_tag) {
  782.     Line 712:             $output = '<?php ' . $this->_push_cacheable_state('block', $tag_command);
  783.     Line 713:             $attrs = $this->_parse_attrs($tag_args);
  784.     Line 714:             $arg_list = $this->_compile_arg_list('block', $tag_command, $attrs, $_cache_attrs='');
  785.     Line 715:             $output .= "$_cache_attrs\$this->_tag_stack[] = array('$tag_command', array(".implode(',', $arg_list).')); ';
  786.     Line 715:             $output .= "$_cache_attrs\$this->_tag_stack[] = array('$tag_command', array(".implode(',', $arg_list).')); ';
  787.     Line 716:             $output .= $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true);';
  788.     Line 716:             $output .= $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true);';
  789.     Line 716:             $output .= $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat=true);';
  790.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  791.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  792.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  793.     Line 720:             $_out_tag_text = $this->_compile_plugin_call('block', $tag_command).'($this->_tag_stack[count($this->_tag_stack)-1][1], $this->_block_content, $this, $_block_repeat=false)';
  794.     Line 721:             if ($tag_modifier != '') {
  795.     Line 722:                 $this->_parse_modifiers($_out_tag_text, $tag_modifier);
  796.     Line 722:                 $this->_parse_modifiers($_out_tag_text, $tag_modifier);
  797.     Line 724:             $output .= 'echo '.$_out_tag_text.'; } ';
  798.     Line 725:             $output .= " array_pop(\$this->_tag_stack); " . $this->_pop_cacheable_state('block', $tag_command) . '?>';
  799.     Line 725:             $output .= " array_pop(\$this->_tag_stack); " . $this->_pop_cacheable_state('block', $tag_command) . '?>';
  800.     Line 733:      * compile custom function tag
  801.     Line 735:      * @param string $tag_command
  802.     Line 736:      * @param string $tag_args
  803.     Line 737:      * @param string $tag_modifier
  804.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  805.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  806.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  807.     Line 740:     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
  808.     Line 749:         if (isset($this->_plugins['function'][$tag_command])) {
  809.     Line 751:             $plugin_func = $this->_plugins['function'][$tag_command][0];
  810.     Line 753:                 $message = "custom function '$tag_command' is not implemented";
  811.     Line 761:         else if ($plugin_file = $this->_get_plugin_filepath('function', $tag_command)) {
  812.     Line 766:             $plugin_func = 'smarty_function_' . $tag_command;
  813.     Line 771:                 $this->_plugins['function'][$tag_command] = array($plugin_func, null, null, null, true);
  814.     Line 785:         $this->_add_plugin('function', $tag_command);
  815.     Line 787:         $_cacheable_state = $this->_push_cacheable_state('function', $tag_command);
  816.     Line 788:         $attrs = $this->_parse_attrs($tag_args);
  817.     Line 789:         $arg_list = $this->_compile_arg_list('function', $tag_command, $attrs, $_cache_attrs='');
  818.     Line 791:         $output = $this->_compile_plugin_call('function', $tag_command).'(array('.implode(',', $arg_list)."), \$this)";
  819.     Line 792:         if($tag_modifier != '') {
  820.     Line 793:             $this->_parse_modifiers($output, $tag_modifier);
  821.     Line 798:                 . $this->_pop_cacheable_state('function', $tag_command) . "?>" . $this->_additional_newline;
  822.     Line 805:      * compile a registered object tag
  823.     Line 807:      * @param string $tag_command
  824.     Line 809:      * @param string $tag_modifier
  825.     Line 812:     function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
  826.     Line 812:     function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
  827.     Line 812:     function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
  828.     Line 814:         if ($tag_command{0} == '/') {
  829.     Line 815:             $start_tag = false;
  830.     Line 816:             $tag_command = substr($tag_command, 1);
  831.     Line 816:             $tag_command = substr($tag_command, 1);
  832.     Line 818:             $start_tag = true;
  833.     Line 821:         list($object, $obj_comp) = explode('->', $tag_command);
  834.     Line 860:                 if ($start_tag) {
  835.     Line 861:                     $prefix = "\$this->_tag_stack[] = array('$obj_comp', $args); ";
  836.     Line 862:                     $prefix .= "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], null, \$this, \$_block_repeat=true); ";
  837.     Line 862:                     $prefix .= "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], null, \$this, \$_block_repeat=true); ";
  838.     Line 868:                     $return = "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$this->_obj_block_content, \$this, \$_block_repeat=false)";
  839.     Line 868:                     $return = "\$this->_reg_objects['$object'][0]->$obj_comp(\$this->_tag_stack[count(\$this->_tag_stack)-1][1], \$this->_obj_block_content, \$this, \$_block_repeat=false)";
  840.     Line 869:                     $postfix = "} array_pop(\$this->_tag_stack);";
  841.     Line 881:             if($tag_modifier != '') {
  842.     Line 882:                 $this->_parse_modifiers($return, $tag_modifier);
  843.     Line 899:      * Compile {insert ...} tag
  844.     Line 901:      * @param string $tag_args
  845.     Line 904:     function _compile_insert_tag($tag_args)
  846.     Line 904:     function _compile_insert_tag($tag_args)
  847.     Line 906:         $attrs = $this->_parse_attrs($tag_args);
  848.     Line 933:      * Compile {include ...} tag
  849.     Line 935:      * @param string $tag_args
  850.     Line 938:     function _compile_include_tag($tag_args)
  851.     Line 938:     function _compile_include_tag($tag_args)
  852.     Line 940:         $attrs = $this->_parse_attrs($tag_args);
  853.     Line 944:             $this->_syntax_error("missing 'file' attribute in include tag", E_USER_ERROR, __FILE__, __LINE__);
  854.     Line 986:      * Compile {include ...} tag
  855.     Line 988:      * @param string $tag_args
  856.     Line 991:     function _compile_include_php_tag($tag_args)
  857.     Line 991:     function _compile_include_php_tag($tag_args)
  858.     Line 993:         $attrs = $this->_parse_attrs($tag_args);
  859.     Line 996:             $this->_syntax_error("missing 'file' attribute in include_php tag", E_USER_ERROR, __FILE__, __LINE__);
  860.     Line 1018:      * Compile {section ...} tag
  861.     Line 1020:      * @param string $tag_args
  862.     Line 1023:     function _compile_section_start($tag_args)
  863.     Line 1025:         $attrs = $this->_parse_attrs($tag_args);
  864.     Line 1123:      * Compile {foreach ...} tag.
  865.     Line 1125:      * @param string $tag_args
  866.     Line 1128:     function _compile_foreach_start($tag_args)
  867.     Line 1130:         $attrs = $this->_parse_attrs($tag_args);
  868.     Line 1186:      * Compile {capture} .. {/capture} tags
  869.     Line 1188:      * @param boolean $start true if this is the {capture} tag
  870.     Line 1189:      * @param string $tag_args
  871.     Line 1193:     function _compile_capture_tag($start, $tag_args = '')
  872.     Line 1193:     function _compile_capture_tag($start, $tag_args = '')
  873.     Line 1195:         $attrs = $this->_parse_attrs($tag_args);
  874.     Line 1222:      * Compile {if ...} tag
  875.     Line 1224:      * @param string $tag_args
  876.     Line 1228:     function _compile_if_tag($tag_args, $elseif = false)
  877.     Line 1228:     function _compile_if_tag($tag_args, $elseif = false)
  878.     Line 1231:         /* Tokenize args for 'if' tag. */
  879.     Line 1238:                 )~x', $tag_args, $match);
  880.     Line 1481:      * @param string $tag_args
  881.     Line 1484:     function _parse_attrs($tag_args)
  882.     Line 1487:         /* Tokenize tag attributes. */
  883.     Line 1491:                         ~x', $tag_args, $match);
  884.     Line 1580:      * @param string $tag_attrs
  885.     Line 2188:      * push opening tag-name, file-name and line-number on the tag-stack
  886.     Line 2188:      * push opening tag-name, file-name and line-number on the tag-stack
  887.     Line 2189:      * @param string the opening tag's name
  888.     Line 2191:     function _push_tag($open_tag)
  889.     Line 2191:     function _push_tag($open_tag)
  890.     Line 2193:         array_push($this->_tag_stack, array($open_tag, $this->_current_line_no));
  891.     Line 2193:         array_push($this->_tag_stack, array($open_tag, $this->_current_line_no));
  892.     Line 2197:      * pop closing tag-name
  893.     Line 2198:      * raise an error if this stack-top doesn't match with the closing tag
  894.     Line 2199:      * @param string the closing tag's name
  895.     Line 2200:      * @return string the opening tag's name
  896.     Line 2202:     function _pop_tag($close_tag)
  897.     Line 2202:     function _pop_tag($close_tag)
  898.     Line 2205:         if (count($this->_tag_stack)>0) {
  899.     Line 2206:             list($_open_tag, $_line_no) = array_pop($this->_tag_stack);
  900.     Line 2206:             list($_open_tag, $_line_no) = array_pop($this->_tag_stack);
  901.     Line 2207:             if ($close_tag == $_open_tag) {
  902.     Line 2207:             if ($close_tag == $_open_tag) {
  903.     Line 2208:                 return $_open_tag;
  904.     Line 2210:             if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
  905.     Line 2210:             if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
  906.     Line 2210:             if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
  907.     Line 2211:                 return $this->_pop_tag($close_tag);
  908.     Line 2211:                 return $this->_pop_tag($close_tag);
  909.     Line 2213:             if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
  910.     Line 2213:             if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
  911.     Line 2214:                 $this->_pop_tag($close_tag);
  912.     Line 2214:                 $this->_pop_tag($close_tag);
  913.     Line 2215:                 return $_open_tag;
  914.     Line 2217:             if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {
  915.     Line 2217:             if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {
  916.     Line 2218:                 $this->_pop_tag($close_tag);
  917.     Line 2218:                 $this->_pop_tag($close_tag);
  918.     Line 2219:                 return $_open_tag;
  919.     Line 2221:             if ($_open_tag == 'else' || $_open_tag == 'elseif') {
  920.     Line 2221:             if ($_open_tag == 'else' || $_open_tag == 'elseif') {
  921.     Line 2222:                 $_open_tag = 'if';
  922.     Line 2223:             } elseif ($_open_tag == 'sectionelse') {
  923.     Line 2224:                 $_open_tag = 'section';
  924.     Line 2225:             } elseif ($_open_tag == 'foreachelse') {
  925.     Line 2226:                 $_open_tag = 'foreach';
  926.     Line 2228:             $message = " expected {/$_open_tag} (opened line $_line_no).";
  927.     Line 2230:         $this->_syntax_error("mismatched tag {/$close_tag}.$message",
  928.     Line 2230:         $this->_syntax_error("mismatched tag {/$close_tag}.$message",
  929.   C:\Documents and Settings\aa1\Desktop\6633f5-AnswerScript v2.1\AnswerScript v2.1\upload\submit_answer.php (1 hits)
  930.     Line 20: $ansdetails = htmlentities(strip_tags($_REQUEST['ansdetails']), ENT_COMPAT, "UTF-8");
  931.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement