From: <be...@us...> - 2012-08-13 04:32:04
|
Revision: 10062 http://xoops.svn.sourceforge.net/xoops/?rev=10062&view=rev Author: beckmi Date: 2012-08-13 04:31:53 +0000 (Mon, 13 Aug 2012) Log Message: ----------- Adding RW-Banner Added Paths: ----------- XoopsModules/rw_banner/ XoopsModules/rw_banner/branches/ XoopsModules/rw_banner/releases/ XoopsModules/rw_banner/releases/1.50/ XoopsModules/rw_banner/trunk/ XoopsModules/rw_banner/trunk/rw_banner/ XoopsModules/rw_banner/trunk/rw_banner/LEIAME.TXT XoopsModules/rw_banner/trunk/rw_banner/LISEZMOI.TXT XoopsModules/rw_banner/trunk/rw_banner/README.TXT XoopsModules/rw_banner/trunk/rw_banner/admin/ XoopsModules/rw_banner/trunk/rw_banner/admin/about.php XoopsModules/rw_banner/trunk/rw_banner/admin/admin.php XoopsModules/rw_banner/trunk/rw_banner/admin/admin_header.php XoopsModules/rw_banner/trunk/rw_banner/admin/exibe.php XoopsModules/rw_banner/trunk/rw_banner/admin/import.php XoopsModules/rw_banner/trunk/rw_banner/admin/index.php XoopsModules/rw_banner/trunk/rw_banner/admin/inser.php XoopsModules/rw_banner/trunk/rw_banner/admin/insercateg.php XoopsModules/rw_banner/trunk/rw_banner/admin/insertag.php XoopsModules/rw_banner/trunk/rw_banner/admin/menu.php XoopsModules/rw_banner/trunk/rw_banner/admin/myblockform.php XoopsModules/rw_banner/trunk/rw_banner/admin/myblocksadmin.php XoopsModules/rw_banner/trunk/rw_banner/admin/mygroupperm.php XoopsModules/rw_banner/trunk/rw_banner/admin/mygrouppermform.php XoopsModules/rw_banner/trunk/rw_banner/admin/upgrade.php XoopsModules/rw_banner/trunk/rw_banner/blocks/ XoopsModules/rw_banner/trunk/rw_banner/blocks/ajaxbanner.php XoopsModules/rw_banner/trunk/rw_banner/blocks/banner.php XoopsModules/rw_banner/trunk/rw_banner/blocks/dropinbanner.php XoopsModules/rw_banner/trunk/rw_banner/blocks/estatisticas.php XoopsModules/rw_banner/trunk/rw_banner/blocks/lightboxbanner.php XoopsModules/rw_banner/trunk/rw_banner/blocks/popadbanner.php XoopsModules/rw_banner/trunk/rw_banner/class/ XoopsModules/rw_banner/trunk/rw_banner/class/FlashHeader.php XoopsModules/rw_banner/trunk/rw_banner/class/about.php XoopsModules/rw_banner/trunk/rw_banner/class/class.banner.php XoopsModules/rw_banner/trunk/rw_banner/class/class.categoria.php XoopsModules/rw_banner/trunk/rw_banner/class/class.tags.php XoopsModules/rw_banner/trunk/rw_banner/class/mimetypes.inc.php XoopsModules/rw_banner/trunk/rw_banner/conta_click.php XoopsModules/rw_banner/trunk/rw_banner/css/ XoopsModules/rw_banner/trunk/rw_banner/css/lightbox.css XoopsModules/rw_banner/trunk/rw_banner/docs/ XoopsModules/rw_banner/trunk/rw_banner/docs/LEIAME.TXT XoopsModules/rw_banner/trunk/rw_banner/docs/function_bbcode_xoops2015.txt XoopsModules/rw_banner/trunk/rw_banner/docs/function_bbcode_xoops2015_french.txt XoopsModules/rw_banner/trunk/rw_banner/docs/header.php_com_hack_rwbanner.txt XoopsModules/rw_banner/trunk/rw_banner/docs/header.php_com_hack_rwbanner_french.txt XoopsModules/rw_banner/trunk/rw_banner/images/ XoopsModules/rw_banner/trunk/rw_banner/images/asc.gif XoopsModules/rw_banner/trunk/rw_banner/images/bg.gif XoopsModules/rw_banner/trunk/rw_banner/images/close.gif XoopsModules/rw_banner/trunk/rw_banner/images/delete.gif XoopsModules/rw_banner/trunk/rw_banner/images/desc.gif XoopsModules/rw_banner/trunk/rw_banner/images/edit.gif XoopsModules/rw_banner/trunk/rw_banner/images/friend.gif XoopsModules/rw_banner/trunk/rw_banner/images/icon/ XoopsModules/rw_banner/trunk/rw_banner/images/icon/close12.gif XoopsModules/rw_banner/trunk/rw_banner/images/icon/open12.gif XoopsModules/rw_banner/trunk/rw_banner/images/left_both.gif XoopsModules/rw_banner/trunk/rw_banner/images/loading.gif XoopsModules/rw_banner/trunk/rw_banner/images/off.gif XoopsModules/rw_banner/trunk/rw_banner/images/on.gif XoopsModules/rw_banner/trunk/rw_banner/images/right_both.gif XoopsModules/rw_banner/trunk/rw_banner/images/rwbanner.fla XoopsModules/rw_banner/trunk/rw_banner/images/rwbanner.swf XoopsModules/rw_banner/trunk/rw_banner/images/slogo.gif XoopsModules/rw_banner/trunk/rw_banner/images/view.gif XoopsModules/rw_banner/trunk/rw_banner/images/wait.gif XoopsModules/rw_banner/trunk/rw_banner/include/ XoopsModules/rw_banner/trunk/rw_banner/include/bbcode.php XoopsModules/rw_banner/trunk/rw_banner/include/blocksadmin.inc.php XoopsModules/rw_banner/trunk/rw_banner/include/functions.php XoopsModules/rw_banner/trunk/rw_banner/include/getajaxbanner.php XoopsModules/rw_banner/trunk/rw_banner/include/gtickets.php XoopsModules/rw_banner/trunk/rw_banner/include/maketags.php XoopsModules/rw_banner/trunk/rw_banner/index.php XoopsModules/rw_banner/trunk/rw_banner/inser.php XoopsModules/rw_banner/trunk/rw_banner/js/ XoopsModules/rw_banner/trunk/rw_banner/js/effects.js XoopsModules/rw_banner/trunk/rw_banner/js/lightbox.js XoopsModules/rw_banner/trunk/rw_banner/js/prototype.js XoopsModules/rw_banner/trunk/rw_banner/js/scriptaculous.js XoopsModules/rw_banner/trunk/rw_banner/language/ XoopsModules/rw_banner/trunk/rw_banner/language/english/ XoopsModules/rw_banner/trunk/rw_banner/language/english/admin.php XoopsModules/rw_banner/trunk/rw_banner/language/english/blocks.php XoopsModules/rw_banner/trunk/rw_banner/language/english/index.html XoopsModules/rw_banner/trunk/rw_banner/language/english/main.php XoopsModules/rw_banner/trunk/rw_banner/language/english/modinfo.php XoopsModules/rw_banner/trunk/rw_banner/language/french/ XoopsModules/rw_banner/trunk/rw_banner/language/french/admin.php XoopsModules/rw_banner/trunk/rw_banner/language/french/blocks.php XoopsModules/rw_banner/trunk/rw_banner/language/french/index.html XoopsModules/rw_banner/trunk/rw_banner/language/french/main.php XoopsModules/rw_banner/trunk/rw_banner/language/french/modinfo.php XoopsModules/rw_banner/trunk/rw_banner/language/italian/ XoopsModules/rw_banner/trunk/rw_banner/language/italian/admin.php XoopsModules/rw_banner/trunk/rw_banner/language/italian/blocks.php XoopsModules/rw_banner/trunk/rw_banner/language/italian/index.html XoopsModules/rw_banner/trunk/rw_banner/language/italian/main.php XoopsModules/rw_banner/trunk/rw_banner/language/italian/modinfo.php XoopsModules/rw_banner/trunk/rw_banner/language/portuguesebr/ XoopsModules/rw_banner/trunk/rw_banner/language/portuguesebr/admin.php XoopsModules/rw_banner/trunk/rw_banner/language/portuguesebr/blocks.php XoopsModules/rw_banner/trunk/rw_banner/language/portuguesebr/index.html XoopsModules/rw_banner/trunk/rw_banner/language/portuguesebr/main.php XoopsModules/rw_banner/trunk/rw_banner/language/portuguesebr/modinfo.php XoopsModules/rw_banner/trunk/rw_banner/sql/ XoopsModules/rw_banner/trunk/rw_banner/sql/mysql.sql XoopsModules/rw_banner/trunk/rw_banner/templates/ XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/ XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/block_ajax_banner.html XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/block_banner.html XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/block_dropin_banner.html XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/block_estatisticas_banner.html XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/block_lightbox_banner.html XoopsModules/rw_banner/trunk/rw_banner/templates/blocks/block_popad_banner.html XoopsModules/rw_banner/trunk/rw_banner/xoops_version.php Added: XoopsModules/rw_banner/trunk/rw_banner/LEIAME.TXT =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/LEIAME.TXT (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/LEIAME.TXT 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,166 @@ +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Rodrigo Pereira Lima (BrInfo - Solu\xE7\xF5es Web) // +// Site: http://www.brinfo.com.br // +// Project: RW-Banner // +// Descri\xE7\xE3o: Sistema de gerenciamento de m\xEDdias publicit\xE1rias // +// ------------------------------------------------------------------------- // + +[b]DESCRI\xC7\xC3O:[/b] +=============================== +M\xF3dulo xoops de gerenciamento e exibi\xE7\xE3o de banners rand\xF4micos, que pode ser usado ou n\xE3o em conjunto com o sistema de banners padr\xE3o do xoops. + +O objetivo deste m\xF3dulo \xE9 propiciar ao administrador do site um m\xE9todo organizado, robusto e eficiente para gerenciar m\xEDdias e espa\xE7os publicit\xE1rios em seu site. + +[b]CARACTERISTICAS:[/b] +=============================== +- Cadastro de Banners. +- Cadastro de Categorias de banners. +- Cadastro de modelos de banners. +- Cadastro de Tags de banners. +- Cadastro de clientes de banners. +- 5 modelos de exibi\xE7\xE3o de banners. Inlcuindo blocos em Ajax. +- Todos os blocos s\xE3o clon\xE1veis. +- Bloco para est\xE1tisticas do cliente e seus banners. +- Ativa\xE7\xE3o/desativa\xE7\xE3o de banner com 1(um) clique do mouse. +- Banners inativos podem continuar no banco de dados. +- Criar Tag\xB4s Smarty para uso em seu tema, m\xF3dulos, blocos e conte\xFAdo. +- Cliente pode verificar a situa\xE7\xE3o de seus banners quando logado no site. +- O cliente poder\xE1 fazer ajustes em seus banners (se o administrador do site permitir) +- Envia e-mail de comunica\xE7\xE3o aos clientes sobre est\xE1tisticas de seus banners. +- V\xE1rias modalidades de utiliza\xE7\xE3o rand\xF4micas. +- Voc\xEA poder\xE1 criar conjuntos de banners intercalados por grupos. +- Aceita e exposi\xE7\xE3o de mais de um banner nos blocos. + +[b]FUNCIONALIDADES:[/b] +=============================== +- Cadastramento de banners separados por categorias e clientes, estas categorias s\xE3o usadas para diferenciar os tamanhos dos banners, fazendo assim com que se possa criar diversos modelos de exibi\xE7\xE3o dos banners. Os clientes s\xE3o os usu\xE1rios cadastrados no site, na hora de cadastrar um banner \xE9 obrigat\xF3rio vincul\xE1-lo a um usu\xE1rio. + +- 5 modelos de blocos para exibi\xE7\xE3o de banners clon\xE1veis e com diversas configura\xE7\xF5es, deixando a crit\xE9rio do administrador do m\xF3dulo escolher quantos banners rand\xF4micos deseja que seja exibido, qual a categoria de banners exibir e ainda a op\xE7\xE3o de se criar uma tabela para a exibi\xE7\xE3o dos banners, bastando selecionar em quantas colunas os mesmos ser\xE3o exibidos. + +- Bloco de Estat\xEDsticas do Cliente. Neste bloco \xE9 mostrado uma tabela com as principais estat\xEDsticas de todos os banners do cliente. + +- Op\xE7\xE3o de ativa\xE7\xE3o e dasativa\xE7\xE3o do banner com apenas um clique. Somente banners ativos ser\xE3o exibidos, por\xE9m os banners inativos continuam na base, possibilitando que os mesmos sejam ativados novamente a qualquer momento. + +- Al\xE9m dos blocos de exibi\xE7\xE3o de banners, tamb\xE9m \xE9 pos\xEDvel utilizar o banner rand\xF4mico no tema do site ou em qualquer p\xE1gina que se deseje, bastando para isso acescentar a vari\xE1vel smarty <{$rw_banner}> ou qualquer outra que voce desejar criar. N\xE3o existe limite para a sua criatividade e (esta funcionalidade requer um pequeno hack no core do xoops que ser\xE1 explicado abaixo no proceso de instala\xE7\xE3o). + +- P\xE1gina de Estat\xEDsticas do Cliente. Na p\xE1gina principal do m\xF3dulo \xE9 exibida uma tabela com todas as estat\xEDsticas dos banners do cliente logado no site. Ainda nesta p\xE1gina o cliente tem a op\xE7\xE3o de enviar as estat\xEDsticas do banner para o email cadastrado no site, e caso o o administrador permita, voc\xEA mesmo poder\xE1 alterar algumas informa\xE7\xF5es do seu banner. + +- Exibi\xE7\xE3o de banners randomicos ou n\xE3o nos textos de outros m\xF3dulos. Agora voc\xEA poder\xE1 exibir seus banners em qualquer m\xF3dulo que aceite bbcodes. Voc\xEA poder\xE1 publicar banners em not\xEDcias, artigos, p\xE1ginas de conte\xFAdo est\xE1tico, inclusive em posts de f\xF3rum. (esta funcionalidade requer um pequeno hack no core do xoops que ser\xE1 explicado abaixo no proceso de instala\xE7\xE3o). + +[b]INSTALA\xC7\xC3O:[/b] +=============================== +A instala\xE7\xE3o do m\xF3dulo \xE9 bem simples pois \xE9 igual a qualquer m\xF3dulo padr\xE3o xoops. Para ativar a fun\xE7\xE3o de exibi\xE7\xE3o de banners rand\xF4micos no tema do site voc\xEA precisa fazer um pequeno hack no core do xoops, mais especificamente no arquivo header.php, localizado na raiz de seu site. + +Para incluir o hack, abra o arquivo XOOPS_ROOT_PATH/header.php e no final dele acrescente, antes de } ?>, o c\xF3digo abaixo: + +[code] +####################################################################################### +#### Hack by rw-banner +#### Cria vari\xE1veis smarty para exibir banner no tema do site e nos templates +####################################################################################### +$mod = XoopsModule::getByDirname("rw_banner"); +if ($mod){ + include_once (XOOPS_ROOT_PATH.'/modules/rw_banner/include/maketags.php'); +} +####################################################################################### +#### Fim do Hack by rw-banner +####################################################################################### +[/code] +Pronto, voc\xEA ativou a fun\xE7\xE3o de TAGS SMARTY do m\xF3dulo. Na administra\xE7\xE3o do m\xF3dulo voc\xEA poder\xE1 criar, editar, alterar o status e apagar as TAGS. Toda vez que desejar exibir seu banner rand\xF4mico, seja no tema do site ou nos templates dos m\xF3dulos, basta criar uma tag para o modelo de publicidade desejado e coloc\xE1-la em seu tema ou template. + +Para ativar a nova fun\xE7\xE3o de exibi\xE7\xE3o de banners dentro de textos (em conte\xFAdos do site) ou seja, dentro de outros m\xF3dulos ou blocos do site, voc\xEA precisa incluir um pequeno hack no core do xoops, no arquivo XOOPS_ROOT_PATH/class/module.textsanitizer.php + +Para incluir o hack, abra o arquivo XOOPS_ROOT_PATH/class/module.textsanitizer.php e procure pela fun\xE7\xE3o xoopsCodeDecode, no final dela voc\xEA dever\xE1 colocar o c\xF3digo abaixo: +[code] +####################################################################################### +#### Hack by rw-banner +#### Permite a exibi\xE7\xE3o de banners randomicos em qualquer m\xF3dulo que aceite bbcodes +####################################################################################### +$mod = XoopsModule::getByDirname("rw_banner"); +if ($mod){ + include(XOOPS_ROOT_PATH.'/modules/rw_banner/include/bbcode.php'); +} +####################################################################################### +#### Fim do Hack by rw-banner +####################################################################################### +[/code] +Para facilitar o entendimento, dentro da pasta docs do m\xF3dulo voc\xEA encontrar\xE1 a fun\xE7\xE3o xoopsCodeDecode j\xE1 hackeada, basta seguir o exemplo e aplicar o hack no seu arquivo. + +Depois de fazer o hack, para exibir os banners nos seus textos basta criar as tags na administra\xE7\xE3o do m\xF3dulo do mesmo jeito que que se cria as tags para exibi\xE7\xE3o no tema do site ou nos templates dos m\xF3dulos. + +Quando j\xE1 tiver suas tags criadas, basta ir ao m\xF3dulo que desejar exibir os banners e no campo de texto (Tem que aceitar bbcodes!! neste m\xF3dulo para funcionar corretamente) inserir a tag da mesma forma que no tema do site por exemplo. + +A \xFAnica diferen\xE7a \xE9 na sintaxe de declara\xE7\xE3o da tag. + +Veja abaixo os exemplos: + +Vamos supor que voc\xEA tenha a TAG publicidade criada e configurada na administra\xE7\xE3o. + +Para exibir os banners dessa TAG dentro do seu tema no site voc\xEA colocaria: + +[b]<{$publicidade}>[/b] + +J\xE1 no corpo das not\xEDcias ou em qualquer texto de qualquer m\xF3dulo que aceite bbcode voc\xEA deve colocar a TAG assim: + +[b][RW align=center]publicidade[/RW][/b] + +O parametro align aceita os valores "left","right" e "center" respectivamente, \xE0 esquerda, \xE0 direita e ao centro do local indicado em rela\xE7\xE3o ao conte\xFAdo mostrado. + +[b]ATUALIZA\xC7\xC3O:[/b] +=============================== +O m\xF3dulo sofreu uma modifica\xE7\xE3o total em sua estrutura, seja em banco de dados ou em scipts, praticamente foi todo refeito. Se voc\xEA usa vers\xF5es anteriores \xE0 1.3 RC, n\xF3s recomendamos firmemente que voc\xEA desinstale o m\xF3dulo antes de instalar a nova vers\xE3o. + +Caso voc\xEA use uma vers\xE3o igual ou superior \xE0 1.3 RC, apague a pasta do rw_banner e coloque no lugar a pasta da nova vers\xE3o. + +Fa\xE7a login no site como administrador. + +Se voc\xEA utiliza o hack no header.php , comente-o primeiro, acesse via browser o endere\xE7o "XOOPS_URL/modules/rw_banner/admin/upgrade.php" que o script far\xE1 a atualiza\xE7\xE3o das tabelas automaticamente sem que voc\xEA perca as configura\xE7\xF5es e banners j\xE1 cadastrados. + +Siga os passos do script e seu m\xF3dulo estar\xE1 atualizado. + +[b]BUGS AINDA N\xC3O SOLUCIONADOS:[/b] +=============================== +-Banners em c\xF3digo HTML n\xE3o tem os cliques contabilizados, essa falha j\xE1 vem do pr\xF3prio sistema de banners padr\xE3o do xoops, fun\xE7\xE3o esta que \xE9 utilizada no m\xF3dulo por\xE9m com algumas modifica\xE7\xF5es. + +[b]AGRADECIMENTOS:[/b] +=============================== +Agrade\xE7o a todos os amigos da comunidade XoopsTotal que me ajudaram com id\xE9ias e sugest\xF5es para o desenvolvimento deste m\xF3dulo em especial aos meus amigos Wilson , Giba e EyeKeeper, (conselho do XT) pela grande ajuda, suas brilhantes id\xE9ias e tamb\xE9m pela participa\xE7\xE3o em todas as etapas de testes do m\xF3dulo e tradu\xE7\xF5es. + +Para maiores informa\xE7\xF5es ou resolu\xE7\xE3o de problemas do m\xF3dulo acesse: + +http://rwbanner.brinfo.com.br + +[b]A SUA DISPOSI\xC7\xC3O:[/b] +=============================== +Estaremos dentro do possivel sempre criando exemplos de como utilizar o rw_banner e assim voc\xEA poder\xE1 obter o maior proveito possivel a utilizar este m\xF3dulo. + +Se voc\xEA estiver utilizando este m\xF3dulo, n\xE3o deixe de visitar o nosso site de desenvolvimento para sugerir novidades. + +Aproveite tamb\xE9m para preencher o nosso livro de usu\xE1rios satisfeitos e mandar o seu recado para que outros usu\xE1rios que desejarem utilizar este m\xF3dulo possam saber que ele funciona e tamb\xE9m \xE9 muito \xFAtil. + +Rw_banner Team Leader. + +[b]TheRpLima[/b] Added: XoopsModules/rw_banner/trunk/rw_banner/LISEZMOI.TXT =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/LISEZMOI.TXT (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/LISEZMOI.TXT 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,151 @@ +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Rodrigo Pereira Lima (BrInfo - Solu\xE7\xF5es Web) // +// Site: http://www.brinfo.com.br // +// Project: RW-Banner // +// Descri\xE7\xE3o: Sistema de gerenciamento de m\xEDdias publicit\xE1rias // +// ------------------------------------------------------------------------- // + +[b] DESCRIPTION :[/b] +=============================== +Le module Xoops permettant de contr\xF4ler et afficher de mani\xE8re al\xE9atoire des banni\xE8res, il peut \xEAtre utilis\xE9 seul ou avec celui inclu par d\xE9faut dans Xoops. + +Le but de ce module est de permettre \xE0 l'administrateur d'avoir une organisation, robuste et efficace pour contr\xF4ler des medias et des espaces publicitaires sur son site. + +[b] CARACT\xC9RISTIQUES :[/b] +=============================== +- Registre des banni\xE8res. +- Registre des cat\xE9gories de banni\xE8res. +- Registre des mod\xE8les des banni\xE8res. +- Registre des Tags des banni\xE8res. +- Registre des clients des banni\xE8res. +- 5 mod\xE8les d'affichages des banni\xE8res. Y compris des blocs en Ajax. +- Tous les blocs sont clonable. +- Bloc pour les statistiques des clients et de vos banni\xE8res. +- Activation/d\xE9sactivation des banni\xE8res en 1 (un) clic. +- Les banni\xE8res inactives peuvent rester dans la base de donn\xE9es. +- Cr\xE9ation de Tags Smarty pour l'utilisation dans les th\xE8mes, modules, blocs et contenu. +- Le client peut v\xE9rifier la situation de ses banni\xE8res +- Le client peut faire des modifications dans ses banni\xE8res (si l'administrateur l'autorise) +- Envoi d'un E-mail aux clients avec les statistiques de ses banni\xE8res. +- Quelques fonctionnalit\xE9s al\xE9atoires d'utilisation. +- Vous pourrez cr\xE9er des ensembles de banni\xE8res intercal\xE9es par groupes. +- Accepte l'affichage de plus d'une banni\xE8re dans les blocs. + + +DISPOSITIFS : +- Enregistrement des banni\xE8res par cat\xE9gories et/ou par clients. Les cat\xE9gories sont utilis\xE9es en diff\xE9ren\xE7ant la taille des banni\xE8res de sorte que vous puissiez cr\xE9er des plusieurs mod\xE8les d'affichage des banni\xE8res. Les clients sont des utilisateurs enregistr\xE9s sur le site et quand vous ajoutez une banni\xE8re. +- 5 mod\xE8les de blocs clonables pour afficher les banni\xE8res dans plusieurs configurations, permettant \xE0 l'administrateur de choisir le nombre de banni\xE8res al\xE9atoires qu'il veut montrer, la cat\xE9gorie \xE0 afficher, l'option pour cr\xE9er une table pour l'affichage des banni\xE8res permet de choisir seulement dans combien de colonnes elles devraient \xEAtre affich\xE9es. +- Bloc de statistiques pour le client. Dans ce bloc est montr\xE9 un tableau avec les statistiques principales de toutes banni\xE8res li\xE9es au client. +- Option d'activation et de d\xE9sactivation des banni\xE8res par un clic. Seules les banni\xE8res actives seront montr\xE9es mais les inactives continuent d'\xEAtre enregistr\xE9es dans la base de donn\xE9es, permettant de les r\xE9activer \xE0 tout moment. +- Au del\xE0 des blocs d'affichage des banni\xE8res il est \xE9galement possible d'employer une banni\xE8re al\xE9atoire dans le th\xE8me de votre sitet ou dans n'importe quelle autre page que vous souhaitez, en ajoutant seulement <{$rw_banner}> le tag (ce dispositif exige une petite modification dans le noyau de xoops qui est expliqu\xE9e dans les instructions d'installation ci-dessous). +- Page de statistiques pour le client. Dans la page principale du module, un tableau affiche toutes statistiques des banni\xE8res pour un client donn\xE9. De plus, sur cette page le client a l'option d'envoyer les statistiques de banni\xE8re sur son E-mail enregistr\xE9, et si l'administrateur l'autorise il pourra changer les informations concernant la banni\xE8re.- Affiche des banni\xE8res non al\xE9atoires dans le texte d'autres modules. Maintenant vous pouvez montrer vos banni\xE8res dans n'importe quel module qui accepte les bbcodes. Vous pouvez \xE9diter des banni\xE8res dans les news, articles, pages statiques, ainsi que dans le forum. (ce dispositif exige une petite modification dans le noyau de xoops qui est expliqu\xE9 dans les instructions d'installation ci-dessous). + +INSTALLATION : +L'installation de ce module est tr\xE8s facile en suivant la proc\xE9dure d'installation de tout autre module. +Pour activer la fonction pour l'affichage al\xE9atoire de banni\xE8re dans le th\xE8me de votre site, vous devez ex\xE9cuter une petite modification dans le noyau de xoops, plus particuli\xE8rement dans le fichier header.php, situ\xE9 \xE0 la racine de votre emplacement. + +Pour r\xE9aliser cette modification, ouvrez le fichier XOOPS_ROOT_PATH/header.php et \xE0 la fin du fichier ajoutez avant} ?>, le code ci-dessous : + + +To include this back, open the file XOOPS_ROOT_PATH/header.php and in the end of the file add before the } ?>, the code below: + +########################################################################################### +#### Hack by rw-banner +#### Create smarty vars to show the banner in the theme of your site and in the templates +########################################################################################### +$mod = XoopsModule::getByDirname("rw_banner"); +if ($mod){ + include_once (XOOPS_ROOT_PATH.'/modules/rw_banner/include/maketags.php'); +} +########################################################################################### +#### End of the Hack by rw-banner +########################################################################################### + +Etape 1 r\xE9alis\xE9e ! Vous avez activ\xE9 les TAGS SMARTY qui fonctionneront pour le module. Par l'interm\xE9diaire de l'administration du module vous pouvez cr\xE9er, \xE9diter, changer le statut et supprimer les tags. Chaque fois que vous voulez montrer votre banni\xE8re al\xE9atoire, dans le th\xE8me ou dans tout templates de module vous avez juste besoin de cr\xE9er un tag pour le mod\xE8le de publicit\xE9 d\xE9sir\xE9 et de l'ins\xE9rer dans le fichier theme.html ou dans le template. + +Pour activer cette nouvelle fonctionnalit\xE9s d'affichage, vous avez besoin de modifier le noyau de xoops et particuli\xE8rement le fichier XOOPS_ROOT_PATH/class/module.textsanitizer.php file. +Pour ajouter la modification, vous devez ouvrir le fichier XOOPS_ROOT_PATH/class/module.textsanitizer.php et regarder l'appel \xE0 la fonction xoopsCodeDecode, et \xE0 la fin de celle-ci ajouter le code suivant : + +####################################################################################### +#### Hack by rw-banner +#### Allow the exhibition of random banners an any module with bbcodes +####################################################################################### +$mod = XoopsModule::getByDirname("rw_banner"); +if ($mod){ + include(XOOPS_ROOT_PATH.'/modules/rw_banner/include/bbcode.php'); +} +####################################################################################### +#### end of the Hack by rw-banner +####################################################################################### + + + +Pour faire ceci ais\xE9ment, vous trouverez dans le dossier docs du module, les fichiers modifi\xE9s que vous avez besoin pour le noyau de xoop (ne pas oublier de sauvegarder les fichiers modifi\xE9s ou de les renommer en mettant un .bak \xE0 la fin de ceux-ci. + +Apr\xE8s application du hack, vous aurez besoin de cr\xE9er les tags dont vous avez besoin dans l'administration du module. + +Regardez l'exemple ci-dessous : + +Exemples : +imaginons que vous avez d\xE9j\xE0 cr\xE9\xE9 un tag "publicidade" et l'avez param\xE9tr\xE9 dans l'administration. Pour afficher les banni\xE8res de ce tags sur votre site, vous devriez ajouter ceci : + +<{$publicidade}> + +Mais dans le corps de vos articles ou de n'importe quel module de gestion de contenu qui accepte les bbcodes vous devez ajouter le tag comme suit : + +[RW align=center]publicidade[/RW] + + +Le param\xE8tre d'alignement accepte les valeurs "left" pour l'alignement gauche, "right" pour la droite et "center" pour le central. + + +///////// Fin de la traduction fran\xE7aise //////// + + + +UPDATES: +The modules had structural changes in relation to the database in relation to the previous verions. If you use any versions prior to 1.3RC we recommend you to unistall the module before installing the new version. +In case you have a version newer than the 1.3RC, delete the rw_banner folder and replace it by the folder from the new version. Login as administrator to your site. If you use the hack in header.php file, comment it first. Access via browser the URL "XOOPS_URL/modules/rw_banner/admin/upgrade.php" and the script will update the tables automatically without loosing all the setup you have already defined and all the registered banners. Follow the steps described in the script and your module will be updated. + +KNOWN BUGS: +-Banners in HTML code don't have their click counted. This bug is originally from the original xoops banner module. This function is used in our module but with some changes. + +THANKS: +I thank all my friends from the XoopsTotal community that helped me with ideas and suggestions for the development of this module, in special to my great friend Wilson and Giba (board of XT) for their great help with their ideias and help in testing the module. + +For further information or problem solving for this module access the following site: http://rwbanner.brinfo.com.br + +[b]ITS DISPOSAL:[/b] +=============================== +We will be inside of the possible always creating examples of as to use rw_banner and thus you will be able to get the biggest possible advantage to use this module. + +If you will be using this module, does not leave to visit our site of development to suggest new features. + +It also uses to advantage to fill our book of satisfied users and to order its message so that other users whom to desire to use this module can know that it functions and also he is very useful. + +Rw_banner Team Leader. + +[b]TheRpLima[/b] Added: XoopsModules/rw_banner/trunk/rw_banner/README.TXT =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/README.TXT (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/README.TXT 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,141 @@ +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Rodrigo Pereira Lima (BrInfo - Solu\xE7\xF5es Web) // +// Site: http://www.brinfo.com.br // +// Project: RW-Banner // +// Descri\xE7\xE3o: Sistema de gerenciamento de m\xEDdias publicit\xE1rias // +// ------------------------------------------------------------------------- // + +[b]DESCRIPTION:[/b] +=============================== +Xoops module for managing and showing random banners, that can be used or not together with the default xoops banner system. + +The aim of this module is to allow the site administrator to have an organized method, robust and efficient to manage medias and advertising spaces in his site. + +[b]CHARACTERISTICS:[/b] +=============================== +- Register of Banners. +- Register of banners categories. +- Register of models of banners. +- Register of Tags of banners. +- Register of clients of banners. +- 5 models of exhibition of banners. Including blocks in Ajax. +- All blocks are clonable. +- Block to statisticians of clients and your banners. +- Activation/Deactivation of banners with 1(one) click. +- Inactive Banners can continue in the data base. +- Create Smarty Tag\xB4s for use in its themes, modules, blocks and content. +- Client can verify the situation of its banners when logged in the site. +- The client will be able to make adjustments in its banners (if the site admin to allow) +- Send communication e-mail to clients about your banners statisticians. +- Some random modalities of use . +- You will be able to create sets of banners intercalated by groups. +- Accepted the exposition of more than 1 banner in the blocks. + + +FEATURES: +- Registering of banners separated by categories and clients. The categories are used to differnciate the size of the banners so that you can create several banner exhibition models. The clients are users registered at your site and when you add a banner you have to associate a banner with one of the registered users. +- 5 block models to show cloneable banners and with several configurations, allowing the administrator choose how many random banners he wants to show, which category should be shown and further, the option to create a table for the banner exhibition having only to select in how many columns they should be shown. +- Statistics block for the client. In this block is shown a table with the main statistics of all the banners related to the client. +- Activation and deactivation option of banners by one click. Only active banners will be shown but the inactive ones continue registered in the database, allowing you to reactivate them at any time. +- Beyond the banners exhibition blocks it is also possible to use the random banner in the theme of your site or in any other page you wish, having only to add the <{$rw_banner}> tag (this feature requires a small hack in the xops core that will be explained in the installation instructions below). +- Statistics page for the client. In the main page of the module is a table with all the statistics of the banners for the logged client. Further, in this page the client has the option to send the banner statistics for his registered e-mail. P\xE1gina de Estat\xEDsticas do Cliente. Na p\xE1gina principal do m\xF3dulo \xE9 exibida uma tabela com todas as estat\xEDsticas dos banners and if the administrator allows he will be able to change some information of the banner.- Showing or not random banners in the text of other modules. Now you can show your banners in any module that accepts bbcodes. You can publish banners in news, articles, static pages, including in any forum posts. (this feature requires a small hack in the xops core that will be explained in the installation instructions below). + +INSTALLATION: +The installation of this modules is very easy than it follows the installation procedure of all other modules. +O activate the function for the random banner exhibition in the theme of your site you need to perform a small hack in the xoops core, more precisely in the header.php file, located at the root of your site. + +To include this back, open the file XOOPS_ROOT_PATH/header.php and in the end of the file add before the } ?>, the code below: + +########################################################################################### +#### Hack by rw-banner +#### Create smarty vars to show the banner in the theme of your site and in the templates +########################################################################################### +$mod = XoopsModule::getByDirname("rw_banner"); +if ($mod){ + include_once (XOOPS_ROOT_PATH.'/modules/rw_banner/include/maketags.php'); +} +########################################################################################### +#### End of the Hack by rw-banner +########################################################################################### + +Step one is done! You activated the SMARTY TAGS function for the module and now via the admin area of the module you can create, edit, change the status and delete the tags. Every time you want to show your random banner, in the theme or in any module templates you just need to create a tag for the desired advertising model and insert it into the theme.html file or in the template. + +To activate the new function for the text banner exhibition you need to perform another hack in the xoops core, in the XOOPS_ROOT_PATH/class/module.textsanitizer.php file. +To add the hack, open the XOOPS_ROOT_PATH/class/module.textsanitizer.php file and look for the function called xoopsCodeDecode, and in the end of the function you need to add the following code: + +####################################################################################### +#### Hack by rw-banner +#### Allow the exhibition of random banners an any module with bbcodes +####################################################################################### +$mod = XoopsModule::getByDirname("rw_banner"); +if ($mod){ + include(XOOPS_ROOT_PATH.'/modules/rw_banner/include/bbcode.php'); +} +####################################################################################### +#### end of the Hack by rw-banner +####################################################################################### + +To make it easier to understand, you can find in the docs folder the function xoopsCodeDecode already hacked, you just need to follow the example and apply the hack into your file. +After applying the hack to show your banner in your texts you just need to create the tags in the administration area for the module in the same way you create the tags for exhibition in your theme or module templates. + +When you have already created the tags you just need to go the module you want to show the banner and in the text field (I must be able to accept bbcodes!!), add the tag in the same way that you do in your theme. The only difference is in the tags declaration. +Look at the example below: + +Examples: +Let's imagine that you have already created and setup in the administration area. To show the banners from this tag in your site you would add:: + +<{$publicidade}> + +But in the body of your news or any othger module that accepts bbcodes you have to add the TAG as follows: + +[RW align=center]publicidade[/RW] + +The parameter align accpets the values "left" for left alignment, "right"for right alignment and "center" for center alignment. + + +UPDATES: +The modules had structural changes in relation to the database in relation to the previous verions. If you use any versions prior to 1.3RC we recommend you to unistall the module before installing the new version. +In case you have a version newer than the 1.3RC, delete the rw_banner folder and replace it by the folder from the new version. Login as administrator to your site. If you use the hack in header.php file, comment it first. Access via browser the URL "XOOPS_URL/modules/rw_banner/admin/upgrade.php" and the script will update the tables automatically without loosing all the setup you have already defined and all the registered banners. Follow the steps described in the script and your module will be updated. + +KNOWN BUGS: +-Banners in HTML code don't have their click counted. This bug is originally from the original xoops banner module. This function is used in our module but with some changes. + +THANKS: +I thank all my friends from the XoopsTotal community that helped me with ideas and suggestions for the development of this module, in special to my great friend Wilson and Giba (board of XT) for their great help with their ideias and help in testing the module. + +For further information or problem solving for this module access the following site: http://rwbanner.brinfo.com.br + +[b]ITS DISPOSAL:[/b] +=============================== +We will be inside of the possible always creating examples of as to use rw_banner and thus you will be able to get the biggest possible advantage to use this module. + +If you will be using this module, does not leave to visit our site of development to suggest new features. + +It also uses to advantage to fill our book of satisfied users and to order its message so that other users whom to desire to use this module can know that it functions and also he is very useful. + +Rw_banner Team Leader. + +[b]TheRpLima[/b] Added: XoopsModules/rw_banner/trunk/rw_banner/admin/about.php =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/admin/about.php (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/admin/about.php 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,38 @@ +<?php +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Rodrigo Pereira Lima (BrInfo - Solu\xE7\xF5es Web) // +// Site: http://www.brinfo.com.br // +// Project: RW-Banner // +// Descri\xE7\xE3o: Sistema de gerenciamento de m\xEDdias publicit\xE1rias // +// ------------------------------------------------------------------------- // + +include_once("admin_header.php"); + +include_once(XOOPS_ROOT_PATH."/modules/rw_banner/class/about.php"); +$aboutObj = new RwbannerAbout(_AM_RWBANNER_ABOUT); +$aboutObj->render(); + +?> Added: XoopsModules/rw_banner/trunk/rw_banner/admin/admin.php =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/admin/admin.php (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/admin/admin.php 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,156 @@ +<?php +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Rodrigo Pereira Lima (BrInfo - Solu\xE7\xF5es Web) // +// Site: http://www.brinfo.com.br // +// Project: RW-Banner // +// Descri\xE7\xE3o: Sistema de gerenciamento de m\xEDdias publicit\xE1rias // +// ------------------------------------------------------------------------- // + +$admin_mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; + +$fct = empty( $_POST['fct'] ) ? '' : trim( $_POST['fct'] ) ; +$fct = empty( $_GET['fct'] ) ? $fct : trim( $_GET['fct'] ) ; +if( empty( $fct ) ) $fct = 'preferences' ; + + +include "../../../mainfile.php"; +include XOOPS_ROOT_PATH."/include/cp_functions.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php"; +include_once "../include/gtickets.php" ;// GIJ + +$admintest = 0; + +if (is_object($xoopsUser)) { + $xoopsModule =& XoopsModule::getByDirname("system"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL.'/user.php',3,_NOPERM); + exit(); + } + $admintest=1; +} else { + redirect_header(XOOPS_URL.'/user.php',3,_NOPERM); + exit(); +} + +// include system category definitions +include_once XOOPS_ROOT_PATH."/modules/system/constants.php"; + +$error = false; +if ($admintest != 0) { + if (isset($fct) && $fct != '') { + if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/xoops_version.php")) { + if ( file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php") ) { + include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php"; + } else { + include XOOPS_ROOT_PATH."/modules/system/language/english/admin.php"; + } + if (file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin/".$fct.".php")) { + include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin/".$fct.".php"; + } elseif (file_exists(XOOPS_ROOT_PATH."/modules/system/language/english/admin/".$fct.".php")) { + include XOOPS_ROOT_PATH."/modules/system/language/english/admin/".$fct.".php"; + } + include XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/xoops_version.php"; + $sysperm_handler =& xoops_gethandler('groupperm'); + $category = !empty($modversion['category']) ? intval($modversion['category']) : 0; + unset($modversion); + if ($category > 0) { + $groups =& $xoopsUser->getGroups(); + if (in_array(XOOPS_GROUP_ADMIN, $groups) || false != $sysperm_handler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))){ +// if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/main.php")) { +// include_once XOOPS_ROOT_PATH."/modules/system/admin/".$fct."/main.php"; GIJ + if (file_exists("../include/{$fct}.inc.php")) { + include_once "../include/{$fct}.inc.php" ; + } else { + $error = true; + } + } else { + $error = true; + } + } elseif ($fct == 'version') { + if (file_exists(XOOPS_ROOT_PATH."/modules/system/admin/version/main.php")) { + include_once XOOPS_ROOT_PATH."/modules/system/admin/version/main.php"; + } else { + $error = true; + } + } else { + $error = true; + } + } else { + $error = true; + } + } else { + $error = true; + } +} + +if (false != $error) { + xoops_cp_header(); + echo "<h4>System Configuration</h4>"; + echo '<table class="outer" cellpadding="4" cellspacing="1">'; + echo '<tr>'; + $groups = $xoopsUser->getGroups(); + $all_ok = false; + if (!in_array(XOOPS_GROUP_ADMIN, $groups)) { + $sysperm_handler =& xoops_gethandler('groupperm'); + $ok_syscats =& $sysperm_handler->getItemIds('system_admin', $groups); + } else { + $all_ok = true; + } + $admin_dir = XOOPS_ROOT_PATH."/modules/system/admin"; + $handle = opendir($admin_dir); + $counter = 0; + $class = 'even'; + while ($file = readdir($handle)) { + if (strtolower($file) != 'cvs' && !preg_match("/[.]/", $file) && is_dir($admin_dir.'/'.$file)) { + include $admin_dir.'/'.$file.'/xoops_version.php'; + if ($modversion['hasAdmin']) { + $category = isset($modversion['category']) ? intval($modversion['category']) : 0; + if (false != $all_ok || in_array($modversion['category'], $ok_syscats)) { + echo "<td class='$class' align='center' valign='bottom' width='19%'>"; + echo "<a href='".XOOPS_URL."/modules/system/admin.php?fct=".$file."'><b>" .trim($modversion['name'])."</b></a>\n"; + echo "</td>"; + $counter++; + $class = ($class == 'even') ? 'odd' : 'even'; + } + if ( $counter > 4 ) { + $counter = 0; + echo "</tr>"; + echo "<tr>"; + } + } + unset($modversion); + } + } + while ($counter < 5) { + echo '<td class="'.$class.'"> </td>'; + $class = ($class == 'even') ? 'odd' : 'even'; + $counter++; + } + echo '</tr></table>'; + xoops_cp_footer(); +} + +?> Added: XoopsModules/rw_banner/trunk/rw_banner/admin/admin_header.php =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/admin/admin_header.php (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/admin/admin_header.php 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,60 @@ +<?php +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------- // +// Author: Rodrigo Pereira Lima (BrInfo - Solu\xE7\xF5es Web) // +// Site: http://www.brinfo.com.br // +// Project: RW-Banner // +// Descri\xE7\xE3o: Sistema de gerenciamento de m\xEDdias publicit\xE1rias // +// ------------------------------------------------------------------------- // + +include("../../../mainfile.php"); +include '../../../include/cp_header.php'; +include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php"; +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; + +if (is_object($xoopsUser)){ + $xoopsModule = XoopsModule::getByDirname("rw_banner"); + if (!$xoopsUser->isAdmin($xoopsModule->mid())){ + redirect_header(XOOPS_URL."/",1,_NOPERM); + exit(); + } +}else{ + redirect_header(XOOPS_URL."/",1,_NOPERM); + exit(); +} + +include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/include/functions.php"; + +if ( file_exists("../language/".$xoopsConfig['language']."/modinfo.php") ) { + include("../language/".$xoopsConfig['language']."/modinfo.php"); +} else { + include("../language/english/modinfo.php"); +} + +$myts =& MyTextSanitizer::getInstance(); +?> Added: XoopsModules/rw_banner/trunk/rw_banner/admin/exibe.php =================================================================== --- XoopsModules/rw_banner/trunk/rw_banner/admin/exibe.php (rev 0) +++ XoopsModules/rw_banner/trunk/rw_banner/admin/exibe.php 2012-08-13 04:31:53 UTC (rev 10062) @@ -0,0 +1,55 @@ +<?php +// ------------------------------------------------------------------------ // +// RW-Banner // +// Copyright (c) 2006 BrInfo // +// <http://www.brinfo.com.br> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// 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 Gene... [truncated message content] |