예제 #1
0
파일: onserver.php 프로젝트: jomadee/hub
     break;
 case 'pes':
     $pes = '';
     if (!empty($_POST['pesquisa'])) {
         $pes = '/pes=' . str_replace(' ', '+', urlencode(mb_strtolower($_POST['pesquisa'])));
     }
     header('location: ' . $shHome . $_GET[1] . '/forum' . $pes);
     break;
 case 'envi':
     $apigem = new api();
     $apigem->iniciaApi('sciigo');
     $inser['topico'] = $_GET[3];
     $inser['user'] = $_SESSION['sh']['id'];
     $inser['mensagem'] = $_POST['mensagem'];
     $inser['data'] = time();
     if ($erro = jf_insert(PREFIXO . 'comunidade_mensagens', $inser)) {
         echo $erro;
     }
     $query = mysql_query('select * from ' . PREFIXO . 'comunidade_mensagens where topico =  "' . $_GET[3] . '" and user != "' . $_SH['user']['id'] . '" order by id desc limit 12');
     while ($dados = mysql_fetch_assoc($query)) {
         $view[] = $dados['user'];
     }
     $not = new sciigo();
     $not->tipo = 8;
     $not->link = 'comunidade/' . $_GET[1] . '/forum/' . $_GET[3] . '/pag=ultima';
     $not->view = $view;
     $not->var_id = $_GET[1];
     $not->ekig();
     header('location: ' . $shHome . $_GET[1] . '/forum/' . $_GET[3]);
     break;
 case 'dele':
예제 #2
0
파일: header.php 프로젝트: jomadee/myteam
<?php

/**
*
* myteam
*
* @Versão 1.0
* @Desenvolvedor Jeison Frasson <*****@*****.**>
* @Entre em contato com o desenvolvedor <*****@*****.**> http://www.lliure.com.br/
* @Licença http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('appTabela', PREFIXO . 'myteam');
if (isset($_GET['id']) && empty($_GET['id'])) {
    jf_insert(appTabela);
    header('location: ' . $_ll['app']['home'] . '&id=' . $jf_ultimo_id);
    die;
}
$apigem = new api();
$apigem->iniciaApi('navigi');
$apigem->inicia('tags');
예제 #3
0
        $server = str_replace('\\', '/', $_SERVER['SERVER_NAME']);
        $server = substr($server, -1) == '/' ? substr($server, 0, strlen($server) - 1) : $server;
        self::$local = 'http://' . str_replace($_SERVER['DOCUMENT_ROOT'], $server, str_replace('\\', '/', dirname(__FILE__))) . '/';
    }
    function form()
    {
        echo '<form method="post" action="' . self::$local . 'include.php" class="fne_form">' . (isset($_GET['fne_rt']) ? '<div class="fne_retorno">Depoimento enviado com sucesso!</div>' : '') . '<input type="hidden" value="' . $this->retorno . '" name="retorno">' . '<fieldset>' . '<div class="fne_nome">' . '<label>' . $this->nome . '<label>' . '<input name="nome" type="text"/>' . '</div>' . (!$this->email ? '' : '<div class="fne_email">' . '<label>' . $this->email . '<label>' . '<input name="email" type="text"/>' . '</div>') . (!$this->complemento ? '' : '<div class="fne_complemento">' . '<label>' . $this->complemento . '<label>' . '<input name="complemento" type="text"/>' . '</div>') . '<div class="fne_mensagem">' . '<label>' . $this->mensagem . '<label>' . '<textarea name="texto"></textarea>' . '</div>' . '</fieldset>' . '<span class="botao"><button type="submit">Enviar</button></span>' . '</form>';
        if (!$this->retorno) {
            echo '<script>alert("Defina um retorno para o formulário de depoimentos")</script>';
        }
    }
    function lista($limit = 10)
    {
        $lista = mysql_query('select * from ' . PREFIXO . 'fianaise where status = 1 order by id desc limit ' . $limit);
        while ($depoimento = mysql_fetch_assoc($lista)) {
            echo '<div class="fne_nome">' . '<div class="fne_topo">' . '<span class="fne_nome">' . $depoimento['nome'] . '</span>' . (!empty($depoimento['complemento']) ? '<span class="fne_complemento">' . $depoimento['complemento'] . '</span>' : '') . '</div>' . '<div class="fne_mensagem">' . $depoimento['texto'] . '</div>' . '</div>';
        }
    }
}
if (isset($_POST['texto'])) {
    require_once '../../../etc/bdconf.php';
    require_once '../../../includes/jf.funcoes.php';
    if (strstr($_POST['retorno'], '?') != false) {
        $retorno = $_POST['retorno'] . '&';
    } else {
        $retorno = $_POST['retorno'] . '?';
    }
    unset($_POST['retorno']);
    jf_insert(PREFIXO . 'fianaise', $_POST);
    header('location: ' . $retorno . 'fne_rt=ok');
}
예제 #4
0
파일: onserver.php 프로젝트: jomadee/hub
<?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;
}
예제 #5
0
        echo $shOnserver, $_GET[1];
        ?>
/editar/ac=addhub/cmd=' + id);

				$("#filtro").val("");

				$('.lista').html('').css('display', 'none');

			}
			
		</script>

		<?php 
        break;
    case 'addhub':
        if ($erro = jf_insert(PREFIXO . 'comunidade_hubs', array('hub' => addslashes($_GET['cmd']), 'comunidade' => addslashes($_GET[1]), 'data' => time()))) {
            echo $erro;
        }
        $sql = '
			SELECT
				a.id, a.nome, a.imagem as img
			FROM
				' . PREFIXO . 'hub a

				JOIN
					' . PREFIXO . 'comunidade_hubs b
				ON
					b.hub = a.id

			WHERE
				b.id = "' . $jf_ultimo_id . '"