HOWTO hack Xkins to include the new CGI-ADDONS

O

ozzi4648

Guest
First find my demo link and see how this will look. After your finished with this hack you will see the following results.

Click on this link: http://demo:[email protected]:2082/
then click on CGI-Scripts and scroll to the bottom of the page.

Go into WHM and find the ADDON SCRIPTS section under the CPANEL 5 heading. Make sure that what up want to add is checked and saved. So if your only going to offer Oscommerce then check the box and save.

Ssh to your box.

Execute the following commands from the command line. Just copy and paste these commands and press &enter&

mkdir /usr/local/cpanel/base/frontend/Xskin/addoncgi
cd /usr/local/cpanel/base/frontend/default/addoncgi
cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi
cd /usr/local/cpanel/base/frontend/Xskin/cgi

Edit the index.html to include the link on the cgi scripts page.

Make a backup of index.html

cp index.html index.html.orig

pico index.html

Find this line of code at the very end of the index.html file.

Search for this line of code:

This feature allows you to create rotating banner ads for your site. &/td&

Change it to:

This feature allows you to create rotating banner ads for your site.&br&&br& &/td&

Directly after this code:

&/tr&
&tr&
&td width=&22& valign=&top& height=&2&&&img src=&../images/arrow-t.gif&&&/td&
&td width=&628& height=&2&&&a href=&begin.html&&Entropy Banner &/a&&br&
This feature allows you to create rotating banner ads for your site.&br&&br& &/td&
&/tr&

Add the following:

&tr&
&td width=&22& valign=&top&&&img src=&../images/arrow-t.gif&&&/td&
&td width=&628&&&a href=&../addoncgi/index.html&&CGI Addon Scripts&/a& (&font color=&#FF0000&&New&/font&)&br&
Install OsCommerce, PhpNuke or Invisions Board here.&br&&br&&/td&
&/tr&

Change the text above to say what you are actually running. So if your not running phpnuke modify it to say so.

Save, exit out and test!

Depending on what you enabled in WHM, thats what is going to show when the link is clicked. I only have OSCOMMERCE enabled so that what you will see in my demo.

NOTE: At first i wanted to place the shopping cart under carts.html with all the other carts, and this was impossible since the cPanel guys have created this, &cpanel Addons=&listaddons()&& which lists all the cgi addons enabled. YUK! That would mean that if you placed &cpanel Addons=&listaddons()&& on the carts page and you also enabled phpnuke and Invisions they would all be listed on the carts page. Maybe we should ask them to change this. Anyway this was the best place to put it for now. Let me know how it works for you.

-Enjoy
 
O

ozzi4648

Guest
The symbol in the code above was replace with a face. It should be a )
 
O

ozzi4648

Guest
And everyone is welcome too. Geez what a bunch of unappreciate people! You should check out the Rackshack forums sometime. People their at least interact and help each other out. Here, you dont even get a thank you!
 

Robert

Member
Aug 14, 2001
20
0
301
Or sometmes an answer ;)

I will give you a thank you - did your update today.

You do have one typo - PHPNude??? :p

Thanks for the work.

edit haha had a typo on typo!
 
O

ozzi4648

Guest
[quote:17688c263c][i:17688c263c]Originally posted by Robert[/i:17688c263c]

Or sometmes an answer ;)

I will give you a thank you - did your update today.

You do have one type - PHPNude??? :p

Thanks for the work.[/quote:17688c263c]

Your welcome, now tell me where i can get a hold of &phpnude&? Laugh! ;)
 

Robert

Member
Aug 14, 2001
20
0
301
[quote:facaf6a2aa][i:facaf6a2aa]Originally posted by ozzi4648[/i:facaf6a2aa]

Your welcome, now tell me where i can get a hold of &phpnude&? Laugh! ;) [/quote:facaf6a2aa]

That is what my users are asking!
[quote:facaf6a2aa]
color=&#FF0000&&New&/font&&br&
Install OsCommerce, [b:facaf6a2aa][u:facaf6a2aa]PhpNude[/u:facaf6a2aa][/b:facaf6a2aa] Invisions Board here.&br&&br&&/td&
&/tr&
[/quote:facaf6a2aa]
 
O

ozzi4648

Guest
[quote:d348d11c50][i:d348d11c50]Originally posted by Robert[/i:d348d11c50]

