1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

pro,s

Discussion in 'PHP' started by yoyoo, Oct 11, 2007.

  1. yoyoo

    yoyoo New Member

    hi guy's am looking for someone to help me with some php code how can one change coce that runs on a linux platform to a windows platforrm
     
  2. yoyoo

    yoyoo New Member

    dont know
     
  3. shabbir

    shabbir Administrator Staff Member

    The code should not be changed.
     
  4. yoyoo

    yoyoo New Member

    php code problem

    <?php
    /* A collection of commonly used functions in OnLib */

    require_once("conf.php");
    function clean($input,$maxlength)
    {
    $input=substr($input,0,$maxlength);
    $input=Escapeshellcmd($input);
    return $input;
    }
    function showerror()
    {?>
    <html><body><p><p><p><p><p><p> <?
    die("Error " . mysql_errno() . " : " . mysql_error());
    }
    function isadmin()
    {
    if($_SESSION['bo_id'] != "ADMIN")
    {
    global $wwwroot;
    include("style.html");
    ?>
    <html><head><title>Must Be admin</title>
    <meta http-equiv="Refresh"
    content="5 ; URL=<?=$wwwroot?>/userf/login.php">
    </head>
    <br><br><center>
    <font color="brown"><h4>Only Administerators Can Access This Page</h4></font>
    <br>You will be redirected to <a href="<?=$wwwroot?>/userf/login.php">Login Page</a> in 5 seconds
    </center></body></html>

    <?
    exit;
    }
    }


    ?>
     

Share This Page