vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Page no vbulletin (https://vborg.vbsupport.ru/showthread.php?t=210907)

THE_MAD2 04-11-2009 06:04 AM

Page no vbulletin
 
Hello, here I have a problem with a non-vBulletin page, I want it assigned the rights of the forum, but when I connect it works and when I do not connect it gives me an error

PHP Code:

Unable to add cookiesheader already sent.
File: /home/una/domains/unattended-news.com/public_html/test.php
Line


My code :

PHP Code:

<?php
//--------------------------------------------------------
// Unattended-News
// ? 2005 - 2009, Unattended-News - THE_MAD2. Tous droits r?serv?s.
// Version 1.0
//--------------------------------------------------------

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''resetkey');
define('CWD','./forum');

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array();

// ########################## REQUIRE BACK-END ############################
require_once('./forum/global.php');
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!$vbulletin->userinfo['userid'])
{
echo 
'DSL, mais pas connecter';
}

// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
echo'connecter';

?>

Thank

Dismounted 04-11-2009 06:35 AM

Make sure there is no white-space before "<?php". The PHP interpreter indicates there is.

THE_MAD2 04-11-2009 07:19 AM

no space

Dismounted 04-11-2009 11:52 AM

Open the file in a program like Notepad (and not other editors); also post the file as an upload.

THE_MAD2 04-11-2009 02:49 PM

I use to encode Notpad more and I no spaces

--------------- Added [DATE]1239518026[/DATE] at [TIME]1239518026[/TIME] ---------------

When I try in the forum by removing "define ( 'CWD','./ forum');" walk its impeccable, but when I move the file with the above code, its not


All times are GMT. The time now is 08:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01072 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete