Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
daemon
Worker
Worker



Joined: Jan 07, 2005
Posts: 163

PostPosted: Sat Apr 08, 2006 11:55 am Reply with quote

I need a little guidance here on converting this php to a module, I have the module and all that added but seems theres a few errors within this to convert. any help would be appreciated.

Code:


<?
    include("somewhere/config.php");  ############this is a specific config outside the http dir ############
    include("functions.php"); ############this is a specific config outside the http dir ############
    $page_title = "Site Info";
    include("header.php");
?>

  <h1>Header</h1>
  <h2>Something Else</h2>
  <p class="small">info</p>
  <ol>
<?php
    $file = file($mydb_db);
    unset($file[0]);
    usort($file, 'cmp_level_desc');
    foreach ($file as $line) {
        list($user,,,$level,$class,$secs,,,$online) = explode("\t",trim($line));

        $class = htmlentities($class);
        $next_level = duration($secs);

        print "<li".(!$online?" class=\"offline\"":"")."><a".
              (!$online?" class=\"offline\"":"").
              " href=\"page.php?info=".urlencode($user).
              "\">".htmlentities($user).
              "</a>, the level $level $class. Next level in $next_level.</li>\n";

    }
?>
  </ol>
  <p>some text here :)</p>


<?include("footer.php")?>
 
View user's profile Send private message Visit poster's website AIM Address
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Apr 08, 2006 2:13 pm Reply with quote

It might help if you told us what the errors are Wink
 
View user's profile Send private message
daemon







PostPosted: Sat Apr 08, 2006 2:43 pm Reply with quote

hehe.....well its a blank screen atm.
 
daemon







PostPosted: Sat Apr 08, 2006 3:52 pm Reply with quote

can I send you a copy of what I have? gotta be something minor I missed redoing it
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©