vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=132996)

Billspaintball 04-24-2007 03:00 PM

Quote:

Originally Posted by gbaker (Post 1233621)
1. I tried to see if this was posted before, but was unable to find. Everything works great, but when "Log Out" is clicked, the "cleared cookies" vb page is shown and stays. Is this the normal behavior? Is there a known workaround to get it to return the initiating page? (other than hacking the vb code).

Thats the default vB behaviour.
As you guessed the way around that is to hack the vB code.
Quote:

2. On the subdomain issue, I have the typical: xxx.org and forums.xxx.org. By doing a "cwd()" in both the domain and subdomain, I confirmed that the physical locations are both under the main domain. However, the require_once of the global.php simply prohibits the page from displaying. Bypassing this with a technologically-superior "//" (commenting out), the page loads fine but displays the following after clicking login:
There is an additional method to bypass this issue now listed at the end of section 4 in the troubleshooting guide that may solve this for you https://vborg.vbsupport.ru/showpost....79&postcount=2

revolink24 05-04-2007 06:50 PM

Warning: chdir(): No such file or directory (errno 2) in xxxxxx/xxxx/index49.php on line 59

Warning: main(/forums/global.php): failed to open stream: No such file or directory in xxx/xxx/xxx//index49.php on line 60

Fatal error: main(): Failed opening required '/forums/global.php' (include_path='.:/usr/local/lib/php') in /xxx/xxx/xxx/xxx/index49.php on line 60

Billspaintball 05-07-2007 12:54 AM

Quote:

Originally Posted by revolink24 (Post 1241503)
Warning: chdir(): No such file or directory (errno 2) .......


See step two in the troubleshooting guide.
https://vborg.vbsupport.ru/showpost....79&postcount=2

From those errors it appears that your path is entered wrong.

ShadyB 05-21-2007 01:32 PM

I have been trying to use this hack on my site, but I dont know where to place the code...
This is the code for my site, so please help me!

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Designed by ShadyB!
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ShadyB.co.uk | Members Area</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../shadybauth.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
        <div id="logo">
                <h1>Welcome to the members area </h1>
                <h2>SHADYB.CO.UK</h2>
        </div>
        <div id="menu">
      <ul>
        <li><a href="http://www.shadyb.co.uk/members/home.php" title="">Home</a></li>
        <li><a href="http://www.shadyb.co.uk/members/forum.php" title="">Forums</a></li>
        <li class="active"><a href="http://www.shadyb.co.uk/members/" title="">Members</a></li>
        <li><a href="http://www.shadyb.co.uk/members/downloads/" title="">Downloads</a></li>
        <li><a href="http://www.shadyb.co.uk/members/arcade/" title="">Arcade</a></li>
        <li><a href="http://www.shadyb.co.uk/members/servers.php" title="">Servers</a></li>
        <li><a href="#" title="">Server Sales </a></li>
      </ul>
  </div>
