<?php /** * * Fianaise | lliure 7.x * * @Versão 1.0 * @Desenvolvedor Jeison Frasson <*****@*****.**> * @Entre em contato com o desenvolvedor <*****@*****.**> http://www.newsmade.com.br/ * @Licença http://opensource.org/licenses/gpl-license.php GNU Public License * */ jf_update(PREFIXO . 'fianaise', array('status' => $_GET['status'] == 1 ? "0" : "1"), array('id' => $_GET['id'])); header('location: ' . $_ll['app']['home']);
$sql = 'select a.id as id_view, a.data_view, b.id, b.link, b.var_id, b.data, c.nome, c.img, ti.sql, ti.texto from ' . PREFIXO . 'notificacoes_view a left join ' . PREFIXO . 'notificacoes b on a.notificacao = b.id left join ' . PREFIXO . 'usuario_conta c on b.user = c.id left join ' . PREFIXO . 'notificacoes_tipo ti on b.tipo = ti.id where a.user = '******'user']['id'] . ' and ti.id = "7" and a.data_view is null'; $query = mysql_query($sql); while ($dados = mysql_fetch_assoc($query)) { jf_update(PREFIXO . 'notificacoes_view', array('data_view' => time()), array('id' => $dados['id_view'])); } ?> <script type="text/javascript"> $('#pepoAdd').html('<img src="<?php echo $shdir; ?> imagens/home/ico_add_0.png" alt="" />'); </script> <?php break; } /* else require_once('modal.php');*/
<?php switch (isset($_GET['ac']) ? $_GET['ac'] : 'default') { case 'eldoni': $_POST['descricao'] = nl2p($_POST['descricao']); jf_update(PREFIXO . 'comunidade', $_POST, array('id' => $cmdd['id'])); header('location: ' . $shHome . $cmdd['id']); break; default: header('location: ' . $shHome . $cmdd['id']); break; case 'hubs': case 'addhub': case 'delhub': case 'peshub': require_once 'onserverHubs.php'; break; }
<?php /** * * myteam * * @Versão 1.0 * @Licença http://opensource.org/licenses/gpl-license.php GNU Public License * */ if (!empty($_POST) && isset($_GET['id'])) { $apigem = new api(); $apigem->iniciaApi('fileup'); $file = new fileup(); $file->diretorio = '../uploads/myteam/'; $file->up(); echo jf_update(appTabela, $_POST, array('id' => $_GET['id'])); header('location:' . $_ll['app']['home']); }
<?php switch (isset($_GET['ac']) ? $_GET['ac'] : 'default') { case 'pes': $pes = ''; if (!empty($_POST['pes'])) { $pes = '/pes=' . str_replace(' ', '+', urlencode(mb_strtolower($_POST['pes']))); } header('location: ' . $shHome . $_GET[1] . '/membros' . $pes); break; case 'estingi': if ($cmdd['adm']) { $dados = mysql_fetch_assoc(mysql_query('select * from ' . PREFIXO . 'usuario_comunidade where id = "' . $_GET['m'] . '" limit 1')); if ($dados['comunidade'] == $cmdd['id']) { jf_update(PREFIXO . 'usuario_comunidade', array('status' => 'E'), array('id' => $_GET['m'])); } } header('location: ' . $shHome . $_GET[1] . '/membros'); break; default: break; }
<?php switch (isset($_GET['ac']) ? $_GET['ac'] : '') { case 'part': jf_insert(PREFIXO . 'usuario_comunidade', array('usuario' => $this->user['id'], 'comunidade' => $this->cmdd['id'])); header('location: ' . $this->home . '&sapm=comunidade&cmd=' . $this->cmdd['id']); break; case 'deixar': jf_delete(PREFIXO . 'usuario_comunidade', array('usuario' => $this->user['id'], 'comunidade' => $this->cmdd['id'])); header('location: ' . $this->home . '&sapm=comunidade&cmd=' . $this->cmdd['id']); break; case 'post': jf_insert(PREFIXO . 'comunidade_mensagens', array('data' => time(), 'topico' => $_GET['topico'], 'user' => $this->user['id'], 'mensagem' => $_POST['mensagem'])); header('location: ' . $this->home . '&sapm=comunidade&sapm=forum&cmd=' . $this->cmdd['id'] . '&topico=' . $_GET['topico'] . '&pag=ultima'); break; case 'editar': if ($this->cmdd['adm']) { jf_update(PREFIXO . 'comunidade', array('descricao' => $_POST['descricao']), array('id' => $this->cmdd['id'])); } header('location: ' . $this->home . '&sapm=comunidade&cmd=' . $this->cmdd['id']); break; case 'topico_novo': global $jf_ultimo_id; jf_insert(PREFIXO . 'comunidade_topicos', array('criador' => $this->user['id'], 'data' => time(), 'comunidade' => $_GET['cmd'], 'nome' => $_POST['titulo'])); $topico = $jf_ultimo_id; jf_insert(PREFIXO . 'comunidade_mensagens', array('data' => time(), 'topico' => $topico, 'user' => $this->user['id'], 'mensagem' => $_POST['mensagem'])); header('location: ' . $this->home . '&sapm=comunidade&sapm=forum&cmd=' . $this->cmdd['id'] . '&topico=' . $topico); break; }