 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
moocowcookie
Joined: 05 Mar 2004 Posts: 5
|
Posted: Fri Mar 05, 2004 2:44 pm Post subject: plugging commenter hack |
|
|
i have tried using Dodo's commenter.plugger.php hack, but i get the following error
Code: | Parse error: parse error in /home/s1mple/public_html/b2/b2header.php on line 83
Since you're a newcomer, you'll have to wait for an admin to raise your level to 1, in order to be authorized to post.
You can also e-mail the admin to ask for a promotion.
When you're promoted, just reload this page and you'll be able to blog. :)
Warning: main(/b2edit.showposts.php): failed to open stream: No such file or directory in /home/s1mple/public_html/b2/b2edit.php on line 336
Warning: main(): Failed opening '/b2edit.showposts.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/s1mple/public_html/b2/b2edit.php on line 336
Warning: main(/b2footer.php): failed to open stream: No such file or directory in /home/s1mple/public_html/b2/b2edit.php on line 342
Warning: main(): Failed opening '/b2footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/s1mple/public_html/b2/b2edit.php on line 342
|
any ideas what to do? |
|
Back to top |
|
 |
hazel
Joined: 20 Jan 2004 Posts: 34 Location: Philippines
|
Posted: Fri Mar 05, 2004 3:21 pm Post subject: |
|
|
paste the code or file that you modified and let me see it.. |
|
Back to top |
|
 |
