View Single Post
  #96  
Old 04-29-2011, 02:29 AM
Sevo Sevo is offline
 
Join Date: Nov 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when I put in www.myboards.com/survey.php I get this

Quote:
nput->clean_array_gpc('r', array( 'do' => TYPE_STR, 'sid' => TYPE_INT, 'aid' => TYPE_INT)); if (empty($vbulletin->GPC['do'])) $vbulletin->GPC['do'] = 'main'; $sid = intval($vbulletin->GPC['sid']); $navbits = array("survey.php?$session[sessionurl]" => 'Survey'); $vbulletin->userinfo['can_admin_surveys'] = in_array($bbuserinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_admin_groups'])); $vbulletin->userinfo['can_edit_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_edit_groups'])); $vbulletin->userinfo['can_create_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_create_groups'])); $vbulletin->userinfo['can_take_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_take_groups'])); $vbulletin->userinfo['can_view_survey_results'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_result_groups'])); if ($vbulletin->userinfo['userid']==0) { // override permissions for guests, since userid zero is messy // They can only see the results, if allowed in the admincp settings $vbulletin->userinfo['can_admin_surveys'] = 0; $vbulletin->userinfo['can_take_surveys'] = 0; $vbulletin->userinfo['can_create_surveys'] = 0; $vbulletin->userinfo['can_edit_surveys'] = 0; } if ($vbulletin->GPC['do'] == 'main'){ include('survey/classes/survey.class.php'); $navbits[''] = 'Available Surveys'; $survey = new UCCASS_Survey; $body = $survey->available_surveys(); } elseif ($vbulletin->GPC['do'] == 'take'){ include('survey/classes/survey.class.php'); $navbits[''] = 'Answer Survey'; $survey = new UCCASS_Survey; $body = $survey->take_survey($sid); } elseif ($vbulletin->GPC['do'] == 'results'){ include('survey/classes/results.class.php'); $navbits[''] = 'Survey Results'; $survey = new UCCASS_Results; $body = $survey->survey_results($sid); } elseif ($vbulletin->GPC['do'] == 'edit_survey'){ include('survey/classes/editsurvey.class.php'); $navbits[''] = 'Edit Survey'; $editSurvey = new UCCASS_EditSurvey; $body = $editSurvey->show($sid); } elseif ($vbulletin->GPC['do'] == 'filter'){ include('survey/classes/results.class.php'); $navbits[''] = 'Filter Results'; $survey = new UCCASS_Results; $body = $survey->filter($sid); } elseif ($vbulletin->GPC['do'] == 'display_answers'){ $navbits[''] = 'Display Answers'; $survey = new UCCASS_Main; $body = $survey->display_answers($sid); } elseif ($vbulletin->GPC['do'] == 'edit_answer'){ include('survey/classes/answertypes.class.php'); $navbits[''] = 'Edit Answer Types'; $aid = intval($vbulletin->GPC['aid']); $survey = new UCCASS_AnswerTypes; $body = $survey->edit_answer($sid,$aid); } elseif ($vbulletin->GPC['do'] == 'new_answer_type'){ include('survey/classes/answertypes.class.php'); $navbits[''] = 'New Answer Type'; $survey = new UCCASS_AnswerTypes; $body = $survey->new_answer_type($sid); } elseif ($vbulletin->GPC['do'] == 'new_survey'){ include('survey/classes/newsurvey.class.php'); $navbits[''] = 'New Survey'; $survey = new UCCASS_NewSurvey; $body = $survey->new_survey(); } elseif ($vbulletin->GPC['do'] == 'results_csv'){ include('survey/classes/special_results.class.php'); $et = $vbulletin->GPC['export_type']; $survey = new UCCASS_Special_Results; echo $survey->results_csv($sid,$et); exit; } elseif ($vbulletin->GPC['do'] == 'results_table'){ include('survey/classes/special_results.class.php'); $navbits[''] = 'Results Table'; $survey = new UCCASS_Special_Results; $body = $survey->results_table($sid); } else { include('survey/classes/survey.class.php'); $navbits[''] = 'Available Surveys'; $survey = new UCCASS_Survey; $body = $survey->available_surveys(); } $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('vbsurvey') . '");'); ?>


Any ideas what I have done wrong?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01074 seconds
  • Memory Usage 1,787KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete