Ctracker and /dh/cgi-system/php.cgi

Support for IntegraMOD 141

Moderator: Integra Moderator

Ctracker and /dh/cgi-system/php.cgi

PostAuthor: Goofman » Wed Sep 26, 2007 4:45 pm

Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Advanced Knowledge
Board URL: http://www.rangerforums.com/test

PHP Version:
MySQL Version:


What was done before the problem appeared?
Upgrading From 140 to 141


What was done to try to solve the problem?
Searching <img>



De.scription and Message

Just going thru some of the ctracker logs and changing cade and for the life of me I can't find this file. Anyone know where it is? I don't have a dh folder at all in my root, which is where I assume it should be.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Script-Filename: /dh/cgi-system/php.cgi
----------------

Request-Method: POST

Matching rule: and
In variable: coppa_mail

Matching rule: into
In variable: coppa_mail

Matching rule: mail
In variable: coppa_mail

Matching rule: _php
In variable: logo_image

Matching rule: _php
In variable: logo_image

Possible solution:
------------------

#
#-----[ OPEN ]------------------------------------------
#
/dh/cgi-system/php.cgi

#
#-----[ FIND ]------------------------------------------
#
define('IN_PHPBB', 1);

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('CT_SECLEVEL', 'MEDIUM');
$ct_ignorepvar = array('coppa_mail','logo_image');

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Last edited by Goofman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Goofman
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 26, 2007 4:18 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: CaNNon » Wed Sep 26, 2007 6:11 pm

Warning: Unexpected character in input: '' (ASCII=15) state=1 in /usr/local/dh/cgi-system/php.cgi on line 1318

Warning: Unexpected character in input: '' (ASCII=1) state=1 in /usr/local/dh/cgi-system/php.cgi on line 1318

Warning: Unexpected character in input: ' in /usr/local/dh/cgi-system/php.cgi on line 1318

Warning: Unexpected character in input: ' in /usr/local/dh/cgi-system/php.cgi on line 1318

Parse error: syntax error, unexpected T_STRING in /usr/local/dh/cgi-system/php.cgi on line 1319


Think you should open a ticket with your host, it's there I can run it. I would assume they have it hidden if you can't see the folder/file.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: Master Dwarf » Thu Sep 27, 2007 3:25 am

I get the same thing. You have to be intuitive when you get that line. So if you are mssing with links and you're trying to debug, then the file you need to tweak code in is probably links.php. Not sure this helps, but I didn't want you to think you're the only one that got this code and said "what the hell..."
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: CaNNon » Thu Sep 27, 2007 3:59 am

Check this resource guys.

[url=http]http://hoohoo.ncsa.uiuc.edu/cgi/intro.html[/url]
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: Goofman » Fri Sep 28, 2007 6:01 am

Ok I found out that I could copy the file using shell to get the file into my root.

Code: Select all
 Prepare your site file environment  x.com = domains web-root folder$HOME = /home/username      1. Create a cgi-bin folder in the web-root of your site     mkdir $HOME/x.com/cgi-bin  [edit] Copy the php .cgi and .ini files       * PHP5     cp /dh/cgi-system/php5.cgi $HOME/x.com/cgi-bin/php.cgi   cp /etc/php5/cgi/php.ini $HOME/x.com/cgi-bin/php.ini       * PHP4     cp /dh/cgi-system/php.cgi $HOME/x.com/cgi-bin/php.cgi   cp /etc/php/cgi/php.ini $HOME/x.com/cgi-bin/php.ini    [edit] Set up the .htaccess file  The .htaccess file is located in your web-root     $HOME/x.com/.htaccess  Add this to run .php files with php cgi     AddHandler php-cgi .php   Action php-cgi /cgi-bin/php.cgi    [edit] Set the correct permissions     chmod 644 $HOME/x.com/.htaccess   chmod 755 $HOME/x.com/cgi-bin   chmod 750 $HOME/x.com/cgi-bin/php.cgi   chmod 644 $HOME/x.com/cgi-bin/php.ini    You can now modify $HOME/x.com/cgi-bin/php.ini to your heart's content!


Now when I try to open this file to do the edit I get funky characters in wordpad and Notepad just freezes up when I try it. I got a perl editor but it only displays about 6 characters in the file. I read that I should try to edit via ssh but I'm not proficient in what to do there. Anyone got an idea?
Last edited by Goofman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Goofman
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 26, 2007 4:18 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: CaNNon » Fri Sep 28, 2007 6:18 am

Try this. [url=http]http://www.scintilla.org/SciTE.html[/url]

I use it for all my editing, it has drawbacks.. but it knows most rule sets and will pick for you.

Download the file unzip to a folder, create a short cut to scite.exe and your ready. <img>
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: Goofman » Fri Sep 28, 2007 6:49 am

That editor doesn't make it readable to me <img>
Just to give you an idea of what I'm looking at...
[flash=,:1nfjak6f]http://www.rangerforums.com/code.jpg[/flash:1nfjak6f]
Â
Last edited by Goofman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Goofman
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 26, 2007 4:18 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: CaNNon » Fri Sep 28, 2007 10:40 am

I don't think that would be a .script, looks like it's compiled. You can't view/edit or work with it in any except as your host intended.

you sure your looking at the php.ini file cause the would be the config?
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: Goofman » Fri Sep 28, 2007 12:13 pm

It said to open the php.cgi file.

I haven't looked at the ini file. I will go look.
Last edited by Goofman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Goofman
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 26, 2007 4:18 pm
Cash on hand: 0.00

PostAuthor: Goofman » Fri Sep 28, 2007 12:34 pm

Just as a side note this box pops up when I try to change the default style via General Admin. It doesn't pop up when I change it via extreme styles.
Last edited by Goofman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Goofman
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 26, 2007 4:18 pm
Cash on hand: 0.00

Re: Ctracker and /dh/cgi-system/php.cgi

PostAuthor: CaNNon » Fri Sep 28, 2007 4:29 pm

I think you may have read it to fast,
You can now modify $HOME/x.com/cgi-bin/php.ini to your heart's content!
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: Goofman » Sat Sep 29, 2007 7:18 pm

Yea I know that part but the ctracker code had me edit php.cgi
Last edited by Goofman on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Goofman
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 26, 2007 4:18 pm
Cash on hand: 0.00

PostAuthor: Master Dwarf » Sun Sep 30, 2007 9:10 am

"Goofman";p="28641" wrote:Yea I know that part but the ctracker code had me edit php.cgi
no no no...You don't go by that unless it's a php file and, if i'm not mistaken, the php.ini file needs to be edited so that it produces an intuitive error and NOT cgi.
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]