</div>
<div id="wrapper">
        <div id="content">
                <div id="sidebar">
                        <div id="support">
                                <h2>Status:</h2>
                                <h3>
                  You are logged in! </div>
                        <div id="login" class="boxed">
                                <h2 class="title">Links</h2>
                                <p class="title"><a href="userdetail.php">My Details</a><br />
                                  My Files<br />
                                  <a href="../chgpwd.php">Change Password </a><br />
                  </p>
                                <div class="content"></div>
                        </div>
                        <div id="updates" class="boxed">
                                <h2 class="title">Recent Updates</h2>
                          <div class="content">
                                  <ul>
                                          <li>
                                                  <h3>Updates</h3>
                                                  <p><a href="http://www.shadyb.co.uk/members/home.php">Update details are currently available on the home page! </a></p>
                                          </li>
                                          <li></li>
                                  </ul>
                          </div>
                        </div>
                </div>
                <div id="main">
                        <div id="welcome" class="post">
                                <h2 class="title">Welcome To The Members Area!</h2>
                                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                                <div class="meta">
                                        <p>ShadyB<a href="#"></a></p>
                                </div>
                                <div class="story">
                                        <p><strong>Welcome to the ShadyB.co.uk members area. Here there will soon be private chat rooms, a music player, and games room, and a few more cool features! </strong><em></em></p>
                                </div>
                        </div>
                        <div id="example" class="post">
                                <h2 class="title">Information</h2>
                                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                                <div class="meta">
                                        <p>ShadyB<a href="#"></a></p>
                                </div>
                                <div class="story">
                                        <p>This section will be expanded on soon!</p>
                                        <h3>Coming Soon! </h3>
                                        <p>Some features coming soon to the members area!</p>
                                        <ul>
                                          <li>Private Games Room </li>
                                      <li>Private Chat Rooms</li>
                                      <li>Music Player</li>
                                      <li>Some More Things When I Think Lol  <br />
                                </li>
                                  </ul>
                          </div>
                        </div>
                </div>
        </div>
        <div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
        <p id="legal">Copyright &copy; 2007 ShadyB.co.uk </p>
</div>
</body>
</html>

Please could you say where I need to place the code to restrtct the whole page to a certain usergroup? Thankyou in advance!

Mastar 05-21-2007 01:43 PM

Quote:

Originally Posted by ShadyB (Post 1252057)
I have been trying to use this hack on my site, but I dont know where to place the code...
This is the code for my site, so please help me!

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Designed by ShadyB!
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ShadyB.co.uk | Members Area</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../shadybauth.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
        <div id="logo">
                <h1>Welcome to the members area </h1>
                <h2>SHADYB.CO.UK</h2>
        </div>
        <div id="menu">
      <ul>
        <li><a href="http://www.shadyb.co.uk/members/home.php" title="">Home</a></li>
        <li><a href="http://www.shadyb.co.uk/members/forum.php" title="">Forums</a></li>
        <li class="active"><a href="http://www.shadyb.co.uk/members/" title="">Members</a></li>
        <li><a href="http://www.shadyb.co.uk/members/downloads/" title="">Downloads</a></li>
        <li><a href="http://www.shadyb.co.uk/members/arcade/" title="">Arcade</a></li>
        <li><a href="http://www.shadyb.co.uk/members/servers.php" title="">Servers</a></li>
        <li><a href="#" title="">Server Sales </a></li>
      </ul>
  </div>
</div>
<div id="wrapper">
        <div id="content">
                <div id="sidebar">
                        <div id="support">
                                <h2>Status:</h2>
                                <h3>
                  You are logged in! </div>
                        <div id="login" class="boxed">
                                <h2 class="title">Links</h2>
                                <p class="title"><a href="userdetail.php">My Details</a><br />
                                  My Files<br />
                                  <a href="../chgpwd.php">Change Password </a><br />
                  </p>
                                <div class="content"></div>
                        </div>
                        <div id="updates" class="boxed">
                                <h2 class="title">Recent Updates</h2>
                          <div class="content">
                                  <ul>
                                          <li>
                                                  <h3>Updates</h3>
                                                  <p><a href="http://www.shadyb.co.uk/members/home.php">Update details are currently available on the home page! </a></p>
                                          </li>
                                          <li></li>
                                  </ul>
                          </div>
                        </div>
                </div>
                <div id="main">
                        <div id="welcome" class="post">
                                <h2 class="title">Welcome To The Members Area!</h2>
                                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                                <div class="meta">
                                        <p>ShadyB<a href="#"></a></p>
                                </div>
                                <div class="story">
                                        <p><strong>Welcome to the ShadyB.co.uk members area. Here there will soon be private chat rooms, a music player, and games room, and a few more cool features! </strong><em></em></p>
                                </div>
                        </div>
                        <div id="example" class="post">
                                <h2 class="title">Information</h2>
                                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                                <div class="meta">
                                        <p>ShadyB<a href="#"></a></p>
                                </div>
                                <div class="story">
                                        <p>This section will be expanded on soon!</p>
                                        <h3>Coming Soon! </h3>
                                        <p>Some features coming soon to the members area!</p>
                                        <ul>
                                          <li>Private Games Room </li>
                                      <li>Private Chat Rooms</li>
                                      <li>Music Player</li>
                                      <li>Some More Things When I Think Lol  <br />
                                </li>
                                  </ul>
                          </div>
                        </div>
                </div>
        </div>
        <div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
        <p id="legal">Copyright &copy; 2007 ShadyB.co.uk </p>
</div>
</body>
</html>

Please could you say where I need to place the code to restrtct the whole page to a certain usergroup? Thankyou in advance!



PHP Code:



<?php
$curdir 
getcwd ();
chdir('/path/to/your/forums');
require_once(
'/path/to/your/forums/global.php');
chdir ($curdir);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Designed by ShadyB!
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>ShadyB.co.uk | Members Area</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../shadybauth.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
    <div id="logo">
        <h1>Welcome to the members area </h1>
        <h2>SHADYB.CO.UK</h2>
    </div>
    <div id="menu">
      <ul>
        <li><a href="http://www.shadyb.co.uk/members/home.php" title="">Home</a></li>
        <li><a href="http://www.shadyb.co.uk/members/forum.php" title="">Forums</a></li>
        <li class="active"><a href="http://www.shadyb.co.uk/members/" title="">Members</a></li>
        <li><a href="http://www.shadyb.co.uk/members/downloads/" title="">Downloads</a></li>
        <li><a href="http://www.shadyb.co.uk/members/arcade/" title="">Arcade</a></li>
        <li><a href="http://www.shadyb.co.uk/members/servers.php" title="">Servers</a></li>
        <li><a href="#" title="">Server Sales </a></li>
      </ul>
  </div>
</div>
<div id="wrapper">
    <div id="content">
        <div id="sidebar">
            <div id="support">
                <h2>Status:</h2>
                <h3>
          You are logged in!     
                      </h3>

                <p>
<!-- begin login code -->
<?php
   
require_once('/path/to/your/login_inc2.php');
?>          
<!-- end login code -->
          </p>
          
            </div>
            <div id="login" class="boxed">
                <h2 class="title">Links</h2>
                <p class="title"><a href="userdetail.php">My Details</a><br />
                  My Files<br />
                  <a href="../chgpwd.php">Change Password </a><br />
              </p>
                <div class="content"></div>
            </div>
            <div id="updates" class="boxed">
                <h2 class="title">Recent Updates</h2>
              <div class="content">
                  <ul>
                      <li>
                          <h3>Updates</h3>
                          <p><a href="http://www.shadyb.co.uk/members/home.php">Update details are currently available on the home page! </a></p>
                      </li>
                      <li></li>
                  </ul>
              </div>
            </div>
        </div>
        <div id="main">
            <div id="welcome" class="post">
                <h2 class="title">Welcome To The Members Area!</h2>
                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                <div class="meta">
                    <p>ShadyB<a href="#"></a></p>
                </div>
                <div class="story">
                    <p><strong>Welcome to the ShadyB.co.uk members area. Here there will soon be private chat rooms, a music player, and games room, and a few more cool features! </strong><em></em></p>
                </div>
            </div>
            <div id="example" class="post">
                <h2 class="title">Information</h2>
                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                <div class="meta">
                    <p>ShadyB<a href="#"></a></p>
                </div>
                <div class="story">
                    <p>This section will be expanded on soon!</p>
                    <h3>Coming Soon! </h3>
                    <p>Some features coming soon to the members area!</p>
                    <ul>
                      <li>Private Games Room </li>
                      <li>Private Chat Rooms</li>
                      <li>Music Player</li>
                      <li>Some More Things When I Think Lol   <br /> 
                         </li>
                  </ul>
              </div>
            </div>
        </div>
    </div>
    <div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
    <p id="legal">Copyright &copy; 2007 ShadyB.co.uk </p>
