Common questions

4.4K
.
seg0ro
Let Mortal Kombat begin
Common ?-s about modifications, addons are welcomed here...
.
Any someone have grabber for johnCMS ???
Game, video, Software, Music ,Dll...
Please share ...
I'm need it...
.
figol, only russian sites..
.
INDONESIA
what is the use and function
of
the code ($_SESSION['...'] like
as it is here:
$goal = ($_SESSION['goal'] ? $_
SESSION['goal'] : '0');
$attempt = ($_SESSION
['attempt'] ? $_SESSION
['attempt'] : '0');
$graph = $_SESSION['graph'];
switch ($act){
.
Let Mortal Kombat begin
all game is based on session, so all data kept in it.
So in the top of my script are default settings and defines of the data. Understand?
.
CaptainAslam
INDONESIA
seg0ro (28.09.2010/16:47)
all game is based on session, so all data kept in it.
So in the top of my script are default settings and defines of the data. Understand?
hmm.... Now what the function of 0, like this: $_
SESSION['goal'] : '0'); , and what the function of switch ($act){ like on this: $graph = $_SESSION['graph'];
switch ($act){
.
Let Mortal Kombat begin
$_SESSION['goal'] : '0' - it keeps the number of goals if exist
switch ($act) it switch the action (what to do).
What do you want to do?
.
INDONESIA
seg0ro (29.09.2010/04:31)
$_SESSION['goal'] : '0' - it keeps the number of goals if exist
switch ($act) it switch the action (what to do).
What do you want to do?
case'graph'; , break; , whats that?

case'graph';
if ($graph)
$_SESSION['graph'] = 0;
else
$_SESSION['graph'] = 1;
header ("Location: penalty.php");
break;
.
Let Mortal Kombat begin
case graph is turning the pictures on/off

tell me please, what do you want to do?
.
why this site can't translate by google...
Всего: 123