|
Page 1 of 1
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
 PM Wiki Integration With Icy Phoenix
Hi Guys
I am trying to incorporate pmWiki to my website and have it editable by the members of my site.
In pmwiki cookbook is many scripts to interface it into phpbb2, phpbb3 smf etc etc but not one for ICY.
What i have here is the PHPbb2 script , can someone please help modify it so that it may work for ICY if you know what i mean.
pmwiki resides at the same level as my forum folder ie in the root.
<?php if (!defined('PmWiki')) exit();
##
## SMC: New alternative Wiki Auth
## SMC: Check if we are already authenticated via phpBB2 forum
## Version: 1.0
##
// Set the default phpBB2 cookie name. _data is appended to this name later in this script.
SDV($phpBB2cookie,'phpBB2_cookie_name');
// Override the default AuthFunction to phpAuth
$AuthFunction = 'PhpBB2Auth';
$m_phpBB2_auth = false;
$m_username = 'Anonymous'; // forum defaults to this also
$m_data_cookie = $phpBB2cookie . '_data'; // append _data to cookie name as this is the element we need
#print "Session Cookie: " . $m_data_cookie . "<br>";
if (isset($_COOKIE[$m_data_cookie]))
{
$sessiondata = isset($_COOKIE[$m_data_cookie]) ? unserialize(stripslashes($_COOKIE[$m_data_cookie])) : array();
if (strcasecmp((string)$sessiondata['username'],"Anonymous") <> 0) {
$m_phpBB2_auth = true;
$Author = (string)$sessiondata['username'];
#print "Session Data: " . (string)$sessiondata['username'] . "<br>";
}
}
function PhpBB2Auth($pagename, $level, $authprompt=true, $since=0) {
global $DefaultPasswords, $GroupAttributesFmt, $AllowPassword,
$AuthCascade, $FmtV, $AuthPromptFmt, $PageStartFmt, $PageEndFmt,
$AuthId, $AuthList, $NoHTMLCache, $m_phpBB2_auth;
## SMC: If we find an authenticated phpBB2 user continue with regular
## PmWiki auth check, if phpBB2 auth failed, stop check now
static $acache;
SDV($GroupAttributesFmt,'$Group/GroupAttributes');
SDV($AllowPassword,'nopass');
$page = ReadPage($pagename, $since);
if (!$page) { return false; }
if (!isset($acache))
SessionAuth($pagename, (@$_POST['authpw'])
? array('authpw' => array($_POST['authpw'] => 1))
: '');
if (@$AuthId) {
$AuthList["id:$AuthId"] = 1;
$AuthList["id:-$AuthId"] = -1;
$AuthList["id:*"] = 1;
}
$gn = FmtPageName($GroupAttributesFmt, $pagename);
if (!isset($acache[$gn])) {
$gp = ReadPage($gn, READPAGE_CURRENT);
foreach($DefaultPasswords as $k => $v) {
$x = array(2, array(), '');
$acache['@site'][$k] = IsAuthorized($v, 'site', $x);
$AuthList["@_site_$k"] = $acache['@site'][$k][0] ? 1 : 0;
$acache[$gn][$k] = IsAuthorized(@$gp["passwd$k"], 'group',
$acache['@site'][$k]);
}
}
foreach($DefaultPasswords as $k => $v)
list($page['=auth'][$k], $page['=passwd'][$k], $page['=pwsource'][$k]) =
IsAuthorized(@$page["passwd$k"], 'page', $acache[$gn][$k]);
foreach($AuthCascade as $k => $t) {
if ($page['=auth'][$k]+0 == 2) {
$page['=auth'][$k] = $page['=auth'][$t];
if ($page['=passwd'][$k] = $page['=passwd'][$t]) # assign
$page['=pwsource'][$k] = "cascade:$t";
}
}
if (@$page['=auth']['admin'])
foreach($page['=auth'] as $lv=>$a) @$page['=auth'][$lv] = 3;
if (@$page['=passwd']['read']) $NoHTMLCache |= 2;
# SMC: only allow page reads unless phpBB2 authenticated
if ($m_phpBB2_auth == true) {
if ($level=='ALWAYS' || @$page['=auth'][$level]) return $page;
}
if (strcasecmp ($level, "read") == 0) {
if ($level=='ALWAYS' || @$page['=auth'][$level]) return $page; # SMC: orig line
}
if (!$authprompt) return false;
$GLOBALS['AuthNeeded'] = (@$_POST['authpw'])
? $page['=pwsource'][$level] . ' ' . $level : '';
PCache($pagename, $page);
$postvars = '';
foreach($_POST as $k=>$v) {
if ($k == 'authpw' || $k == 'authid') continue;
$v = str_replace('$', '$',
htmlspecialchars(stripmagic($v), ENT_COMPAT));
$postvars .= "<input type='hidden' name='$k' value=\"$v\" />\n";
}
$FmtV['$PostVars'] = $postvars;
SDV($AuthPromptFmt,array(&$PageStartFmt,
"<p><b>$[Password required]</b></p>
<form name='authform' action='{$_SERVER['REQUEST_URI']}' method='post'>
$[Password]: <input tabindex='1' type='password' name='authpw'
value='' />
<input type='submit' value='OK' />$PostVars</form>
<script language='javascript' type='text/javascript'><!--
document.authform.authpw.focus() //--></script>", &$PageEndFmt));
PrintFmt($pagename,$AuthPromptFmt);
exit;
I hope someone can help, its been pulling my hair out for weeks.
regards
Edited by Mighty Gorgon, Sun 11 Oct, 2009 10:11: Title Edited |
#1 Sat 10 Oct, 2009 11:09 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: ICY Security - Login System
If the script is installed in the same root of Icy Phoenix you should add in the common file something like this code:
// CTracker_Ignore: File checked by human
define('MG_KILL_CTRACK', true);
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
// Start session management
$userdata = session_pagestart($user_ip);
init_userprefs($userdata);
// End session management
This will allow you to use Icy Phoenix auth system within your script.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Sat 10 Oct, 2009 12:51 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
 Re: ICY Security - Login System
It is not in the same folder as ICY Forum.
The Script i have:-
<?php
if (!defined('PmWiki') || !defined ('PhpbbRootPath')) {
exit ();
}
$RecipeInfo['AuthPhpbb2Sso']['Version'] = '080401';
$phpbb_root_path = PhpbbRootPath;
// Include the required phpBB files
define('IN_PHPBB', true);
define('MG_KILL_CTRACK', true); // Or the phpBB scripts will report a "hacking attempt"
include($phpbb_root_path . '/config.php');
require_once ($phpbb_root_path . '/includes/db.php'); // Define and instantiate the $db object
require_once ($phpbb_root_path . '/includes/constants.php'); // Get constants for table names etc.
require_once ($phpbb_root_path . '/includes/sessions.php'); // Functions for sessions
// Read the config table into the board_config array
$board_config = GetBoardConfig();
// To start a session we need the IP address of the client
$user_ip = encode_ip(( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') ));
// Now start a phpBB session
// Registered page number in the sessions table is -20. phpBB2 itself uses 0 till -11
$userdata = session_pagestart($user_ip, -20);
// We now have the $userdata array to play with, as per phpBB2. The array contains the user and session
// information from phpBB.
// Restrict admin pages to phpBB Administrators
SDV($PhpbbAdminGroup, 'siteadmin');
$DefaultPasswords['admin'] = '@' . $PhpbbAdminGroup;
// Suffix for group moderator groups
SDV ($PhpbbGroupModSuffix, 'Moderator');
// Set the author name as used by PMwiki. Author name will be set to 'anonymous' if the
// user is not signed in.
$Author = $userdata['username'];
// Populate variables for AuthUser. Only if the login succeeded, or the user
// will appear to AuthUser as an authenticated used named "anonymous".
if ($userdata['session_logged_in'] == 1) {
$AuthId = $userdata['username'];
AddPhpbbGroups($userdata['user_id']);
if ($userdata['user_level'] == 1) {
$AuthList ['@' . $PhpbbAdminGroup] = 1;
}
}
// Include AuthUser for authorization
require_once ("scripts/authuser.php");
// Set some variables that can be used in the PmWiki templates to visually integrate PmWiki and phpBB:
$SiteUrl = (($board_config['cookie_secure'] ) ? 'https://' : 'http://')
. trim($board_config['server_name'])
. (( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) : '');
$PhpbbUrl = $SiteUrl . '/' . preg_replace('/^\/?(.*?)\/?$/', "\1", trim($board_config['script_path']));
$PhpbbStyleName = PhpbbStyleInfo('style_name');
$PhpbbTemplate = PhpbbStyleInfo('template_name');
$PhpbbStylesheet = PhpbbStyleInfo('head_stylesheet');
// Inherit compression setting from phpBB
InheritGzip ();
// Handle clients with disabled cookies
if (append_sid('') != '') {
// Buffer the page and append the "sid=" parameter to all local urls after
// the page is complete. Contents of the page are passed through the
// AddSid() function before being send to the client.
ob_start('AddSid');
// Append sid to redirect URL after editing a page. This is passed through
// a header("Location ..."), which cannot be altered by the output buffering
// function AddSid().
$EditRedirectFmt = append_sid('$FullName');
}
// ------------------------------------------------------------------------------------------
//Functions
// Get and set time settings from phpBB:
// * Time and date format
// * Timezone
// * Set format of new entries in the RecentChanges page so new entries are localizable.
function UsePhpbbDateSettings () {
global $TimeFmt, $board_config, $userdata, $RecentChangesFmt;
// Time format, convert from date() to strfdate()
$dateformatcnv = array('d' => '%d', 'D' => '%a', 'j' => '%e', 'l' => '%A', 'N' => '%u',
'w' => '%w', 'W' => '%V', 'F' => '%B', 'm' => '%I', 'M' => '%b',
'n' => '%e', 'o' => '%G', 'Y' => '%Y', 'y' => '%y', 'a' => '%p',
'A' => '%p', 'g' => '%I', 'G' => '%H', 'h' => '%I', 'H' => '%H',
'i' => '%M', 's' => '%S', 'c' => '%Y-%I-%dT%H:%M:%S',
'r' => '%a, %e %b %Y %H:%M:%S');
if ($userdata['user_dateformat'] != '') {
$TimeFmt = strtr($userdata['user_dateformat'], $dateformatcnv);
}
else {
$TimeFmt = strtr($board_config['default_dateformat'], $dateformatcnv);
}
// Timezone
$timezone = -1 * $userdata['user_timezone'];
if ($timezone > 0) {
$timezone = "+$timezone";
}
putenv("TZ=Etc/GMT$timezone");
// Localizable new entries in RecentChanges pages.
$RecentChangesFmt['$SiteGroup.AllRecentChanges'] =
'* [[{$Group}.{$Name}]] . . . {(ftime when="@' . time() . '")} $[by] $AuthorLink: [=$ChangeSummary=]';
$RecentChangesFmt['$Group.RecentChanges'] =
'* [[{$Group}/{$Name}]] . . . {(ftime when="@' . time() . '")} $[by] $AuthorLink: [=$ChangeSummary=]';
$DraftRecentChangesFmt['$Group.RecentDraftChanges'] =
'* [[{$Group}/{$Name}]] . . . {(ftime when="@' . time() . '")} $[by] $AuthorLink: [=$ChangeSummary=]';
}
// Returns information about the theme to be used.
function PhpbbStyleInfo($item) {
global $db, $userdata, $board_config;
static $row;
if (!is_array ($row)) {
if ($userdata['session_logged_in'] == 1) {
$themes_id = $userdata['user_style'];
}
else {
$themes_id = $board_config['default_style'];
}
$sql = "SELECT template_name, head_stylesheet, style_name FROM " . THEMES_TABLE . " WHERE themes_id = $themes_id";
$rowset = $db->sql_query($sql);
$row = $db->sql_fetchrow($rowset) or die ("Error retrieving theme name");
}
return $row[$item];
}
// Read the board cofiguration from the database and pass back
// as an array.
function GetBoardConfig() {
global $db;
$sql = "SELECT * FROM " . CONFIG_TABLE;
$rowset = $db->sql_query($sql);
while ( $row = $db->sql_fetchrow($rowset) ) {
$board_config[$row['config_name']] = $row['config_value'];
}
return $board_config;
}
// Function to create a link to the members profile in the forum on wiki pages.
//
// This can be used with the [[~username]] markup. To activate, add the following line
// to your PmWiki local/config.php:
// Markup ('[[~', '<links','/\[\[~(.*?)\]\]/e', "PhpbbUserProfile('>
// Markup ('[[~', '<links','/\\[\\[~(.*?)\\]\\]/e', "PhpbbUserProfile('$1')");
<')");
function PhpbbUserProfile ($username) {
global $db, $PhpbbUrl, $phpEx;
// Double quotes are passed escaped (\"), but these are stored as """ in the database
$username = str_replace('\"', '"', $username);
$sql = "SELECT user_id
FROM " . USERS_TABLE . "
WHERE username = \"$username\"";
$rowset = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($rowset)) {
// Found the userID, now pass PmWiki link markup for further processing.
return "[[$PhpbbUrl/profile.$phpEx?mode=viewprofile&u=" . $row['user_id'] . " | $username]]";
}
else {
// If no member was found, just return the name.
return $username;
}
}
// Adds the phpBB group memberships to the $AuthList array
function AddPhpbbGroups($UserId) {
global $db, $AuthList, $PhpbbGroupModSuffix;
$result = array();
$sql = "SELECT g.group_name
, g.group_moderator
FROM " . GROUPS_TABLE . " g
, " . USER_GROUP_TABLE . " ug
WHERE ug.group_id = g.group_id
AND ug.user_id = $UserId
AND g.group_single_user = 0
AND user_pending = 0";
$rowset = $db->sql_query($sql);
while ( $row = $db->sql_fetchrow($rowset) ) {
$AuthList['@' . $row['group_name']] = 1;
if ($row['group_moderator'] == $UserId) {
$AuthList['@' . $row['group_name'] . $PhpbbGroupModSuffix] = 1;
}
}
}
// Output Buffer processor for clients with disabled cookies.
// Add the sesion identifier (sid=) to all links pointing to the local site.
// If the client disabled cookies, this function is called through the
// ob_start() function after the page is complete. The $content variable
// will contain the entire page.
function AddSid ($content) {
global $SiteUrl;
if ((strpos($content, "<meta http-equiv='Refresh'")) === FALSE) {
// Regular page, replace all links
$content = ProcessTag ($content, '<a ', "href='");
$content = ProcessTag ($content, '<form ', "action='");
}
else {
// Page from the Redirect() function, replace the link. The header
// will already be sent, this is handled by the $EditRedirectFmt var.
$content = ProcessTag ($content, "<meta http-equiv='Refresh'", 'URL=');
}
return $content;
}
// Process a specified tag to add the session identifier
function ProcessTag ($content, $tag, $parameter) {
global $SiteUrl;
// Split the page into an array, each element starting with the tag
$links = explode($tag, $content);
// Now process the array
for ($i = 0; $i < count($links); $i++)
{
$parstart = strpos($links[$i], $parameter);
if (! ($parstart === FALSE)) {
// Found a link
$linkstart = $parstart + strlen($parameter);
$linkend = strpos($links[$i], '\'', $linkstart);
$thelink = substr($links[$i], $linkstart, ($linkend - $linkstart) );
// Only replace links starting with our own URL
if (strpos($thelink, $SiteUrl) === 0 ) {
$links[$i] = substr($links[$i], 0, $linkstart) . append_sid($thelink) . substr($links[$i], $linkend);
}
}
}
// And implode back
return implode ($links, $tag);
}
// Inherit Gzip compression if set in phpBB.
// Code copied from phpbb: includes/page_header.php
function InheritGzip () {
global $board_config;
if ( $board_config['gzip_compress'] )
{
$phpver = phpversion();
$useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');
if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
{
if ( extension_loaded('zlib') )
{
ob_start('ob_gzhandler');
}
}
else if ( $phpver > '4.0' )
{
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
}
// Sets the $AuthPromptFmt variable, which is displayed when an attempt is made to access
// a page for which the client is not authorized. This function distinguishes between
// anonimous users and users signed in.
function RedirectOnDeny () {
global $userdata, $AuthPromptFmt, $PageStartFmt, $PageEndFmt, $PhpbbUrl
, $PhpbbUrl, $phpEx, $AuthPromptMemberFmt, $AuthPromptAnonymousFmt;
SDV ($AuthPromptMemberFmt, array(&$PageStartFmt, "<br><p>You are not authorized to access this page.</p><br>", &$PageEndFmt));
SDV ($AuthPromptAnonymousFmt, "<html><head>
<meta http-equiv='Refresh' Content='0; URL=$PhpbbUrl/login.$phpEx' />
<title>Redirect</title>
</head><body></body></html>");
if ($userdata['session_logged_in'] == 1) {
$AuthPromptFmt = $AuthPromptMemberFmt;
}
else {
$AuthPromptFmt = $AuthPromptAnonymousFmt;
}
}
// ------------------------------------------------------------------------------------------
// Functions hi-jacked from the phpBB includes/functions.php file.
// We cannot include the file itself, because it contains a function "redirect", which
// is already defined by pmWiki.
// Simplified message_die
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
die ($msg_text);
}
// Encode an IP address to hex
function encode_ip($dotquad_ip)
{
$ip_sep = explode('.', $dotquad_ip);
return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}
// Decode an IP address from hex
function decode_ip($int_ip)
{
$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
}
// Randomiser as used by the sessions.php script
function dss_rand()
{
global $db, $board_config, $dss_seeded;
$val = $board_config['rand_seed'] . microtime();
$val = md5($val);
$board_config['rand_seed'] = md5($board_config['rand_seed'] . $val . 'a');
if($dss_seeded !== true)
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . $board_config['rand_seed'] . "'
WHERE config_name = 'rand_seed'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Unable to reseed PRNG", "", __LINE__, __FILE__, $sql);
}
$dss_seeded = true;
}
return substr($val, 4, 16);
}
Is Giving me a hacking attempt message when tryng to access my wiki site, any ideas anyone ?
regards
Edited by DWho, Mon 12 Oct, 2009 13:23: added spoiler to post for easier reading |
#3 Sat 10 Oct, 2009 14:44 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: ICY Security - Login System
Forget that for now...
I have created 2 files for you and edited pmwiki.php for PMWIKI 2.2.6.
Here is what you have to do:
- Make a backup of your current pmwiki.php
- Download and extract the files in the archive attached here
- Edit ipwiki.php by adjusting the correct path to your pmwiki folder and upload that into your Icy Phoenix root folder
- Edit index.php by adjusting the correct path to your Icy Phoenix root folder
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', '../ip/');
- Upload both index.php and pmwiki.php to your PMWiki root folder
- Enjoy your "icyphoenixsessionized" PMWiki!

Please note that I have just forced only logged in users to be able to surf PMWiki pages, if you need just to remove the EDIT link or allow just some special features, you need to refer to PMWiki docs on how to do that... you will then just need to add a proper switch to allow only registered, moderators or administrators to access special sections, and you will do that just by using the same code you would use in Icy Phoenix... something like this for example:
if (!$userdata['session_logged_in'])
{
DO MY STUFF
}
Description: |
PM Wiki Icy Phoenix Integration |
 Download |
Filename: |
pmwiki_ip_integration_20091011.rar |
Filesize: |
21.98 KB |
Downloaded: |
211 Time(s) |
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Sun 11 Oct, 2009 10:09 |
|
Informpro 
Joined: October 2008
Posts: 1110
Location:
|
 Re: PM Wiki Integration With Icy Phoenix
Could be useful ... I think you could put in "customisation"
|
#5 Sun 11 Oct, 2009 10:55 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
 Re: PM Wiki Integration With Icy Phoenix
Thanks MG,
Problem i have found is that it allows me to view the wiki homepage but wont let me browse past that or edit any pages
if i log off and try to access id defaults me to my login page which is great.
just need to resolve the browsing away from the wiki homepage and editting.
Anyone ??
MG ??
UPDATE:---
I have removed the reference MG made in pmwiki.php
if (!defined('IN_ICYPHOENIX'))
{
header('Location: index.php');
}
I have had to take the code from index.php and insert it into the pmwiki.php file. with the ending of the index file at the bottom if you know what i mean MG.
i have included the new pmwiki file attached.
For those that are interested
PMWIKI can be found HERE
install it in a directory on the same level as IP
Download the attached pmwiki.php file and replace the one that came with the installation.
Find
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', '../ip/');
and correct the '../ip/' to point to your ip directory.
Set your config file found in yourwikihome/docs/sample-config and then save it as yourwikihome/local/config
yourwikihome is the name of the folder you have put the package into.
Lastly take the ipwiki.php file and put it in your IP root folder and edit it
Then all that remains is to create your wiki !!
Have fun anyone and MG thanks a bunch on the help ( even if you did do most of the work )
regards
UPDATE 2 :-
Hit a snag
Whet i edit a page and save it i get the
CBACK CrackerTracker has detected a potential attack on this site with a worm or exploit script so the Security System stopped the script.
message hows can i fix this ?
Description: |
Wiki and IP integration |
 Download |
Filename: |
IPwiki.rar |
Filesize: |
24.61 KB |
Downloaded: |
196 Time(s) |
Last edited by AndyGpy on Mon 12 Oct, 2009 07:14; edited 1 time in total |
#6 Sun 11 Oct, 2009 17:10 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: PM Wiki Integration With Icy Phoenix
check in crTracker log. witch file it is blocking and insert following code in the beginning of it
- // CTracker_Ignore: File checked by human
- define('MG_KILL_CTRACK', true);
____________ Out of Order
|
#7 Sun 11 Oct, 2009 22:56 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
 Re: PM Wiki Integration With Icy Phoenix
// CTracker_Ignore: File checked by human
define('CTRACKER_DISABLED', true);
is already in the offending file :-
Log :--- 2009/10/11 - 21:42 /ScotWiki/pmwiki.php?n=Site.SideBar?action=edit http://www.scotbird.co.uk/ScotWiki/...Bar?action=edit
|
#8 Sun 11 Oct, 2009 23:53 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: PM Wiki Integration With Icy Phoenix
// CTracker_Ignore: File checked by human
define('CTRACKER_DISABLED', true);
is already in the offending file :-
Log :--- 2009/10/11 - 21:42 /ScotWiki/pmwiki.php?n=Site.SideBar?action=edit http://www.scotbird.co.uk/ScotWiki/...Bar?action=edit
If i´m not wrong you´ve got to use the code i posted, replacing the one you´ve got. Cause i don´t think that the one you used, is accepted bu icy.
just give it a try. it wan´t hurt.
it should be
define('MG_KILL_CTRACK', true);
____________ Out of Order
|
#9 Mon 12 Oct, 2009 01:05 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
 Re: PM Wiki Integration With Icy Phoenix
I take my hat of to you Spydie, it looks like MG got his code wrong, now i am getting worried he is heading for a nervious breakdown !! LOL
UPDATE 3 -- Thanks to Spydie,
Find the Line in pmwiki.php:-
define('CTRACKER_DISABLED', true);
and replace with
define('MG_KILL_CTRACK', true);
I have updated the download file to reflect the changes in pmwiki.php
Description: |
Updated files - Now fully working |
 Download |
Filename: |
IPwiki.rar |
Filesize: |
24.61 KB |
Downloaded: |
195 Time(s) |
|
#10 Mon 12 Oct, 2009 07:11 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: PM Wiki Integration With Icy Phoenix
I take my hat of to you Spydie, it looks like MG got his code wrong, now i am getting worried he is heading for a nervious breakdown !! LOL
You are right... I'm having a breakdown!
If you check my first code I have posted the right CONSTANT, but when I tested the package on my local testing environment I had to use the new CONSTANT for latest development version, and that has been changed from MG_KILL_CTRACK which means nothing to CTRACKER_DISABLED which is self explaining.
Sorry for the error, I will remove my files and if everything is working, please create a new topic with full instructions and files to make PM Wiki work correctly.
Thanks.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#11 Mon 12 Oct, 2009 09:55 |
|
AndyGpy
Joined: October 2008
Posts: 191
Location:
|
 Re: PM Wiki Integration With Icy Phoenix
MG
As soon as i have fully finished testing i will post , i am in the process of exploring just now, hate to put a topic up and not have a bit of knowledge about it first.
regards
|
#12 Mon 12 Oct, 2009 18:09 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|