</div>
</body>
</html>


Fill in your info where there is RED.

ShadyB 05-21-2007 01:54 PM

Ok I knew where to put that, but its the restricting bit I cant do...

PHP Code:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
    echo 
"Have stuff for here";
             } else {
             echo 
"You do not have permission for this page"; }
    
?>

Its that bit that I dont know where to place.. I just keep getting parse errors if I try and do it...
I want it so that the page is viewable to people that are logged in, but not to people that arent..

Mastar 05-21-2007 04:09 PM

Why not create a vbulletin custom page :

https://vborg.vbsupport.ru/showthread.php?t=62164

ShadyB 05-21-2007 04:15 PM

Thats not what I'm trying to do... I have a different design for the site, and just want to use the login system, so users dont have to register on two different sites..
This hack does that, but I just dont know how to use the php code in my last post..

Billspaintball 05-22-2007 01:27 AM

Quote:

Originally Posted by ShadyB (Post 1252073)
Ok I knew where to put that, but its the restricting bit I cant do...

PHP Code:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
    echo 
"Have stuff for here";
             } else {
             echo 
"You do not have permission for this page"; }
    
?>

Its that bit that I dont know where to place.. I just keep getting parse errors if I try and do it...
I want it so that the page is viewable to people that are logged in, but not to people that arent..

Your getting parse errors probably because your HTML code is not escaped correctly.

For example this bit here
Code:

<div id="welcome" class="post">
                                <h2 class="title">Welcome To The Members Area!</h2>
                                <h3 class="date"><span class="month">Updated May 20th 2007 </span><span class="year"></span></h3>
                                <div class="meta">
                                        <p>ShadyB<a href="#"></a></p>
                                </div>

should be done something like

Code:

<?php 
if ($vbulletin->userinfo['userid'] >0) {
echo"

<div id=\"welcome\" class=\"post\">
                                <h2 class=\"title\">Welcome To The Members Area!</h2>
                                <h3 class=\"date\"><span class=\"month\">Updated May 20th 2007 </span><span class=\"year\"></span></h3>
                                <div class=\"meta\">
                                        <p>ShadyB<a href=\"#\"></a></p>
                                </div>

";

?>

It does require some basic PHP skills to do this.
If you have not used PHP/HTML togeather before you really should do a couple of online tutorials on it.
Its a little confusing at first, but not hard to pick up the basics (which is all you need for this)

ShadyB 05-22-2007 01:43 PM

Thankyou SO MUCH BILL!!!
Adding the \'s in the right places made it work!!
I cannot thankyou enough.. I might make a donation =]

ShadyB 05-22-2007 02:33 PM

One more thing... How can I get it to say something like Welcome Back "username" when its is in the

PHP Code:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
echo
"

Tag? It doesnt seem to work for me..

Also, when designing it in Dreamweaver, everything disappears from the design view.. Is that because it is restricted to a usergroup and Dreamweaver cannot access it?

ShadyB 05-22-2007 03:54 PM

Is there a way to get users to redirect to a different page when they login?
E.g if they logged in on your home page, it would redirect them to the members area home page?

ShadyB 05-22-2007 08:15 PM

No probs done it myself =]

Billspaintball 05-22-2007 11:19 PM

Quote:

Originally Posted by ShadyB (Post 1252706)
One more thing... How can I get it to say something like Welcome Back "username" when its is in the

PHP Code:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
echo
"

Tag? It doesnt seem to work for me..

Also, when designing it in Dreamweaver, everything disappears from the design view.. Is that because it is restricted to a usergroup and Dreamweaver cannot access it?

PHP Code:

