projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for enlarge with IE
[brisk.git]
/
web
/
Obj
/
brisk.phh
diff --git
a/web/Obj/brisk.phh
b/web/Obj/brisk.phh
index
69ba914
..
f9de838
100644
(file)
--- a/
web/Obj/brisk.phh
+++ b/
web/Obj/brisk.phh
@@
-80,10
+80,10
@@
$G_lng = "";
// $G_lng = "_en";
$G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 );
// $G_lng = "_en";
$G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 );
-$G_brisk_version = "2.1.
7
- trusty";
+$G_brisk_version = "2.1.
8
- trusty";
/* MLANG: ALL THE INFO STRINGS IN brisk.phh */
/* MLANG: ALL THE INFO STRINGS IN brisk.phh */
-$root_wellarr = Array ( 'Brisk (Ver. '.$G_brisk_version.'), <b>NOVITA\'</b>:
menu comandi, filtro opzionale sui non autenticati e "return bug" corretto
.',
+$root_wellarr = Array ( 'Brisk (Ver. '.$G_brisk_version.'), <b>NOVITA\'</b>:
Sponsor alternati, menĂ¹ rivisto, AUTO-GARANZIE, sondaggi quasi ultimati
.',
'Se vuoi iscriverti alla <a target="_blank" href="http://www.milug.org/cgi-bin/mailman/listinfo/ml-briscola">Mailing List</a>, cliccala!' );
$G_room_help= '
'Se vuoi iscriverti alla <a target="_blank" href="http://www.milug.org/cgi-bin/mailman/listinfo/ml-briscola">Mailing List</a>, cliccala!' );
$G_room_help= '
@@
-160,6
+160,33
@@
$G_room_about= '<br>
Copyright 2006-2008 <a href=\\"mailto:brisk@alternativeoutput.it\\">Matteo Nastasi</a> (aka mop)<br><br>';
Copyright 2006-2008 <a href=\\"mailto:brisk@alternativeoutput.it\\">Matteo Nastasi</a> (aka mop)<br><br>';
+function csplitter($in, $sep)
+{
+ $st = 0;
+ $id = 0;
+ $out = array();
+
+ for ($i = 0 ; $i < strlen($in) ; $i++) {
+ if ($st == 0) {
+ if ($in{$i} == '\\')
+ $st = 1;
+ else if ($in{$i} == $sep) {
+ $id++;
+ }
+ else {
+ $out[$id] .= $in{$i};
+ }
+ }
+ else if ($st == 1) {
+ $out[$id] .= $in{$i};
+ $st = 0;
+ }
+ }
+
+ return ($out);
+}
+
+
function xcape($s)
{
$from = array ( '\\', '@', '|' );
function xcape($s)
{
$from = array ( '\\', '@', '|' );
@@
-2460,7
+2487,7
@@
class Warrant {
return (FALSE);
}
if (sem_acquire($res)) {
return (FALSE);
}
if (sem_acquire($res)) {
- log_lock("LOCK
room
");
+ log_lock("LOCK
warrant
");
return ($res);
}
else
return ($res);
}
else
@@
-2471,11
+2498,40
@@
class Warrant {
{
GLOBAL $sess;
{
GLOBAL $sess;
- log_lock("UNLOCK
room
");
+ log_lock("UNLOCK
warrant
");
return (sem_release($res));
}
return (sem_release($res));
}
+}
+class Poll {
+ function lock_data()
+ {
+ GLOBAL $sess;
+
+ if (($tok = @ftok(FTOK_PATH."/poll", "B")) == -1) {
+ return (FALSE);
+ }
+ // echo "FTOK ".$tok."<br>";
+ if (($res = sem_get($tok)) == FALSE) {
+ return (FALSE);
+ }
+ if (sem_acquire($res)) {
+ log_lock("LOCK poll");
+ return ($res);
+ }
+ else
+ return (FALSE);
+ }
+ function unlock_data($res)
+ {
+ GLOBAL $sess;
+
+ log_lock("UNLOCK poll");
+
+ return (sem_release($res));
+ }
}
}
+
?>
?>