11
cavergary
Add New Block - Content type php script HELP
  • 2006/10/13 22:43

  • cavergary

  • Just popping in

  • Posts: 16

  • Since: 2005/3/30


I've been trying to add a new block with the following php script. I drop this code in the content block and set the content type to php script. All I get is the block name in the preview. The block does not show on the site at all! Any ideas?
<?
//-----------------------------------------------------
//------COUNT DOWN TIMER-------------------------------
//-----------------------------------------------------


// enter start date below like this: "January 2, 2001"
$end "May 6, 2007";
// enter string of what this start date is.
$text "until the conference!";
$textOnTheDay "G'07 begins today!!!";
$textAfterwards "Check out the procedings.";

//--------------------------
$now strtotime ("now");
$then strtotime ("$end");
$difference $then $now;
$num $difference/86400;
$days intval($num);
$num2 = ($num $days)*24;
$hours intval($num2);
$num3 = ($num2 $hours)*60;
$mins intval($num3);
$num4 = ($num3 $mins)*60;
$secs intval($num4);

if (
$days>|| $hours>|| $minutes>|| $seconds>0) {
?>
<p>
<? echo $days ?> days, 
<? echo $hours ?> hours, 
<? echo $mins ?> minutes, 
<? echo $secs ?> seconds 
<? echo $text ?>
</p>
<? } else if (($days==0) && ($hours<=|| $minutes<=|| $seconds<=0)) { ?>
<p><? echo $textOnTheDay ?><p>
<? } else { ?>
<p> <? echo $textAfterwards ?></p>
<? ?>



12
cavergary
Re: mySQL user account configuration
  • 2006/10/10 18:00

  • cavergary

  • Just popping in

  • Posts: 16

  • Since: 2005/3/30


All priviliges would be the same as root. Do you really want full root access? I mean think of the possibilities! I can't believe that is really the best security posture.



13
cavergary
mySQL user account configuration
  • 2006/10/6 15:49

  • cavergary

  • Just popping in

  • Posts: 16

  • Since: 2005/3/30


I would be interested in what grants the mySQL user account should have for the reasonable operation of Xoops.
Options include:
Select Insert Update Delete Create Drop Reload Shutdown Process File Grant References Index Alter


I'm sure Grant is not good and Shutdown too. But the others?



14
cavergary
System Admin Themes
  • 2006/10/6 15:42

  • cavergary

  • Just popping in

  • Posts: 16

  • Since: 2005/3/30


I would love to replace the default system admin theme. The standard theme is driving me insane with the annoying flyout boxes. I can find a never ending list of front end themes, but I'm not seeing any for the backend. Help please!



15
cavergary
Re: 2.0 to 2.2.2 upgrade. Where is the file
  • 2005/8/23 17:45

  • cavergary

  • Just popping in

  • Posts: 16

  • Since: 2005/3/30


AMEN! I've been looking back here for a week now for just such an upgrade path. I read another post that seem to indicate that going from 2.2 to 2.2.2 was not wise or possible. Is 2.2 a dead end install???

HELP!




TopTop
« 1 (2)



Login

Who's Online

166 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits