Jump to content

Update users points on forum when requesting a map


dfwcomputer

Recommended Posts

hi all,

we have a game server and a website.The website runs php nuke and has a points sytem, so when you post you slowly gain points.I want a page so people can request different maps for the game server.....but on doing so will take away 1000 points from them....

this is what i have come up with.....

[code]
<html>
<head>
<title>Map Request</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/styles.css" type="text/css">
<meta name="description" content="PHP Support Ticket System">
<meta name="abstract" content="Support Ticket System">
<meta name="keywords" content="Support Ticket System,PHP,Support Ticket,Custom PHP Scripts,Suppport,Tickett,Support system">
<meta http-equiv="Content-Language" content="EN">
<meta name="author" content="Cross Walk Central">
<meta name="distribution" content="Global">
<meta name="copyright" content="©Cross Walk Central">
<meta name="robots" content="FOLLOW,INDEX">
</head>
<?php
/************************************************************************/
/*                                                                      */
/* Copyright (c) 2001-2002 by CrossWalkCentral                          */
/* http://www.crosswalkcentral.net                                      */
/*                                                                      */
/* CrossWalkCentral                                                    */
/* You Web Hosting Community!                                          */
/*                                                                      */
/* Let us customize this script for you.                                */
/*                                                                      */
/* Please let us know what you think of the Support Ticket System    */
/* at http://www.crosswalkcentral.net/modules.php?name=Forum            */
/*                          */
/* This program is free software.              */
/*                            */
/* DOWNLOAD SUPPORT TICKET SYSTEM PRO FOR 20USD AT        */
/*        HTTP://WWW.CROSSWALKCENTRAL.NET        */
/*                          */
/************************************************************************/

if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}

include("header.php");
include("config.php");
        //CUSTOM ACCESS BY POINTS - MJ HUFFORD -
Register or login to view links on this board.

  global $userinfo;
customized_access_points($userinfo['points'], 1000);  //WHERE 1000 = MIN POINTS TO ACCESS MODULE
 
// Some definitions
global $user, $db, $cookie, $prefix, $anonymous, $dbi, $user_prefix, $points ,$username, $stop, $module_name, $redirect, $mode, $t, $f, $admin, $userinfo, $nukeurl, $startdate;

$db->sql_query("UPDATE ".$prefix."_users SET points = '$points' WHERE username = '$username'");


    $content = "";
getusrinfo($user);
cookiedecode( $user );
$ip = getenv( "REMOTE_ADDR" );
$username = $cookie[1];
if ( !isset( $username ) )
{
  $username = "$ip";
  $guest = 1;
}



?>

<h3 align="center"><b><font face="Garamond">Map Request</font></b></h3>
<FORM ACTION = "modules.php??op=modload&name=mapreq&file=supportsys" METHOD = "POST">
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td width="30%">Email Address:</td>
            <td width="74%">
              <input type="text" name="custemail" maxlength="55" size ="46">
            </td>
          </tr>
          <tr>
            <td width="30%">First Name:</td>
            <td width="74%">
              <input type="text" name="custfname" size="46" maxlength="55">
            </td>
          </tr>
          <tr>
            <td width="30%">Last Name:</td>
            <td width="74%">
              <input type="text" name="custlname" size="46" maxlength="55">
            </td>
          </tr>
          <tr>

      <td width="30%">Map:</td>
            <td width="74%">
              <div align="left">
                <select name="custcatergory" size="1">
                  <option>Bridge</option>
                  <option>Pipeline</option>
                  <option>Dusk</option>
                  <option>Insurgent Camp</option>
                </select>
              </div>
            </td>
          </tr>
          <tr>
            <td width="30%">Reason for map change?:</td>
            <td width="74%">
              <textarea name="custpdes" cols="50%" rows="6"></textarea>
            </td>
          </tr>
          <tr>
            <td width="30%"></td>
            <td width="74%">
              <input type="submit" name="Submit" value="Submit">
            </td>
          </tr>
        </table>
  <p>&nbsp;</p></form>
<?php
include ('footer.php');
?>
</body>
</html>
[/code]

can anyone see whats wrong with this.....as it outputs Object50WGFHNjnaxdkjfwjlrujllgHRRDTVykbihkhykig

Thanks


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.