if ($vbulletin->userinfo['usergroupid'] == '6' )
    {
echo 
"Welcome Back, <b>";
echo 
$vbulletin->userinfo['username'];
echo 
" !</b><br />";


As for Dreamweaver, I think you will need to use it in code view for this part.

ShadyB 05-23-2007 07:33 PM

Thankyou so much Bill.. Excellent hack, and awesome support!

Osterling 05-25-2007 05:45 PM

Is there a way I can plug a user name in a if statement to see if that user is online?

gforce75 06-02-2007 12:29 AM

Thanks for the hack. I'll try this out on my front network page when it's completed.

Billspaintball 06-04-2007 01:32 PM

Quote:

Originally Posted by Osterling (Post 1254581)
Is there a way I can plug a user name in a if statement to see if that user is online?

Not as it stands at the moment.
You would need to include vBs useronline system.
I havent looked at that, so Im not sure whats involved.

sidbradberry 06-14-2007 04:16 PM

Hi does anyone know how to remove the login box from the page once the user has logged in?

i have the <?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>

at the very top of the page, html code underneath and then the <?php
require_once('/path/to/your/login_inc.php');
?>
below that.

When i use conditionals to display content to users who are logged in it works fine but the login box still remains at the top, is this suppose to happen?
Sorry i'm new to all this.

machethier 06-18-2007 11:43 PM

anyone can tell if this mod work under vbulletin 3.6.7PL? because I got a blank page everytime I try to load my php page. I delete the code and everything is working again!

Carazy 06-25-2007 05:10 AM

For me the mod does work on 3.6.7PL

rayw 06-25-2007 07:05 AM

[S]What is the difference between this mod and the Deluxe version?[/S]

Nevermind! Just a good read of both descriptions and one looks like it is a cut down version of the other.

:)

ZomgStuff 06-26-2007 06:00 AM

Everything is okay but at the very top I see this:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2

How can I fix this?

jeramie78 07-09-2007 03:20 AM

hey bill it says you updated the avatar code in this mod but i cannot see it in the code. i would really like the avatar display in the welcome box

adonfun 07-09-2007 05:57 PM

I think this is a Great hack Bill, I'll first start with the simple version. There are some things I coulnd't get it work. I am sure I entered the URL in part 2 and doc roots in part 1 correctly. I don't get any php errors..: What I do get is:
  • When I'm not logged in and I want to in /thishack/, the standard vBulletin login page shows instead of the login fields provided in part 2. And when I want to login, it takes me to login.php which is in /forum/ but not in /thishack/.
    This hack should work in other folders on the same domain, right?

  • When I am logged in (through the forum) and I hit the Logout link in /thishack/, it does take me to the vBulletin message: "All cookies cleared!" but when I go to the forum, I am still logged in.Seems to working now after I closed and reopened my FF broswer
On my server:
root
-----/forum/
-----/thishack/

I am using vB 3.6.7

I already did the "Subdomains and cross site logins" (nr 4 of troubleshooting)

Anyone else has this issue or solutions for me?

dumni0x 07-12-2007 10:46 PM

Hey Bill,

Is it possible to show a warning on the page where the script is loaded instead of the redirection to the forums (ie. on bad password or incorrect username)?

Thanks

nima6 07-15-2007 09:38 PM

Does this cause any problem with the rest of the website?

I only want the login box and password and a "Welcome message" on top of the non-VB pages of my website.


Thanks
Nima

jeffmezick 07-17-2007 06:20 PM

I'm using version 3.6.7 and I don't have a login_inc.php file. Does anyone else have this problem too?

jeffmezick 07-17-2007 06:38 PM

Quote:

Originally Posted by jeffmezick (Post 1293856)
I'm using version 3.6.7 and I don't have a login_inc.php file. Does anyone else have this problem too?

God, I'm a friggin idiot. The login_inc.php file is included in the .zip. Sorry about that.

Eagle Eyes 08-19-2007 03:28 AM

Anyone got a demo for this one?

imtwoods 08-20-2007 02:44 AM

This hack looks like it will work for my site, but before I try it, will it work with version 3.6.8?

Topuk 08-23-2007 07:29 PM

ok we have a version that will allow someone of a certain primary group to see the page like this:

<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "This is only visible to people in usergroup 6";}
?>