[quote:d348d11c50][i:d348d11c50]Originally posted by ozzi4648[/i:d348d11c50]

Your welcome, now tell me where i can get a hold of &phpnude&? Laugh! ;) [/quote:d348d11c50]

That is what my users are asking!
[quote:d348d11c50]
color=&#FF0000&&New&/font&&br&
Install OsCommerce, [b:d348d11c50][u:d348d11c50]PhpNude[/u:d348d11c50][/b:d348d11c50] Invisions Board here.&br&&br&&/td&
&/tr&
[/quote:d348d11c50][/quote:d348d11c50]

Oops! that my typo, i meant phpNuke. What was i thinking? It must have been the rum and cokes i was drinking.
 

Eric Nguyen

Registered
Jan 11, 2003
2
0
151
[quote:62334b3e54][i:62334b3e54]Originally posted by ozzi4648[/i:62334b3e54]

NOTE: At first i wanted to place the shopping cart under carts.html with all the other carts, and this was impossible since the cPanel guys have created this, &cpanel Addons=&listaddons()&& which lists all the cgi addons enabled. YUK! That would mean that if you placed &cpanel Addons=&listaddons()&& on the carts page and you also enabled phpnuke and Invisions they would all be listed on the carts page. Maybe we should ask them to change this. Anyway this was the best place to put it for now. Let me know how it works for you.

-Enjoy


[/quote:62334b3e54]

ozzi4648, open your carts page and add a link like this http://demo.networksdata.com:2082/frontend/WebAdmin/addoncgi/main.html?addonname=osCommerce
It should work for you

-Eric
 

krellen

Member
Oct 1, 2002
9
0
151
Ozzi--

I really appreciate this thread! This is exactly the answer I was looking for. THANK YOU!!!!
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Would you mind posting that again? I think the forum update resulted in garbled codes. Those & things are supposed to be < , > or " right?
 

Esr Tek

Active Member
Aug 5, 2002
44
0
156
Originally posted by ozzi4648
Ssh to your box.

Execute the following commands from the command line. Just copy and paste these commands and press &amp;enter&amp;

mkdir /usr/local/cpanel/base/frontend/Xskin/addoncgi
cd /usr/local/cpanel/base/frontend/default/addoncgi
cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi
cd /usr/local/cpanel/base/frontend/Xskin/cgi

I tried to implement this.. however i got a few things that flagged my attention to stop.

"mkdir /usr/local/cpanel/base/frontend/Xskin/addoncgi" returned "directory already exsits"

"cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi" came back with Y/N questions about 5 pages?? Didn't know what to do so I quit SSH session.

I am running Edge 6.0 build 56 at time... so I am wondering if this fix will be implemented into cpanel 6 stable?
 

Esr Tek

Active Member
Aug 5, 2002
44
0
156
I dont see how he is complaining?!?!?!

He did start this thread o share a fix not complain... maybe you mistook thier joking about a typo between each others as "complaining" but I think it was in good fun ;)

Ozzi - what should I do in event of this command comming back to me and looking as if the files exsited and is asking me to overwrite them...
cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi
I stopped here and said no to overwritting fies, just in case.
Is it safe to proceed and pico the index file?

Thanks for the fix by the way ;)
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Originally posted by casey
Would you mind posting that again? I think the forum update resulted in garbled codes. Those & things are supposed to be < , > or " right?
Please?...
 
O

ozzi4648

Guest
Originally posted by AlaskanWolf
ozzi4648, the only thing i ever see you do is complain, i bet half of your 380 posts are complaints. Give it a rest already
You know where you can go dont you, now go do it!
 
O

ozzi4648

Guest
Re: Re: HOWTO hack Xkins to include the new CGI-ADDONS

Originally posted by Esr Tek
I tried to implement this.. however i got a few things that flagged my attention to stop.

"mkdir /usr/local/cpanel/base/frontend/Xskin/addoncgi" returned "directory already exsits"

"cp *.* /usr/local/cpanel/base/frontend/Xskin/addoncgi" came back with Y/N questions about 5 pages?? Didn't know what to do so I quit SSH session.

I am running Edge 6.0 build 56 at time... so I am wondering if this fix will be implemented into cpanel 6 stable?
I believe Bert has already added the functionality since the directory and files seem to already be there. You were right in stopping. My origional post was prior to his addition