Exemple #1
0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
require "headers.php";
include "upper.php";
print '<h2>' . $chat_map[$lang] . '</h2>';
print '<small>' . $chat_select[$lang] . '</small><br><br>';
if ($_POST['chat_map']) {
    $con_map = decode_url_simple($_POST['chat_map'], $token, $url_key);
} elseif ($_GET['chat_map']) {
    $con_map = decode_url_simple($_GET['chat_map'], $token, $url_key);
}
// this is tempory workaround.
$contact_list = "select a.nick, a.jid, b.grp from rosterusers a left outer join rostergroups b on (a.jid=b.jid and a.username=b.username) where a.username='******' and a.nick !='' order by lower(a.nick)";
$res = pg_query($bazaj, $contact_list);
if (!$res) {
    print "Ooops...";
    pg_close($bazaj);
    exit;
}
print '<form action="chat_map.php" method="post" name="chat_map_form">' . "\n";
print '<span style="padding-right: 20px">' . $chat_m_select[$lang] . '</span>' . "\n";
print '<select id="c_map" style="text-align: center; border: 0px; background-color: #6daae7; color:#fff; font-size: x-small;" name="chat_map" size="0" onchange="javascript:document.chat_map_form.submit();">' . "\n";
print '<option value="null">' . $chat_c_list[$lang] . '</option>';
for ($lt = 0; $lt < pg_numrows($res); $lt++) {
    $name = pg_result($res, $lt, 0);
        success: function() { 
            $('#fav_result').fadeIn('slow'); 
        } 
    }); 
});
</script>

<?php 
print '<h2>' . $cal_head[$lang] . '</h2>';
print '<small>' . $cal_notice[$lang] . '. <a href="main.php?set_pref=1&v=1"><u>' . $change_view[$lang] . '</u></a></small><br><br>';
// fetch some get and posts
if (isset($_GET['left'])) {
    $left = decode_url_simple($_GET['left'], $token, $url_key);
}
if (isset($_GET['right'])) {
    $right = decode_url_simple($_GET['right'], $token, $url_key);
}
$jump_to = $_POST['jump_box'];
$resource_id = mysql_escape_string($_GET['b']);
// validate resource_id
if (!ctype_digit($resource_id)) {
    unset($resource_id);
}
$start = $_GET['start'];
if ($jump_to != "") {
    $mo = $jump_to;
}
if ($mo == "jump") {
    unset($mo);
}
$e_string = mysql_escape_string($_GET['a']);
Exemple #3
0
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
require "headers.php";
$tigger = $_POST['trigger'];
$aaa = mysql_escape_string($_POST['aaa']);
$datat = mysql_escape_string(decode_url_simple($_POST['datat'], $token, $url_key));
$desc = mysql_escape_string($_POST['desc']);
$peer_user = mysql_escape_string(decode_url_simple($_POST['peer_user'], $token, $url_key));
$peer_server = mysql_escape_string(decode_url_simple($_POST['peer_server'], $token, $url_key));
$del = $_GET['del'];
$link_id = mysql_escape_string($_GET['link_id']);
// some validation
if (!ctype_digit($user_id)) {
    print 'Ooops...';
    exit;
}
if ($peer_user) {
    if (!ctype_digit($peer_user)) {
        print 'Ooops...';
        exit;
    }
}
if ($peer_server) {
    if (!ctype_digit($peer_server)) {