has anyone worked out how to do it with a secondary group? i.e. if they are members of 3 or 4 groups and the page is available to them as a secondary member??

txsbmw 09-04-2007 05:15 PM

Quote:

Originally Posted by Billspaintball (Post 1207023)
There is a guide on using this script with vBexternal right here
https://vborg.vbsupport.ru/showpost....&postcount=399


I have vbexternal, tried this fix but it still just redirects me back to the page after logging in and instead of it showing I am logged in, it shows the log in box. I have also checked my cookie settings as well. Running 3.6.8

Anyone know how to get it to work correctly?

wsdeluxe 09-20-2007 10:39 AM

I'm having problems with this.

I have my forums at domain1.com/forums/ and a site at site1.com

I've followed all the instructions and everything and its not working correctly. If I clear my cookies, I login and it redirects me to site1.com and shows me as logged in however in the address bar there is ?s= then the long session ID string. If I navigate to another page, this goes and I'm logged out.

Any idea whats going on here? I'm pulling my hair out over this! :(

The connection to the vB files is working, the redirect is working, but it is not setting the cookies correctly. I've tried the cookie domain as blank, .site1.com, .domain1.com and its just not working. It keeps me logged in on the forums, just not the site.

I've got root access so can modify any settings if needed (however I don't think its server-side related).

Thanks for your time & hard work.

imtwoods 09-22-2007 07:09 PM

Does anyone know if this hack will work with iframes? Specifically, it I have the login box and login detection code within an iframe (say login.php), and this iframe is part of index.html, if I enter my username/password in the login box, it seems to recognize that I've logged in, but it won't redirect me back to the main page, which is index.html. It seems to redirect back to my iframe page, login.php, which is not the behavior I want. Does anyone know how to make it redirect to the main page, index.html, which includes my login.php in an iframe? This is my first time using this hack.

Triky 10-16-2007 10:49 AM

I get this errors:

Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
             


       
                                                                                              Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:

Code:

<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>


<?php
  require_once('login_inc.php');
?> 

</body>

</html>


jags2ooo 10-18-2007 12:41 PM

Hi, been using this for a while its great, wondering if its possible to allow additional user group members to access a certain page? Not only primary.

Snatch 10-18-2007 02:00 PM

Quote:

Originally Posted by Triky (Post 1361491)
I get this errors:

Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
             


       
                                                                                              Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:

Code:

<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>


<?php
  require_once('login_inc.php');
?> 

</body>

</html>



The same Problems by me since I have upgrade to MySQL 5

Have you fixed it?

Triky 10-19-2007 07:04 AM

No man, I'm still waiting for a reply. :p

adonfun 10-22-2007 11:21 AM

Quote:

Originally Posted by Triky (Post 1361491)
I get this errors:

Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618
             


       
                                                                                              Unable to add cookies, header already sent.
File: c:\programmi\easyphp1-8\www\webcity\includes\class_core.php
Line: 1591

I've my forum located at (in EasyPHP) www/webcity/. I have my page file in www, and this is its code:

Code:

<?php
$curdir = getcwd ();
chdir('webcity');
require_once('webcity/global.php');
chdir ($curdir);
?>
<html>
<head>
<title>Web City</title>
</head>
<body>


<?php
  require_once('login_inc.php');
?> 

</body>

</html>


ETA: never mind, don't think this is the issue:
chdir('webcity');
require_once('webcity/global.php');

should be something in the format of:

chdir('/home/webc/public_html/webcity');
require_once('/home/webc/public_html/webcity/global.php');


Code:

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTPS in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1591

Notice:  Undefined index:  HTTP_REFERER in c:\programmi\easyphp1-8\www\webcity\includes\class_core.php on line 1618

I had this problem before. After moving the code to the very top of any codeblock should solve it.


All times are GMT. The time now is 01:34 AM.

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.01760 seconds
  • Memory Usage 1,968KB
  • 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
  • (11)bbcode_code_printable
  • (6)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete