1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pro,s

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

  1. yoyoo

    yoyoo New Member

    Joined:
    Oct 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    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

    Joined:
    Oct 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    dont know
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    The code should not be changed.
     
  4. yoyoo

    yoyoo New Member

    Joined:
    Oct 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    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