You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 60 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - google tap 0.6.5 beta install instructions [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
rapid
Corporal
Corporal


Joined: Jul 09, 2003
Posts: 71


PostPosted: Mon Jul 14, 2003 4:47 pm Reply with quoteBack to top

Thank you to nukecops for making the Google Tap available to everyone. The idea is great. I say idea because I haven't gotten it to work yet.

I have read every single thread on Google Tap install. I read Zhen-Xjell's replies. I know it's just in beta stages... I just want to make it work. I tried hard before I posted, but I still get 404-not-founds all over the place.

I have phpnuke 6.5 with sec-fix 3 and 4 applied.
I will try to make this easy for you to help me.

1. My host does have mod_rewrite enabled in Apache.

2. Is the htaccess file ready to be used as is (I did rename it to .htaccess)?

3. Please bold or highlight or color or whatever the code in footer.php that needs to be replaced with this red-colored code:

$contents = ob_get_contents();
ob_end_clean();
echo replace_for_mod_rewrite($contents);

foot();

?>


current footer.php code:

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("footer.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

$footer = 1;

function footmsg() {
global $foot1, $foot2, $foot3, $copyright, $total_time, $start_time;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = ""._PAGEGENERATION." ".substr($total_time,0,5)." "._SECONDS."";
echo "<font class=\"footmsg\">\n";
if ($foot1 != "") {
echo "$foot1<br>\n";
}
if ($foot2 != "") {
echo "$foot2<br>\n";
}
if ($foot3 != "") {
echo "$foot3<br>\n";
}
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
echo "$copyright<br>$total_time<br>\n</font>\n";
}

function foot() {
global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
if ($home == 1) {
blocks(Down);
}
if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
$cpname = ereg_replace("_", " ", $name);
echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &</a></div>";
}
themefooter();
echo "</body>\n"
."</html>";
die();
}

foot();

?>


----------------------------------------------------

4. Please bold or highlight or color or whatever the code in header.php that needs to be replaced with this red-colored code:

if (eregi("header.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

ob_start();

function replace_for_mod_rewrite(&$s) {
$urlin = array(
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)&mode=([a-z]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&new_topic=([0-9]*)'",
"'(?<!/)modules.php\?name=Stories_Archive&sa=show_month&year=([0-9]*)&month=([0-9]*)&month_l=([a-zA-Z]*)'",
"'(?<!/)modules.php\?name=Stories_Archive'",
"'(?<!/)modules.php\?name=Downloads&d_op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownloaddetails&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=a-zA-Z0-9_ ]*)'",
"'(?<!/)modules.php\?name=(Downloads\")'",
"'(?<!/)modules.php\?name=Reviews&rop=showcontent&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=write_review'",
"'(?<!/)modules.php\?name=Reviews&rop=postcomment&id=([0-9]*)&title=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=mod_review&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=del_review&id_del=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Reviews'",
"'(?<!/)modules.php\?name=Submit_News'",
"'(?<!/)modules.php\?name=Topics'",
"'(?<!/)modules.php\?name=Top&zx=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Top'",
"'(?<!/)modules.php\?name=FAQ'",
"'(?<!/)modules.php\?name=FAQ&myfaq=yes&id_cat=([0-9]*)&categories=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]+)&postdays=([0-9]+)&postorder=asc&start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]+)&topicdays=([0-9]+)&start=([0-9]+)'",
"'(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)'",
"'(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&mark=topics'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&view=newest'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&highlight=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&(p|t)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=posting&t=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=index&c=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=index'",
"'(?<!/)modules.php\?name=Sections&op=(printpage|viewarticle)&artid=([0-9]*)'",
"'(?<!/)modules.php\?name=Sections&op=listarticles&secid=([0-9]*)'",
"'(?<!/)modules.php\?name=Sections'",
#"'(?<!/)modules.php\?name=Your_Account&op=userinfo&uname=([a-zA-Z0-9_-]*)'",
#"'(?<!/)modules.php\?name=Your_Account&op=userinfo&uname=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
#"'(?<!/)modules.php\?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=([0-9]+)'",
#"'(?<!/)modules.php\?op=modload&name=Web_Links&file=index&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
#"'(?<!/)modules.php\?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
#"'(?<!/)modules.php\?op=modload&name=Web_Links&file=index&l_op=visit&lid=([0-9]*)'",
#"'(?<!/)modules.php\?op=modload&name=Web_Links&file=index&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
#"'(?<!/)modules.php\?op=modload&name=Web_Links&file=index&l_op=viewlink&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links'"
);

$urlout = array(
"article-\\1-\\2-\\3-\\4.html",
"article\\1.html",
"article\\1.html",
"article-topic-\\1.html",
"archive-\\1-\\2-\\3.html",
"archive.html",
"downloads-file-\\1.html",
"downloads-cats-\\1-\\2-\\3.html",
"downloads-cat-\\1.html",
"downloads-file-\\1-details-\\2.html",
"downloads.html\"",
"reviews-\\1.html",
"reviews-new.html",
"reviews-comment-\\1-\\2",
"reviews-\\1-edit.html",
"reviews-\\1-delete.html",
"reviews-sortby-\\1.html",
"reviews.html",
"submit.html",
"topics.html",
"top-\\1.html",
"top.html",
"faq.html",
"faq-\\1-\\2.html",
"postx\\1-\\2-\\3.html",
"forumx\\1-\\2-\\3.html",
"contentid-\\1.html",
"content-cat-\\1.html",
"markread\\1.html",
"forum\\1.html",
"newposts\\1.html",
"posts\\1-\\2.html",
"postlite\\1-\\2.html",
"post\\1\\2.html",
"fvote\\1.html",
"forum-cat\\1.html",
"forums.html",
"section-\\1-\\2.html",
"section-\\1.html",
"sections.html",
"userinfo-\\1.html",
"userinfo-\\1.html",
"linksnew-\\1.html",
"linkop-\\1.html",
"ratelink-\\1-\\2.html",
"viewlink-\\1.html",
"links-\\1-\\2-\\3.html",
"link-\\1.html",
"links.html"
);

$s = preg_replace($urlin, $urlout, $s);
return $s;
}


current header.php code:

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

if (eregi("header.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
$ThemeSel = get_theme();
include("themes/$ThemeSel/theme.php");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";

include("includes/meta.php");
include("includes/javascript.php");

if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}

echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
include("includes/my_header.php");
echo "\n\n\n</head>\n\n";
themeheader();
}

online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
message_box();
blocks(Center);
}

?>


--------------------------------------------------

5. instructions for sessions were clear. Thanks.

6. Do I have to upload the blank index.html?

7. Do I have to chmod the .htaccess file to anything in particular?

Thank you very much. I think this would be very helpful for other non-coding newbies that want to get the google tap to work.
Find all posts by rapidView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Jul 14, 2003 5:58 pm Reply with quoteBack to top

Hi, you can browse http://cvs.nukecops.com. GT is already installed in the source files there.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
rapid
Corporal
Corporal


Joined: Jul 09, 2003
Posts: 71


PostPosted: Mon Jul 14, 2003 7:09 pm Reply with quoteBack to top

thank you, Zhen. Will those files work ok with my version of phpNuke (6.5 with sec-fix 4 applied)?
Find all posts by rapidView user's profileSend private message
rapid
Corporal
Corporal


Joined: Jul 09, 2003
Posts: 71


PostPosted: Mon Jul 14, 2003 8:21 pm Reply with quoteBack to top

404 not found.

this is really frustrating. Can anyone take a little time and help me out here, please?
Find all posts by rapidView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jul 15, 2003 3:06 am Reply with quoteBack to top

Did you grab the .htaccess, header, and footer? Do you have mod_rewrite installed on the machine?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
rapid
Corporal
Corporal


Joined: Jul 09, 2003
Posts: 71


PostPosted: Tue Jul 15, 2003 9:19 am Reply with quoteBack to top

Zhen,

Yes, I got .htaccess, header.php, fotter.php, and also includes/sessions.php.

Reading your question, I guess I only need those first three? I will try it again. I am also guessing it is ok to use those, given my version of phpnuke (6.5, secfix4).

Yes, my host does have mod_rewrite enabled.

Thank you
Find all posts by rapidView user's profileSend private message
rapid
Corporal
Corporal


Joined: Jul 09, 2003
Posts: 71


PostPosted: Thu Jul 17, 2003 7:18 pm Reply with quoteBack to top

Zhen,

I tried again with those three files you mentioned, and it seems to work.

I am now, however, having problems with the login page. Sometimes the security code image does not load (red x), sometimes it looks like there is no security code image at all in the login process (as if it were not enabled), sometimes the image is there, but I can't login the first time. 2nd or third time works. Cookies in IE 6 are "Accept All Cookies..."

I am no coder, so please tell me if these symptoms could be caused by the changes I made in order to get the google tap to work.

Thank yuo very much.
Find all posts by rapidView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Jul 18, 2003 5:29 am Reply with quoteBack to top

GT changes have no effect on the security code image.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.211 Seconds - 202 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::