50 |
} |
} |
51 |
|
|
52 |
$user_authed++; |
$user_authed++; |
|
|
|
53 |
$sql_where=""; // don't limit output to authed users |
$sql_where=""; // don't limit output to authed users |
54 |
} else { |
} else { |
55 |
if ($cookie_data == $pliva_si_user) $user_authed++; |
if ($cookie_data == $pliva_si_user) { |
56 |
|
$user_authed++; |
57 |
|
$sql_where=""; // don't limit output to authed users |
58 |
|
} |
59 |
} |
} |
60 |
$smarty->assign("user_authed",$user_authed); |
$smarty->assign("user_authed",$user_authed); |
61 |
|
|
80 |
|
|
81 |
#include("debug.inc"); |
#include("debug.inc"); |
82 |
|
|
|
function check_required() { |
|
|
global $inputs_required; |
|
|
global $inputs_required_type; |
|
|
$ok=1; |
|
|
if (isset($inputs_required)) { |
|
|
foreach ($inputs_required as $i) { |
|
|
if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0; |
|
|
switch (strtolower($inputs_required_type[$i])) { |
|
|
case 'email': |
|
|
if (!strstr($GLOBALS[$i],'@')) $ok=0; |
|
|
} |
|
|
# print "$i: $GLOBALS[$i] type: $inputs_required_type[$i] $ok --<br>\n "; |
|
|
|
|
|
} |
|
|
} else { |
|
|
print "<!-- no inputs required -->"; |
|
|
} |
|
|
return $ok; |
|
|
} |
|
|
|
|
83 |
?> |
?> |