moocowcookie
Joined: 05 Mar 2004 Posts: 5
|
Posted: Fri Mar 05, 2004 7:15 pm Post subject: |
|
|
this is my b2header.php file, which i think i modified right
Code: | <?php
require_once("b2config.php");
require_once($b2inc."/b2template.functions.php");
require_once($b2inc."/b2verifauth.php");
require_once($b2inc."/b2vars.php");
require_once($b2inc."/b2functions.php");
require_once($b2inc."/xmlrpc.inc");
require_once($b2inc."/xmlrpcs.inc");
if (!isset($use_cache)) $use_cache=1;
if (!isset($blogID)) $blog_ID=1;
if (!isset($debug)) $debug=0;
timer_start();
get_currentuserinfo();
$request = " SELECT * FROM $tablesettings ";
$result = mysql_query($request);
$querycount++;
while($row = mysql_fetch_object($result)) {
$posts_per_page=$row->posts_per_page;
$what_to_show=$row->what_to_show;
$archive_mode=$row->archive_mode;
$time_difference=$row->time_difference;
$autobr=$row->AutoBR;
$date_format=stripslashes($row->date_format);
$time_format=stripslashes($row->time_format);
}
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
if (($is_macIE) || ($is_lynx))
$use_quicktags=0;
$b2varstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
for ($i=0; $i<count($b2varstoreset); $i += 1) {
$b2var = $b2varstoreset[$i];
if (!isset($$b2var)) {
if (empty($HTTP_POST_VARS["$b2var"])) {
if (empty($HTTP_GET_VARS["$b2var"])) {
$$b2var = '';
} else {
$$b2var = $HTTP_GET_VARS["$b2var"];
}
} else {
$$b2var = $HTTP_POST_VARS["$b2var"];
}
}
}
if ($standalone == 0) {
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>b2 > <?php echo $title; ?></title>
<link rel="stylesheet" href="<?php echo $b2inc; ?>/b2.css" type="text/css">
<style type="text/css">
<!--
<?php
if (!$is_NS4) {
?>
td.menutop {
padding-top: 2px;
padding-bottom: 2px;
border-color: #999999;
border-top-width: 1px;
border-bottom-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
border-style: dashed;
}
textarea,input,select {
background-color: #f0f0f0;
border-width: 1px;
border-color: #cccccc;
border-style: solid;
padding: 2px;
margin: 1px;
}
.checkbox {
<?php
if ((preg_match("/MSIE/",$HTTP_USER_AGENT)) &amp;amp;amp;amp;&amp;amp;amp;amp; (!preg_match("/Mac/",$HTTP_USER_AGENT))) {
?> background-color: #ffffff;
border-width: 0px;
padding: 0px;
margin: 0px;
}
<?php
}
}
?>
-->
</style>
<?php
if ($use_spellchecker) {
?><script type="text/javascript" language="javascript">
<!--
function DoSpell(formname, subject, body)
{
document.SPELLDATA.formname.value=formname
document.SPELLDATA.subjectname.value=subject
document.SPELLDATA.messagebodyname.value=body
document.SPELLDATA.companyID.value="custom\\http://cafelog.com"
document.SPELLDATA.language.value=1033
document.SPELLDATA.opener.value="<?php echo $pathserver ?>/sproxy.pl"
document.SPELLDATA.formaction.value="http://www.spellchecker.com/spell/startspelling.asp "
window.open("<?php echo $pathserver ?>/b2spell.php","Spell",
"toolbar=no,directories=no,location=yes,resizable=yes,width=620,height=400,top=100,left=100")
}
//-->
</script><?php
}
if ($redirect==1) {
?>
<script language="javascript">
<!--
function redirect() {
window.location = "<?php echo $redirect_url; ?>";
}
setTimeout("redirect();", 600);
//-->
</script>
<?php
}
?>
<script language="javascript">
<!-- hiding from old terrible browsers
function profile(userID) {
window.open ("b2profile.php?action=viewprofile&amp;amp;amp;amp;user="+userID, "Profile", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60");
}
function commenter() {
window.open ("b2commenter.plugger.php", "Commenter", "width=550, height=500, location=0, menubar=0, resizable=1, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60");
}
var copytoclip=0
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
function preview(form) {
var preview_date = "<?php echo date("Y-m-d H:i:s"); ?>";
var preview_userid = "<?php echo $user_ID ?>";
var preview_title = form.post_title.value;
var preview_category = form.post_category.value;
var preview_content = form.content.value;
var preview_autobr = form.post_autobr.value;
preview_date = escape(preview_date);
preview_userid = escape(preview_userid);
preview_title = escape(preview_title);
preview_category = escape(preview_category);
preview_content = escape(preview_content);
preview_autobr = escape(preview_autobr);
window.open ("<?php echo "$siteurl/$blogfilename" ?>?preview=1&amp;amp;amp;amp;preview_date="+preview_date +"&amp;amp;amp;amp;preview_userid="+preview_userid +"&amp;amp;amp;amp;preview_title="+preview_title +"&amp;amp;amp;amp;preview_category="+preview_category +"&amp;amp;amp;amp;preview_content="+preview_content +"&amp;amp;amp;amp;preview_autobr="+preview_autobr ,"Preview", "location=0,menubar=1,resizable=1,scrollbars=yes,status=1,toolbar=0");
}
function launchupload() {
window.open ("b2upload.php", "b2upload", "width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0");
}
// End -->
</script>
</head>
<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellpadding="0" cellspacing="0" align="center">
<?php
if ($profile==0) {
?>
<tr height="60">
<td valign="top">
<?php include($b2inc."/b2menutop.php") ?>
</td>
</tr><tr>
<?php
}
?>
<td valign="top">
<img src="b2-img/blank.gif" border="0" width="35" height="24" />
<div class="panelbody">
<?php
}
?>
|
and my b2menutop.php file
Code: | <img src="b2-img/blank.gif" width="1" height="5" alt="" border="0" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr height="15">
<td height="15" width="20"><img src="b2-img/blank.gif" width="1" height="1" alt="" /></td>
<td rowspan="3" width="50" valign="top"><a href="http://cafelog.com/"><img src="b2-img/b2minilogo.png" width="50" height="50" border="0" alt="visit b2's website" style="border-width:1px; border-color: #999999; border-style: dashed" /></a></td>
<td><img src="b2-img/blank.gif" width="1" height="1" alt="" /></td>
<td width="150" style="text-align: right; padding-rightt: 6px;">
<span style="color: #b0b0b0; font-family: verdana, arial, helvetica; font-size: 10px;">logged in as : <b><?php echo $user_login; ?></b></span>
</td>
</tr>
<tr>
<td class="menutop" width="20">
</td>
<td class="menutop"<?php if ($is_NS4) { echo " width=\"500\""; } ?>>
<div class="menutop"<?php if ($is_NS4) { echo " width=\"500\""; } ?>>
<?php if ($is_NS4) { echo $HTTP_USER_AGENT; } ?>
<?php $sep = " | "; ?>
<a href="b2edit.php" class="menutop" style="-font-weight: bold;">Post / Edit</a><?php echo $sep ?><a href="javascript:commenter()" class="menutop">Commenter Plugger</a><?php echo $sep ?></a><?php echo $sep ?><a href="javascript:profile(<?php echo $user_ID ?>)" class="menutop">My Profile</a><?php echo $sep ?><a href="b2team.php" class="menutop">Team</a><?php
if ($pagenow != "b2profile.php") {
$menu = file($b2inc."/b2menutop.txt");
$i=0;
$j=$menu[0];
while ($j != "") {
$k = explode("\t",$j);
if ($user_level >= $k[0]) {
echo "$sep<a href=\"".$k[1]."\" class=\"menutop\">".trim($k[2])."</a>";
}
$i=$i+1;
$j=$menu[$i];
if (trim($j) == "***")
$j="";
}
}
?>
</div>
</td>
<td width="150" class="menutop" align="right" bgcolor="#FF9900">
<a href="<?php echo $siteurl."/".$blogfilename; ?>" class="menutop">View site</a>
<?php echo $sep; ?>
<a href="b2login.php?action=logout" class="menutop">Logout</a>
</td>
</tr>
<tr>
<td> </td>
<td style="padding-left: 6px;"><span class="menutoptitle">:: <?php echo $title; ?></span></td>
<td> </td>
</tr>
</table>
|
|
|
Back to top |
|
 |
moocowcookie
Joined: 05 Mar 2004 Posts: 5
|
Posted: Sun Mar 07, 2004 12:16 am Post subject: |
|
|
anyone???
please!??! |
|
Back to top |
|
 |
|
|
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 2 © 2001, 2002 phpBB Group
|