Stats: 3,171,860 members, 7,883,021 topics. Date: Sunday, 07 July 2024 at 09:24 PM |
Nairaland Forum / Phantomcat's Profile / Phantomcat's Posts
(1) (2) (of 2 pages)
![]() |
Hi guys Namzo, Adjain and Artboy send me a mail i might have a job for you guys. send ma a mail a tosan@eagle8consulting.com if you are iinterested. |
![]() |
this is the source code from one of the pages. <?php require_once('Connections/gidox.php'); ?> <?php //initialize the session if (!isset($_SESSION)) { session_start(); } // ** Logout the current user. ** $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true"; if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "" ![]() $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true" ![]() //to fully log out a visitor we need to clear the session varialbles $_SESSION['MM_Username'] = NULL; $_SESSION['MM_UserGroup'] = NULL; $_SESSION['PrevUrl'] = NULL; unset($_SESSION['MM_Username']); unset($_SESSION['MM_UserGroup']); unset($_SESSION['PrevUrl']); $logoutGoTo = "logout.php"; if ($logoutGoTo) { header("Location: $logoutGoTo" ![]() exit; } } ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, start by assuming the visitor is NOT authorized. $isValid = False; // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. // Therefore, we know that a user is NOT logged in if that Session variable is blank. if (!empty($UserName)) { // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. // Parse the strings into arrays. $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true; } // Or, you may restrict access to only certain users based on their username. if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "" ![]() $isValid = true; } } return $isValid; } $MM_restrictGoTo = "sorry.php"; if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER['PHP_SELF']; if (strpos($MM_restrictGoTo, "?" ![]() if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) $MM_referrer .= "?" . $QUERY_STRING; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location: ". $MM_restrictGoTo); exit; } ?> <?php mysql_select_db($database_gidox, $gidox); $query_news = "SELECT * FROM news ORDER BY `no` ASC"; $news = mysql_query($query_news, $gidox) or die(mysql_error()); $row_news = mysql_fetch_assoc($news); $totalRows_news = mysql_num_rows($news); $colname_user = "-1"; if (isset($_SESSION['ID'])) { $colname_user = (get_magic_quotes_gpc()) ? $_SESSION['ID'] : addslashes($_SESSION['ID']); } mysql_select_db($database_gidox, $gidox); $query_user = sprintf("SELECT * FROM reg WHERE ID = %s", $colname_user); $user = mysql_query($query_user, $gidox) or die(mysql_error()); $row_user = mysql_fetch_assoc($user); $totalRows_user = mysql_num_rows($user); // Trim by length (by FELIXONE.it) function TrimByLength($str, $len, $word) { $end = ""; if (strlen($str) > $len) $end = ", "; $str = substr($str, 0, $len); if ($word) $str = substr($str,0,strrpos($str," " ![]() return $str.$end; } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Go-GO Global member downline</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="images/BrightSide1.css" type="text/css" /> <style type="text/css"> <!-- .style3 {color: #CC0000; font-weight: bold; } .style4 { color: #000099; font-style: italic; } .style5 {color: #330000} .style1 { color: #6297BC; font-weight: bold; } --> </style> </head> <body> <!-- wrap starts here --> <div id="wrap"> <div id="header"> <h1 id="logo">Gidok<span class="green"> Global</span><span class="gray"> Enterpise</span></h1> <h2 id="slogan">, giving you a lift.</h2> <!-- Menu Tabs --> <ul> <li><a href="index.html"><span>Home</span></a></li> <li><a href="admin_area.php"><span>About</span></a></li> <li><a href="registration.php"><span>Register</span></a></li> <li><a href="support.php"><span>Support</span></a></li> <li><a href="contact.php"><span>Contact</span></a></li> </ul> </div> <!-- content-wrap starts here --> <div id="content-wrap"> <img src="images/headerphoto.jpg" width="820" height="120" alt="headerphoto" class="no-border" /> <div id="sidebar" > <h1> </h1> <ul class="sidemenu"> <li><a href="index.html">Home</a></li> <li><a href="about.php">About us </a></li> <li><a href="registration.php">Register</a></li> <li><a href="<?php echo $logoutAction ?>"> Logout</a></li> <li><a href="services.php">Services</a></li> </ul> <h1>Wise Words</h1> <p>"Men are disturbed, not by the things that happen, but by their opinion of the things that happen."</p> <p class="align-right">- Epictetus</p> </div> <div id="main"> <h1>Gato <span class="green">Investment <span class="gray">Project</span> </span></h1> <table width="100%" border="1" cellspacing="1" cellpadding="1"> <tr> <td colspan="2"><strong>Welcome <span class="style5"> <?php if ($totalRows_user > 0) { // Show if recordset not empty ?> <?php /*START_PHP_SIRFCIT*/ if ($row_user['ID']=="-1" ![]() <?php echo $row_user['firstname']; ?> <?php } /*END_PHP_SIRFCIT*/ ?> <?php } // Show if recordset not empty ?> <?php if ($totalRows_user > 0) { // Show if recordset not empty ?> <?php echo $row_user['surname']; ?> <?php } // Show if recordset not empty ?></span></strong></td> </tr> <tr> <td colspan="2"><div align="center" class="style4">Below is the status of your downline </div></td> </tr> <tr> <td width="33%"><span class="style3">First Stage </span></td> <td width="67%"> </td> </tr> <tr> <td><span class="style3">Second Stage </span></td> <td> </td> </tr> <tr> <td><span class="style3">Third Stage </span></td> <td> </td> </tr> <tr> <td><span class="style3">Forth Stage </span></td> <td> </td> </tr> <tr> <td><span class="style3">Fifth Stage </span></td> <td> </td> </tr> <tr> <td><span class="style3">Sixth Stage </span></td> <td> </td> </tr> <tr> <td><span class="style3">Seventh Stage </span></td> <td> </td> </tr> </table> <p> </p> </div> <div id="rightbar"> <h1>News</h1> <table width="100%" border="1" cellspacing="1" cellpadding="1"> <tr> <td><?php do { ?> <table width="100%" border="1" cellspacing="1" cellpadding="1"> <tr> <td valign="top"><p><span class="style1"><?php echo $row_news['subject']; ?></span> <?php echo $row_news['date']; ?> <?php echo TrimByLength($row_news['news_details'], 100, true); ?></p> </td> </tr> </table> <?php } while ($row_news = mysql_fetch_assoc($news)); ?></td> </tr> </table> <h1> </h1> </div> <!-- content-wrap ends here --> </div> <!-- footer starts here --> <div id="footer"> <div class="footer-left"> <p class="align-left"> © 2008 <strong>Gidok Global Enterprise </strong> | Design by <a href="http://www.robertrover.com/">Robert Rover Ent.</a></p> </div> </div> <!-- footer ends here --> <!-- wrap ends here --> </div> </body> </html> <?php mysql_free_result($news); mysql_free_result($user); ?> expecting ur reply
|
![]() |
guys i need some help here. I am working on a php mysql job, the issue I've created an app that i want to use session variables for. so that when a user logs in, he will be identified sitewide. i am working with dreamweaver. though i have put in the server behaviours on the pages it is not showing the loged in user details. please i am open for suggestions |
![]() |
Please is anyone hosting with nairahost.com? i have been having issues connection to my database and their support is not responding on the issue so please if anyone hosting on nairahost.com has connected successfully to a database on nairahost, please let me know the method you used. |
![]() |
thanks guys and lady I appreciate. |
![]() |
guys i am having an issue connecting to mysql database, do any one have a sample php connection string to database |
![]() |
Guys pls I need help on this one. I'm working on a project with dreamweaver CS3 using PHP and MySQL Database, all was goin well until i tried building a form to insert record, this error pops up. Error at line 646 of file "C:\Program Files\Adobe\Adobe Dreamweaver CS3\Configuration\Server Behaviors\PHP_MySQL\InsertRecord.js TypeError: name has no proberties I'm stuck here, I'm open to suggestions |
![]() |
Guys is there a form to mail script with sms alert. |
![]() |
Guys i need help on this issue, I'm new to databases, i developed a site using asp and access database and i want to migrate to SQL. On my local machine i have exported the database to SQL and tested it, the question is how do i move the SQL database to the hosting server? How do i locate the script to upload in SQL? |
![]() |
Thanks Smartsoft. i will try them i need it badly. |
![]() |
Guys I have been trying to use php with my dreamweaver to access my sql database but it keep telling me sql is not supported in my server module. I'm using a IIS server on my desktop. I have followed the dreamweaver help to the last but its still not connecting. I need some help on this one. |
![]() |
guys there is this form i did for www.hospitalityafric.com this is the link http://www.hospitalityafric.com/spirit%20of%20hospitality%20registration.html i am hopping that some one will be able to put me tru cos all that i av don keep bringing out error message or an option to download the php script i wrote. |
![]() |
guy nice one i see u are improving keep it up. but the logo is not really clear, the nav on the left is not too clear it would be better with a mouse over effect. and some more pics would make it a little lighter. but its a good one |
![]() |
Is any one on GTA vice city now i'm stuck on a particular stage anmd cant move |
![]() |
just got a job and will need some help. how is the online notification coded for either msn, yahoo, or other instant messanger services just as we have on nairaland? pls some one help |
![]() |
Guys no mind the guy he just ey hussle for the job like every one else. but there should be professionalism too. i will keep tabs on that site to see the magic that is about to happen. |
![]() |
One thing i like about niaraland is the amout of resource available. This is a big thanks to you netzymes i am reviewing all replyes to this post. i will tell u when to check for changes. |
![]() |
Thanks Garuba i dont think its harsh. According to tradition it is those that listen that grow. thanks i will check the points highlighted. |
![]() |
Apart fdrom the landing page what else is wrong? just want specifics so i will know what to correct. |
![]() |
the thing is how can i get it to you. the option is that u can download the trial version and get the crack ore serial at keygen.us. before u go there make sure ur antivirus is up to date |
![]() |
Just go to Ikeja there are screensavers creators there. i cant remember one now but u will get one there |
![]() |
Thanks guys it really was my first ![]() ![]() ![]() |
![]() |
Guys check this one out www.eagle8consulting.com tell me what u think. |
![]() |
Thanks prodigalson i am doin the download of both i will get back to you and tell you which is better. |
![]() |
just saw the aflax option, so how do i use it my2cents? |
![]() |
Hey guys as usual i am back to the best resource center online ![]() ![]() |
![]() |
now this is one of the badest contribution ever made on this forum thanks guys i'll surely make use of them. |
![]() |
Masters dont say they are masters. i checked it out its cool, i will try the css image thing. and try reducing the flash on my site. sometimes its hard walkin the thin line between beauty and effectiveness. thanks Bro |
![]() |
guy abeg what would it take to do it i am open to all ideas. |
![]() |
Thanks guys i guess i will just av to allow iot lie till it expires. props to u my2cents. |
![]() |
Sometime we have no choice especially when cliensts ask for it. I actually enjoy the smiles on their faces when they experience a mouse over pop up in a demo. You give the client what they want. |
![]() |
Deregistring A Domain Name. Is It Possible? I want to remove a domain name from the net. Is this possible? |
(1) (2) (of 2 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 61 |