You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(361) |
Oct
(65) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(798) |
Feb
(694) |
Mar
(586) |
Apr
(145) |
May
(24) |
Jun
(24) |
Jul
(56) |
Aug
(11) |
Sep
(138) |
Oct
(107) |
Nov
(58) |
Dec
(39) |
| 2004 |
Jan
(157) |
Feb
(24) |
Mar
(13) |
Apr
(14) |
May
(73) |
Jun
(106) |
Jul
(217) |
Aug
(91) |
Sep
(116) |
Oct
(357) |
Nov
(27) |
Dec
(272) |
| 2005 |
Jan
(97) |
Feb
(40) |
Mar
(167) |
Apr
(365) |
May
(344) |
Jun
(357) |
Jul
(407) |
Aug
(529) |
Sep
(204) |
Oct
(52) |
Nov
(80) |
Dec
(1) |
| 2006 |
Jan
(2) |
Feb
(1) |
Mar
(11) |
Apr
(112) |
May
(121) |
Jun
(86) |
Jul
(51) |
Aug
(48) |
Sep
(107) |
Oct
(20) |
Nov
(50) |
Dec
(11) |
| 2007 |
Jan
(7) |
Feb
(11) |
Mar
(8) |
Apr
(11) |
May
(2) |
Jun
(25) |
Jul
(67) |
Aug
(134) |
Sep
(54) |
Oct
(69) |
Nov
(10) |
Dec
(74) |
| 2008 |
Jan
(73) |
Feb
(81) |
Mar
(64) |
Apr
(98) |
May
(157) |
Jun
(68) |
Jul
(80) |
Aug
(108) |
Sep
(176) |
Oct
(107) |
Nov
(265) |
Dec
(60) |
| 2009 |
Jan
(149) |
Feb
(140) |
Mar
(195) |
Apr
(141) |
May
(53) |
Jun
(45) |
Jul
(98) |
Aug
(153) |
Sep
(160) |
Oct
(138) |
Nov
(139) |
Dec
(104) |
| 2010 |
Jan
(188) |
Feb
(259) |
Mar
(133) |
Apr
(104) |
May
(42) |
Jun
(121) |
Jul
(38) |
Aug
(223) |
Sep
(259) |
Oct
(255) |
Nov
(106) |
Dec
(157) |
| 2011 |
Jan
(202) |
Feb
(110) |
Mar
(261) |
Apr
(272) |
May
(218) |
Jun
(108) |
Jul
(141) |
Aug
(205) |
Sep
(326) |
Oct
(279) |
Nov
(368) |
Dec
(238) |
| 2012 |
Jan
(239) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <be...@us...> - 2012-02-01 08:40:23
|
Revision: 8866
http://xoops.svn.sourceforge.net/xoops/?rev=8866&view=rev
Author: beckmi
Date: 2012-02-01 08:40:13 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
restructuring folders
Added Paths:
-----------
XoopsModules/xnews/branches/timgno/
Removed Paths:
-------------
XoopsModules/xnews/trunk/timgno/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-02-01 08:38:06
|
Revision: 8865
http://xoops.svn.sourceforge.net/xoops/?rev=8865&view=rev
Author: beckmi
Date: 2012-02-01 08:37:57 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
restructuring folders
Added Paths:
-----------
XoopsModules/mytube/branches/timgno/mytube/
Removed Paths:
-------------
XoopsModules/mytube/branches/mytube/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-02-01 08:37:09
|
Revision: 8864
http://xoops.svn.sourceforge.net/xoops/?rev=8864&view=rev
Author: beckmi
Date: 2012-02-01 08:36:59 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
restructuring folders
Added Paths:
-----------
XoopsModules/mytube/branches/timgno/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 20:26:27
|
Revision: 8863
http://xoops.svn.sourceforge.net/xoops/?rev=8863&view=rev
Author: txmodxoops
Date: 2012-01-31 20:26:11 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
mytube version 1.04
Added Paths:
-----------
XoopsModules/mytube/releases/1.04/mytube/
XoopsModules/mytube/releases/1.04/mytube/admin/
XoopsModules/mytube/releases/1.04/mytube/admin/about.php
XoopsModules/mytube/releases/1.04/mytube/admin/admin.php
XoopsModules/mytube/releases/1.04/mytube/admin/admin_header.php
XoopsModules/mytube/releases/1.04/mytube/admin/altcat.php
XoopsModules/mytube/releases/1.04/mytube/admin/brokenvideo.php
XoopsModules/mytube/releases/1.04/mytube/admin/category.php
XoopsModules/mytube/releases/1.04/mytube/admin/index.php
XoopsModules/mytube/releases/1.04/mytube/admin/indexpage.php
XoopsModules/mytube/releases/1.04/mytube/admin/menu.php
XoopsModules/mytube/releases/1.04/mytube/admin/modifications.php
XoopsModules/mytube/releases/1.04/mytube/admin/myblockform.php
XoopsModules/mytube/releases/1.04/mytube/admin/myblocksadmin.php
XoopsModules/mytube/releases/1.04/mytube/admin/myblocksadmin.txt
XoopsModules/mytube/releases/1.04/mytube/admin/mygroupperm.php
XoopsModules/mytube/releases/1.04/mytube/admin/mygrouppermform.php
XoopsModules/mytube/releases/1.04/mytube/admin/mytube.php
XoopsModules/mytube/releases/1.04/mytube/admin/newvideos.php
XoopsModules/mytube/releases/1.04/mytube/admin/permissions.php
XoopsModules/mytube/releases/1.04/mytube/admin/upload.php
XoopsModules/mytube/releases/1.04/mytube/admin/votedata.php
XoopsModules/mytube/releases/1.04/mytube/admin/vupload.php
XoopsModules/mytube/releases/1.04/mytube/blocks/
XoopsModules/mytube/releases/1.04/mytube/blocks/index.html
XoopsModules/mytube/releases/1.04/mytube/blocks/mytube_banner.php
XoopsModules/mytube/releases/1.04/mytube/blocks/mytube_block_tag.php
XoopsModules/mytube/releases/1.04/mytube/blocks/xoopstube_top.php
XoopsModules/mytube/releases/1.04/mytube/brokenvideo.php
XoopsModules/mytube/releases/1.04/mytube/bugfixlist.txt
XoopsModules/mytube/releases/1.04/mytube/class/
XoopsModules/mytube/releases/1.04/mytube/class/class_lists.php
XoopsModules/mytube/releases/1.04/mytube/class/class_thumbnail.php
XoopsModules/mytube/releases/1.04/mytube/class/index.html
XoopsModules/mytube/releases/1.04/mytube/class/myts_extended.php
XoopsModules/mytube/releases/1.04/mytube/class/uploader.php
XoopsModules/mytube/releases/1.04/mytube/class/xtube_lists.php
XoopsModules/mytube/releases/1.04/mytube/comment_delete.php
XoopsModules/mytube/releases/1.04/mytube/comment_edit.php
XoopsModules/mytube/releases/1.04/mytube/comment_new.php
XoopsModules/mytube/releases/1.04/mytube/comment_post.php
XoopsModules/mytube/releases/1.04/mytube/comment_reply.php
XoopsModules/mytube/releases/1.04/mytube/docs/
XoopsModules/mytube/releases/1.04/mytube/docs/y-code.txt
XoopsModules/mytube/releases/1.04/mytube/header.php
XoopsModules/mytube/releases/1.04/mytube/images/
XoopsModules/mytube/releases/1.04/mytube/images/blank.gif
XoopsModules/mytube/releases/1.04/mytube/images/blank.png
XoopsModules/mytube/releases/1.04/mytube/images/brokenimg.png
XoopsModules/mytube/releases/1.04/mytube/images/category/
XoopsModules/mytube/releases/1.04/mytube/images/category/index.html
XoopsModules/mytube/releases/1.04/mytube/images/category/thumbs/
XoopsModules/mytube/releases/1.04/mytube/images/category/thumbs/index.html
XoopsModules/mytube/releases/1.04/mytube/images/get_flash_player.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/
XoopsModules/mytube/releases/1.04/mytube/images/icon/admintools.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/back.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/clock_red.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/computer.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/down.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_accept.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_approve.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_delete.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_edit.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_ignore.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_off.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/film_on.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/folder_add.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/index.html
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload1.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload1_small.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload2.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload2_small.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload3.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload3_small.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload4.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/linkload4_small.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/links.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/new.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/popular.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/rate0.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/rate1.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/rate2.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/rate3.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/rate4.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/rate5.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/security.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/up.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/update.png
XoopsModules/mytube/releases/1.04/mytube/images/icon/view.png
XoopsModules/mytube/releases/1.04/mytube/images/index.html
XoopsModules/mytube/releases/1.04/mytube/images/logo-en.png
XoopsModules/mytube/releases/1.04/mytube/images/mytube_ilogo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/backflip.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/backflip_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/bibsonomy.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/bibsonomy_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/blinklist.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/blinklist_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/blogmarks.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/blogmarks_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/citeulike.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/citeulike_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/connotea.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/connotea_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/del.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/del_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/digg.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/digg_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/diigo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/diigo_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/dzone.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/dzone_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/earthlink.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/earthlink_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/eatmyhamster.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/eatmyhamster_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/facebook.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/fantacular.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/fantacular_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/fark.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/fark_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/feedmarker.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/feedmarker_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/feedmelinks.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/feedmelinks_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/furl.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/furl_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/google.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/google_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/gravee.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/gravee_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/igooi.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/igooi_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/index.html
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/italknews.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/italknews_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/jookster.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/jookster_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/kinja.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/kinja_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/linkagogo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/linkagogo_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/linkroll.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/linkroll_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/linuxquestions.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/linuxquestions_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/live.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/live_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/lookmarks.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/lookmarks_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/lycos.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/lycos_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/magnolia.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/magnolia_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/markabboo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/markabboo_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/netscape.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/netscape_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/netvouz.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/netvouz_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/newsvine.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/newsvine_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/ning.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/ning_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/nowpublic.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/nowpublic_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/rawsugar.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/rawsugar_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/reddit.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/reddit_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/riffs.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/riffs_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/rojo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/rojo_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/shadows.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/shadows_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/simpy.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/simpy_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/spurl.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/spurl_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/squidoo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/squidoo_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/stumbleupon.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/stumbleupon_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/tagtooga.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/tagtooga_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/technorati.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/technorati_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/vista.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/vista_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/what.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/what_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/windows_live.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/windows_live_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/wink.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/wink_1.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/yahoo.png
XoopsModules/mytube/releases/1.04/mytube/images/sbookmarks/yahoo_1.png
XoopsModules/mytube/releases/1.04/mytube/images/screenshots/
XoopsModules/mytube/releases/1.04/mytube/images/screenshots/index.html
XoopsModules/mytube/releases/1.04/mytube/images/screenshots/thumbs/
XoopsModules/mytube/releases/1.04/mytube/images/screenshots/thumbs/index.html
XoopsModules/mytube/releases/1.04/mytube/images/size2.gif
XoopsModules/mytube/releases/1.04/mytube/images/thumbs/
XoopsModules/mytube/releases/1.04/mytube/images/thumbs/index.html
XoopsModules/mytube/releases/1.04/mytube/images/xtube_iconbig.png
XoopsModules/mytube/releases/1.04/mytube/images/xtube_iconsmall.png
XoopsModules/mytube/releases/1.04/mytube/images/xtube_slogo.png
XoopsModules/mytube/releases/1.04/mytube/include/
XoopsModules/mytube/releases/1.04/mytube/include/blocksadmin.inc.php
XoopsModules/mytube/releases/1.04/mytube/include/comment_functions.php
XoopsModules/mytube/releases/1.04/mytube/include/config.php
XoopsModules/mytube/releases/1.04/mytube/include/functions.php
XoopsModules/mytube/releases/1.04/mytube/include/gtickets.php
XoopsModules/mytube/releases/1.04/mytube/include/index.html
XoopsModules/mytube/releases/1.04/mytube/include/mediaplayer.swf
XoopsModules/mytube/releases/1.04/mytube/include/notification.inc.php
XoopsModules/mytube/releases/1.04/mytube/include/onupdate.inc.php
XoopsModules/mytube/releases/1.04/mytube/include/plugin.tag.php
XoopsModules/mytube/releases/1.04/mytube/include/search.inc.php
XoopsModules/mytube/releases/1.04/mytube/include/update.php
XoopsModules/mytube/releases/1.04/mytube/include/updateblock.inc.php
XoopsModules/mytube/releases/1.04/mytube/include/video.php
XoopsModules/mytube/releases/1.04/mytube/include/videoloadinfo.php
XoopsModules/mytube/releases/1.04/mytube/index.php
XoopsModules/mytube/releases/1.04/mytube/language/
XoopsModules/mytube/releases/1.04/mytube/language/english/
XoopsModules/mytube/releases/1.04/mytube/language/english/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/english/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/english/index.html
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/english/main.php
XoopsModules/mytube/releases/1.04/mytube/language/english/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/french/
XoopsModules/mytube/releases/1.04/mytube/language/french/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/french/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/french/index.html
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/french/main.php
XoopsModules/mytube/releases/1.04/mytube/language/french/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/german/
XoopsModules/mytube/releases/1.04/mytube/language/german/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/german/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/german/index.html
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/category_linksubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/category_newlink_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_linkbroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_linkmodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_linksubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_newlink_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/link_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/linkbroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/german/main.php
XoopsModules/mytube/releases/1.04/mytube/language/german/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/index.html
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/index.html
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/main.php
XoopsModules/mytube/releases/1.04/mytube/language/nederlands/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/persian/
XoopsModules/mytube/releases/1.04/mytube/language/persian/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/persian/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/persian/index.html
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/persian/main.php
XoopsModules/mytube/releases/1.04/mytube/language/persian/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/index.html
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/main.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguese/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/index.html
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/main.php
XoopsModules/mytube/releases/1.04/mytube/language/portuguesebr/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/language/spanish/
XoopsModules/mytube/releases/1.04/mytube/language/spanish/admin.php
XoopsModules/mytube/releases/1.04/mytube/language/spanish/blocks.php
XoopsModules/mytube/releases/1.04/mytube/language/spanish/index.html
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/category_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/category_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/global_newcategory_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/global_newvideo_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/global_videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/global_videomodify_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/global_videosubmit_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/index.html
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/video_approve_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/mail_template/videobroken_notify.tpl
XoopsModules/mytube/releases/1.04/mytube/language/spanish/main.php
XoopsModules/mytube/releases/1.04/mytube/language/spanish/modinfo.php
XoopsModules/mytube/releases/1.04/mytube/license.txt
XoopsModules/mytube/releases/1.04/mytube/list.tag.php
XoopsModules/mytube/releases/1.04/mytube/newlist.php
XoopsModules/mytube/releases/1.04/mytube/notification_update.php
XoopsModules/mytube/releases/1.04/mytube/ratevideo.php
XoopsModules/mytube/releases/1.04/mytube/readme.txt
XoopsModules/mytube/releases/1.04/mytube/sbookmarks.php
XoopsModules/mytube/releases/1.04/mytube/singlevideo.php
XoopsModules/mytube/releases/1.04/mytube/sql/
XoopsModules/mytube/releases/1.04/mytube/sql/index.html
XoopsModules/mytube/releases/1.04/mytube/sql/xoopstube.sql
XoopsModules/mytube/releases/1.04/mytube/submit.php
XoopsModules/mytube/releases/1.04/mytube/templates/
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/index.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/mytube_block_banner.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/mytube_tag_block_cloud.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/mytube_tag_block_tag.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_new.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_new_h.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_new_t.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_random.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_random_h.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_top.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_block_top_t.html
XoopsModules/mytube/releases/1.04/mytube/templates/blocks/xoopstube_tag_block_cloud.html
XoopsModules/mytube/releases/1.04/mytube/templates/index.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_brokenvideo.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_index.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_newlistindex.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_ratevideo.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_rss.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_singlevideo.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_topten.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_videoload.html
XoopsModules/mytube/releases/1.04/mytube/templates/xoopstube_viewcat.html
XoopsModules/mytube/releases/1.04/mytube/topten.php
XoopsModules/mytube/releases/1.04/mytube/view.tag.php
XoopsModules/mytube/releases/1.04/mytube/viewcat.php
XoopsModules/mytube/releases/1.04/mytube/xoops_version.php
XoopsModules/mytube/releases/1.04/mytube/xtubestyle.css
Added: XoopsModules/mytube/releases/1.04/mytube/admin/about.php
===================================================================
--- XoopsModules/mytube/releases/1.04/mytube/admin/about.php (rev 0)
+++ XoopsModules/mytube/releases/1.04/mytube/admin/about.php 2012-01-31 20:26:11 UTC (rev 8863)
@@ -0,0 +1,76 @@
+<?php
+/**
+ * $Id: about.php
+ * Module: MyTube
+ */
+
+include 'admin_header.php';
+
+global $xoopsModule;
+
+xoops_cp_header();
+
+$module_handler = &xoops_gethandler( 'module' );
+$versioninfo = &$module_handler -> get( $xoopsModule -> getVar( 'mid' ) );
+
+xtube_adminmenu( _AM_XTUBE_MVIDEOS );
+// Left headings...
+echo "<img src='" . XOOPS_URL . "/modules/".$xoopsModule->getVar('dirname')."/" . $versioninfo -> getInfo( 'image' ) . "' alt='' hspace='10' vspace='0' /></a>\n
+<div style='margin-top: 10px; color: #33538e; margin-bottom: 4px; font-size: 18px; line-height: 18px; font-weight: bold; display: block;'>" . $versioninfo -> getInfo( 'name' ) . " version " . $versioninfo -> getInfo( 'version' ) . "</div>\n
+
+<div>\n";
+if ( $versioninfo -> getInfo( 'author_realname' ) != '' ) {
+ $author_name = $versioninfo -> getInfo( 'author' ) . " (" . $versioninfo -> getInfo( 'author_realname' ) . ")";
+} else {
+ $author_name = $versioninfo -> getInfo( 'author' );
+}
+echo "
+ </div>\n
+ <div>" . _MI_XTUBE_RELEASE . " " . $versioninfo -> getInfo( 'releasedate' ) . "</div>\n
+ <div>" . _AM_XTUBE_BY . " " . $author_name . "</div>\n
+ <div>" . $versioninfo -> getInfo( 'license' ) . "</div><br />\n";
+
+// Author Information
+$sform = new XoopsThemeForm( _MI_XTUBE_AUTHOR_INFO, "", "" );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_AUTHOR_NAME, $author_name ) );
+$sform -> display();
+
+// Author Information
+$sform = new XoopsThemeForm( _MI_XTUBE_MODULE_INFO, "", "" );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_MODULE_STATUS, $versioninfo -> getInfo( 'status' ) ) );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_MODULE_SUPPORT, "<a href='" . $versioninfo -> getInfo( 'support_site_url' ) . "' target='_blank'>" . $versioninfo -> getInfo( 'support_site_name' ) . "</a>" ) );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_MODULE_BUG, "<a href='" . $versioninfo -> getInfo( 'submit_bug' ) . "' target='_blank'>" . _MI_XTUBE_MODULE_SUBMITBUG . "</a>" ) );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_MODULE_FEATURE, "<a href='" . $versioninfo -> getInfo( 'submit_feature' ) . "' target='_blank'>" . _MI_XTUBE_MODULE_REQUESTNEWFEATURE . "</a>" ) );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_MODULE_MANUAL, "<a href='" . $versioninfo -> getInfo( 'manual_wiki' ) . "' target='_blank'>" . _MI_XTUBE_MODULE_MANUALWIKI . "</a>" ) );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_FLVPLAYER_MANUAL, "<a href='http://code.longtailvideo.com/trac/' target='_blank'>" . _MI_XTUBE_FLVPLAYER_WIKI . "</a>" ) );
+$sform -> display();
+
+$sform = new XoopsThemeForm( _MI_XTUBE_AUTHOR_CREDITS, "", "" );
+ob_start();
+echo "<div class='even'>" . $versioninfo -> getInfo( 'author_credits' ) . "</div>";
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_AUTHOR_CREDITS, ob_get_contents(), 0 ) );
+ob_end_clean();
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_ICONS_CREDITS, "<a href='http://www.famfamfam.com' target='_blank'>famfamfam.com</a>" ) );
+$sform -> addElement( new XoopsFormLabel( _MI_XTUBE_FLVPLAYER_CREDITS, "<a href='http://www.jeroenwijering.com/?item=JW_FLV_Media_Player' target='_blank'>" . _MI_XTUBE_FLVPLAYER_CREDITDSC . "</a>" ) );
+$sform -> display();
+
+global $xtubemyts;
+
+$file='../bugfixlist.txt';
+if ( @file_exists( $file ) ) {
+ $fp = @fopen( $file, "r" );
+ $bugtext = @fread( $fp, filesize( $file ) );
+ @fclose( $file );
+}
+
+$sform = new XoopsThemeForm( _MI_XTUBE_AUTHOR_BUGFIXES, "", "" );
+ob_start();
+ echo "<div class='even'>" . $xtubemyts -> displayTarea( $bugtext ) . "</div>";
+ $sform -> addElement( new XoopsFormLabel( _MI_XTUBE_AUTHOR_BUGFIXES, ob_get_contents(), 0 ) );
+ob_end_clean();
+$sform -> display();
+unset( $file );
+echo "<div style='text-align: center;'>" . _MI_XTUBE_COPYRIGHTIMAGE . "</div>\n";
+xoops_cp_footer();
+
+?>
\ No newline at end of file
Added: XoopsModules/mytube/releases/1.04/mytube/admin/admin.php
===================================================================
--- XoopsModules/mytube/releases/1.04/mytube/admin/admin.php (rev 0)
+++ XoopsModules/mytube/releases/1.04/mytube/admin/admin.php 2012-01-31 20:26:11 UTC (rev 8863)
@@ -0,0 +1,154 @@
+<?php
+// $Id: admin.php,v 1.7 2003/04/11 13:00:53 okazu Exp $
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 XOOPS.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// 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: Kazumi Ono (AKA onokazu) //
+// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ //
+// Project: The XOOPS Project //
+// ------------------------------------------------------------------------- //
+$admin_mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+
+$fct = empty( $_REQUEST['fct'] ) ? '' : trim( $_REQUEST['fct'] ) ;
+if ( empty( $fct ) ) $fct = 'preferences' ;
+// if (isset($fct) && $fct == "users") {
+// $xoopsOption['pagetype'] = "user";
+// }
+include "../../../mainfile.php";
+// include "../../mainfile.php"; GIJ
+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( "../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' style='text-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();
+}
+
+?>
\ No newline at end of file
Added: XoopsModules/mytube/releases/1.04/mytube/admin/admin_header.php
===================================================================
--- XoopsModules/mytube/releases/1.04/mytube/admin/admin_header.php (rev 0)
+++ XoopsModules/mytube/releases/1.04/mytube/admin/admin_header.php 2012-01-31 20:26:11 UTC (rev 8863)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * $Id: admin_header.php
+ * Module: MyTube
+ */
+
+include '../../../mainfile.php';
+include '../../../include/cp_header.php';
+
+include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule -> getVar('dirname') . '/include/config.php';
+include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule -> getVar('dirname') . '/include/functions.php';
+include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule -> getVar('dirname') . '/include/video.php';
+include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule -> getVar('dirname') . '/class/xtube_lists.php';
+include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/class/myts_extended.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';
+
+$xtubemyts = new xtubeTextSanitizer(); // MyTextSanitizer object
+
+$imagearray = array(
+ 'editimg' => "<img src='../images/icon/film_edit.png' alt='" . _AM_XTUBE_ICO_EDIT . "' align='middle'>",
+ 'deleteimg' => "<img src='../images/icon/film_delete.png' alt='" . _AM_XTUBE_ICO_DELETE . "' align='middle'>",
+ 'altcat' => "<img src='../images/icon/folder_add.png' alt='" . _AM_XTUBE_ALTCAT_CREATEF . "' align='middle'>",
+ 'online' => "<img src='../images/icon/film_on.png' alt='" . _AM_XTUBE_ICO_ONLINE . "' align='middle'>",
+ 'offline' => "<img src='../images/icon/film_off.png' alt='" . _AM_XTUBE_ICO_OFFLINE . "' align='middle'>",
+ 'expired' => "<img src='../images/icon/clock_red.png' alt='" . _AM_XTUBE_ICO_EXPIRE . "' align='middle'>",
+ 'approved' => "<img src='../images/icon/film_on.png' alt=''" . _AM_XTUBE_ICO_APPROVED . "' align='middle'>",
+ 'notapproved' => "<img src='../images/icon/film_off.png' alt='" . _AM_XTUBE_ICO_NOTAPPROVED . "' align='middle'>",
+ 'relatedfaq' => "<img src='../images/icon/link.gif' alt='" . _AM_XTUBE_ICO_VIDEO . "' align='absmiddle'>",
+ 'approve' => "<img src='../images/icon/film_approve.png' alt='" . _AM_XTUBE_ICO_APPROVE . "' align='middle'>",
+ 'ignore' => "<img src='../images/icon/film_ignore.png' alt='" . _AM_XTUBE_ICO_IGNORE . "' align='middle'>",
+ 'ack_yes' => "<img src='../images/icon/film_on.png' alt='" . _AM_XTUBE_ICO_ACK . "' align='middle'>",
+ 'ack_no' => "<img src='../images/icon/film_off.png' alt='" . _AM_XTUBE_ICO_REPORT . "' align='middle'>",
+ 'con_yes' => "<img src='../images/icon/film_on.png' alt='" . _AM_XTUBE_ICO_CONFIRM . "' align='middle'>",
+ 'con_no' => "<img src='../images/icon/film_off.png' alt='" . _AM_XTUBE_ICO_CONBROKEN . "' align='middle'>",
+ 'view' => "<img src='../images/icon/view.png' alt='" . _AM_XTUBE_ICO_VIEW . "' align='middle'>"
+ );
+
+?>
\ No newline at end of file
Added: XoopsModules/mytube/releases/1.04/mytube/admin/altcat.php
===================================================================
--- XoopsModules/mytube/releases/1.04/mytube/admin/altcat.php (rev 0)
+++ XoopsModules/mytube/releases/1.04/mytube/admin/altcat.php 2012-01-31 20:26:11 UTC (rev 8863)
@@ -0,0 +1,109 @@
+<?php
+/**
+ * $Id: altcat.php
+ * Module: MyTube
+ */
+
+include 'admin_header.php';
+
+Global $xoopsModuleConfig;
+
+$op = xtube_cleanRequestVars( $_REQUEST, 'op', '' );
+$lid = xtube_cleanRequestVars( $_REQUEST, 'lid', 0 );
+
+function makeTreeCheckTable( $xt, $itemid, $title, $checks, $order = "" ) {
+ global $xtubemyts;
+
+ echo "<div style='text-align: left;'>\n";
+ echo "<form name='altcat' method='post' action='" . xoops_getenv( 'PHP_SELF' ) . "'>\n";
+ echo "<table width='100%' callspacing='1' class='outer'>\n";
+ $sql = 'SELECT ' . $xt -> id . ', ' . $title . ' FROM ' . $xt -> table . ' WHERE ' . $xt -> pid . '=0' . ' ORDER BY ' . $title;
+ if ( $order != '' ) {
+ $sql .= ' ORDER BY ' . $order;
+ }
+ $result = $xt -> db -> query( $sql );
+
+ while ( list( $cid, $name ) = $xt -> db -> fetchRow( $result ) ) {
+ $checked = array_key_exists( $cid, $checks ) ? "checked='checked'" : "";
+ $disabled = ( $cid == intval( $_GET['cid'] ) ) ? "disabled='yes'" : "";
+ $level = 1;
+ echo "
+ <tr style='text-align: left;'>
+ <td width='30%' class='head'>$name</td>
+ <td class='head'>
+ <input type='checkbox' name='cid-" . $cid . "' value='0' " . $checked . " " . $disabled . "/>
+ </td>
+ </tr>\n";
+ $arr = $xt -> getChildTreeArray( $cid, $order );
+ foreach ( $arr as $cat ) {
+ $cat['prefix'] = str_replace( ".", "-", $cat['prefix'] );
+ $catpath = " " . $cat['prefix'] . " " . $xtubemyts -> htmlSpecialCharsStrip( $cat[$title] );
+ $checked = array_key_exists( $cat['cid'], $checks ) ? "checked='checked'" : "";
+ $disabled = ( $cat['cid'] == intval( $_GET['cid'] ) ) ? "disabled='yes'" : "";
+ $level = substr_count( $cat['prefix'], '-' ) + 1;
+// echo "<tr><td>" . $catpath . "<input type='checkbox' name='cid-" . $cat['cid'] . "' value='0' " . $checked . " " . $disabled . "/></td></tr>\n";
+ echo "
+ <tr style='text-align: left;'>
+ <td width='30%' class='even'>$catpath</td>
+ <td class='even'>
+ <input type='checkbox' name='cid-" . $cat['cid'] . "' value='0' " . $checked . " " . $disabled . "/>
+ </td>
+ </tr>\n";
+ }
+
+ }
+ echo "<tr>
+ <td width='30%' ></td>
+ <td style='text-align: left;'>
+ <input type='submit' class='mainbutton' value='save'/>
+ <input type='hidden' name='op' value='save'/>
+ <input type='hidden' name='lid' value='" . $itemid . "'/>
+ </td>
+ </tr>";
+ echo "</table></form></div>\n";
+}
+
+switch ( strtolower( $op ) ) {
+ case 'save':
+ // first delete all alternate categories for this topic
+ $sql = "DELETE FROM " . $xoopsDB -> prefix( 'xoopstube_altcat' ) . " WHERE lid=" . $lid;
+ if ( !$result = $xoopsDB -> query( $sql ) ) {
+ XoopsErrorHandler_HandleError( E_USER_WARNING, $sql, __FILE__, __LINE__ );
+ return false;
+ }
+
+ $k = array_keys( $_REQUEST );
+ foreach( $k as $sid ) {
+ if ( preg_match( "/cid-([0-9]*)/", $sid, $cid ) ) {
+ $sql = "INSERT INTO " . $xoopsDB -> prefix( 'xoopstube_altcat' ) . "(cid, lid) VALUES('" . $cid[1] . "','" . $lid . "')";
+ if ( !$result = $xoopsDB -> query( $sql ) ) {
+ XoopsErrorHandler_HandleError( E_USER_WARNING, $sql, __FILE__, __LINE__ );
+ return false;
+ }
+ }
+ }
+ redirect_header( "index.php", 1, _AM_XTUBE_ALTCAT_CREATED );
+ break;
+
+ case 'main':
+ default:
+ xoops_cp_header();
+ xtube_adminmenu( _AM_XTUBE_MALTCAT );
+ echo "<fieldset><legend style='font-weight: bold; color: #0A3760;'>" . _AM_XTUBE_ALTCAT_MODIFYF . "</legend>\n
+ <div style='padding: 8px;'>" . _AM_XTUBE_ALTCAT_INFOTEXT . "</div>\n
+ </fieldset>\n
+ ";
+
+ echo "<div style='text-align: left;'><h3>=====> " . $_REQUEST['title'] . " <=====</h3></div>";
+ // Get an array of all alternate categories for this topic
+ $sql = $xoopsDB -> query( "SELECT cid FROM " . $xoopsDB -> prefix( 'xoopstube_altcat' ) . " WHERE lid='" . $lid . "' ORDER BY lid" );
+ $altcats = array();
+ while ( $altcat = $xoopsDB -> fetchArray( $sql ) ) {
+ $altcats[$altcat['cid']] = true;
+ }
+ $mytree = new XoopsTree( $xoopsDB -> prefix( 'xoopstube_cat' ), 'cid', 'pid' );
+ makeTreeCheckTable( $mytree, $lid, "title", $altcats );
+ xoops_cp_footer();
+}
+
+?>
\ No newline at end of file
Added: XoopsModules/mytube/releases/1.04/mytube/admin/brokenvideo.php
===================================================================
--- XoopsModules/mytube/releases/1.04/mytube/admin/brokenvideo.php (rev 0)
+++ XoopsModules/mytube/releases/1.04/mytube/admin/brokenvideo.php 2012-01-31 20:26:11 UTC (rev 8863)
@@ -0,0 +1,134 @@
+<?php
+/**
+ * $Id: brokenvideo.php
+ * Module: MyTube
+ */
+
+include 'admin_header.php';
+
+global $imagearray, $xoopsModule;
+
+$op = xtube_cleanRequestVars( $_REQUEST, 'op', '' );
+$lid = xtube_cleanRequestVars( $_REQUEST, 'lid', 0 );
+
+switch ( strtolower( $op ) ) {
+ case "updatenotice":
+ $ack = xtube_cleanRequestVars( $_REQUEST, 'ack', 0 );
+ $con = xtube_cleanRequestVars( $_REQUEST, 'con', 1 );
+
+ if ( $ack && !$con ) {
+ $acknowledged = ( $ack == 0 ) ? 1 : 0;
+ $sql = "UPDATE " . $xoopsDB -> prefix( 'xoopstube_broken' ) . " SET acknowledged=" . $acknowledged;
+ if ( $acknowledged == 0 ) {
+ $sql .= ", confirmed=0 ";
+ }
+ $sql .= " WHERE lid=" . $lid;
+ if ( !$result = $xoopsDB -> queryF( $sql ) ) {
+ XoopsErrorHandler_HandleError( E_USER_WARNING, $sql, __FILE__, __LINE__ );
+ return false;
+ }
+ $update_mess = _AM_XTUBE_BROKEN_NOWACK;
+ }
+
+ if ( $con ) {
+ $confirmed = ( $con == 0 ) ? 1 : 0;
+ $sql = "UPDATE " . $xoopsDB -> prefix( 'xoopstube_broken' ) . " SET confirmed=" . $confirmed;
+ if ( $confirmed == 1 ) {
+ $sql .= ", acknowledged=" . $confirmed;
+ }
+ $sql .= " WHERE lid=" . $lid;
+ if ( !$result = $xoopsDB -> queryF( $sql ) ) {
+ XoopsErrorHandler_HandleError( E_USER_WARNING, $sql, __FILE__, __LINE__ );
+ return false;
+ }
+ $update_mess = _AM_XTUBE_BROKEN_NOWCON;
+ }
+ redirect_header( "brokenvideo.php?op=default", 1, $update_mess );
+ break;
+
+ case "delbrokenvideos":
+ $xoopsDB -> queryF( "DELETE FROM " . $xoopsDB -> prefix( 'xoopstube_broken' ) . " WHERE lid=" . $lid );
+ $xoopsDB -> queryF( "DELETE FROM " . $xoopsDB -> prefix( 'xoopstube_videos' ) . " WHERE lid=" . $lid );
+ redirect_header( "brokenvideo.php?op=default", 1, _AM_XTUBE_BROKENFILEDELETED );
+ exit();
+ break;
+
+ case "ignorebrokenvideos":
+ $xoopsDB -> queryF( "DELETE FROM " . $xoopsDB -> prefix( 'xoopstube_broken' ) . " WHERE lid=" . $lid );
+ redirect_header( "brokenvideo.php?op=default", 1, _AM_XTUBE_BROKEN_FILEIGNORED );
+ break;
+
+ default:
+ $result = $xoopsDB -> query( "SELECT * FROM " . $xoopsDB -> prefix( 'xoopstube_broken' ) . " ORDER BY reportid" );
+ $totalbrokenvideos = $xoopsDB -> getRowsNum( $result );
+
+ xoops_cp_header();
+ xtube_adminmenu( "<h4>" . _AM_XTUBE_BROKEN_FILE . "</h4>" );
+
+ echo " <div style='padding:5px; background-color: #EEEEEE; border: 1px solid #D9D9D9;'>
+ <span style='font-weight: bold; color: #0A3760;'>" . _AM_XTUBE_BROKEN_REPORTINFO . "<br /><br /></span>\n
+ <span style='padding: 12px;'>" . _AM_XTUBE_BROKEN_REPORTSNO . "<b>$totalbrokenvideos</b><br /><br /><span>\n
+ <div style='padding: 8px;'><li> " . $imagearray['ignore'] . " " . _AM_XTUBE_BROKEN_IGNOREDESC . "<br />
+ <li> " . $imagearray['editimg'] . " " . _AM_XTUBE_BROKEN_EDITDESC . "<br />
+ <li> " . $imagearray['deleteimg'] . " " . _AM_XTUBE_BROKEN_DELETEDESC . "</div>\n
+ </div><br />\n
+ ";
+
+ echo "<table width='100%' border='0' cellspacing='1' cellpadding='2' class='outer'>\n";
+ echo "<tr style='text-align: center;'>\n";
+ echo "<th width='3%' style='text-align: center;'>" . _AM_XTUBE_BROKEN_ID . "</th>\n";
+ echo "<th width='35%' style='text-align: left;'>" . _AM_XTUBE_BROKEN_TITLE . "</th>\n";
+ echo "<th>" . _AM_XTUBE_BROKEN_REPORTER . "</th>\n";
+ echo "<th>" . _AM_XTUBE_BROKEN_FILESUBMITTER . "</th>\n";
+ echo "<th>" . _AM_XTUBE_BROKEN_DATESUBMITTED . "</th>\n";
+ echo "<th>" . _AM_XTUBE_BROKEN_ACKNOWLEDGED . "</th>\n";
+ echo "<th>" . _AM_XTUBE_BROKEN_DCONFIRMED . "</th>\n";
+ echo "<th style='text-align: center;'>" . _AM_XTUBE_BROKEN_ACTION . "</th>\n";
+ echo "</tr>\n";
+
+ if ( $totalbrokenvideos == 0 ) {
+ echo "<tr style='text-align: center;'><td style='text-align: center;' class='head' colspan='8'>" . _AM_XTUBE_BROKEN_NOFILEMATCH . "</td></tr>";
+ } else {
+ while ( list( $reportid, $lid, $sender, $ip, $date, $confirmed, $acknowledged ) = $xoopsDB -> fetchRow( $result ) ) {
+ $result2 = $xoopsDB -> query( "SELECT cid, title, vidid, submitter FROM " . $xoopsDB -> prefix( 'xoopstube_videos' ) . " WHERE lid=$lid" );
+ list( $cid, $videoshowname, $vidid, $submitter ) = $xoopsDB -> fetchRow( $result2 );
+ if ( $sender != 0 ) {
+ $result3 = $xoopsDB -> query( "SELECT uname, email FROM " . $xoopsDB -> prefix( "users" ) . " WHERE uid=" . $sender . "" );
+ list( $sendername, $email ) = $xoopsDB -> fetchRow( $result3 );
+ }
+ $result4 = $xoopsDB -> query( "SELECT uname, email FROM " . $xoopsDB -> prefix( "users" ) . " WHERE uid=" . $sender . "" );
+ list( $ownername, $owneremail ) = $xoopsDB -> fetchRow( $result4 );
+
+ $ack_image = ( $acknowledged ) ? $imagearray['ack_yes'] : $imagearray['ack_no'];
+ $con_image = ( $confirmed ) ? $imagearray['con_yes'] : $imagearray['con_no'];
+
+ echo "<tr style='text-align: center;'>\n";
+ echo "<td class='head'>$reportid</td>\n";
+ echo "<td class='even' style='text-align: left;'><a href='" . XOOPS_URL . "/modules/" . $xoopsModule -> getVar( 'dirname' ) . "/singlevideo.php?cid=" . $cid . "&lid=" . $lid . "' target='_blank'>" . $videoshowname . "</a></td>\n";
+
+ if ( $email == "" ) {
+ echo "<td class='even'>$sendername ($ip)";
+ } else {
+ echo "<td class='even'><a href='mailto:$email'>$sendername</a> ($ip)";
+ }
+ if ( $owneremail == '' ) {
+ echo "<td class='even'>$ownername";
+ } else {
+ echo "<td class='even'><a href='mailto:$owneremail'>$ownername</a>";
+ }
+ echo "</td>\n";
+ echo "<td class='even' style='text-align: center;'>" . formatTimestamp( $date, $xoopsModuleConfig['dateformat'] ) . "</td>\n";
+ echo "<td class='even'><a href='brokenvideo.php?op=updateNotice&lid=$lid&ack=$acknowledged'>" . $ack_image . " </a></td>\n";
+ echo "<td class='even'><a href='brokenvideo.php?op=updateNotice&lid=" . $lid . "&con=" . intval( $confirmed ) . "'>" . $con_image . "</a></td>\n";
+ echo "<td class='even' style='text-align: center;' nowrap>\n";
+ echo "<a href='brokenvideo.php?op=ignoreBrokenvideos&lid=" . $lid . "'>" . $imagearray['ignore'] . "</a>\n";
+ echo "<a href='index.php?op=edit&lid=" . $lid . "'>" . $imagearray['editimg'] . "</a>\n";
+ echo "<a href='brokenvideo.php?op=delBrokenvideos&lid=" . $lid . "'>" . $imagearray['deleteimg'] . "</a>\n";
+ echo "</td></tr>\n";
+ }
+ }
+ echo"</table>";
+}
+xoops_cp_footer...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 20:10:05
|
Revision: 8862
http://xoops.svn.sourceforge.net/xoops/?rev=8862&view=rev
Author: txmodxoops
Date: 2012-01-31 20:09:55 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
release 1.04
Added Paths:
-----------
XoopsModules/mytube/releases/1.04/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dj...@us...> - 2012-01-31 20:07:46
|
Revision: 8861
http://xoops.svn.sourceforge.net/xoops/?rev=8861&view=rev
Author: djculex
Date: 2012-01-31 20:07:37 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
- Return only year in education & job fields
- Adjusted css for Crome, Opera, IE and FF
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/class/db.php
XoopsModules/smallworld/trunk/smallworld/css/smallworld.css
XoopsModules/smallworld/trunk/smallworld/include/functions.php
XoopsModules/smallworld/trunk/smallworld/js/jquery.stepy.js
XoopsModules/smallworld/trunk/smallworld/js/smallworld.js
Modified: XoopsModules/smallworld/trunk/smallworld/class/db.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/db.php 2012-01-31 20:06:11 UTC (rev 8860)
+++ XoopsModules/smallworld/trunk/smallworld/class/db.php 2012-01-31 20:07:37 UTC (rev 8861)
@@ -39,8 +39,8 @@
while ($start<=$end) {
$msg[$start]['employer'] = $employer[$start];
$msg[$start]['position'] = $position[$start];
- $msg[$start]['jobstart'] = date('d-m-Y',$jobstart[$start]);
- $msg[$start]['jobstop'] = date('d-m-Y',$jobstop[$start]);
+ $msg[$start]['jobstart'] = $jobstart[$start];
+ $msg[$start]['jobstop'] = $jobstop[$start];
$msg[$start]['description'] = $description[$start];
$start++;
}
@@ -64,8 +64,8 @@
while ($start<=$end) {
$msg[$start]['school_type'] = $school_type[$start];
$msg[$start]['school'] = $arr7[$school[$start]];
- $msg[$start]['schoolstart'] = date('d-m-Y',$schoolstart[$start]);
- $msg[$start]['schoolstop'] = date('d-m-Y',$schoolstop[$start]);
+ $msg[$start]['schoolstart'] = date('Y',$schoolstart[$start]);
+ $msg[$start]['schoolstop'] = date('Y',$schoolstop[$start]);
$start++;
}
return $msg;
@@ -185,8 +185,8 @@
$schoolstop = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['schoolstop'])));
$jobemployer = Smallworld_sanitize(serialize($_POST['employer']));
$jobposition = Smallworld_sanitize(serialize($_POST['position']));
- $jobstart = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['jobstart'])));
- $jobstop = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['jobstop'])));
+ $jobstart = Smallworld_sanitize(serialize(Smallworld_YearOfArray ($_POST['jobstart'])));
+ $jobstop = Smallworld_sanitize(serialize(Smallworld_YearOfArray ($_POST['jobstop'])));
$jobdescription = Smallworld_sanitize(serialize($_POST['description']));
$sql = '';
Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-31 20:06:11 UTC (rev 8860)
+++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-31 20:07:37 UTC (rev 8861)
@@ -162,7 +162,6 @@
border-left: none;
background: #eef;
padding: 10px 20px 20px;
- width: 90%;
}
#smallworld_messagecounter_id {
@@ -225,19 +224,16 @@
}
.smallworld_content legend {
background-color:#FFCCFF;
-
border-width:1px 0px 1px 0px;
border-style:solid;
border-color:#333333;
-
color:#333333;
font-size:110%;
font-weight:600;
-
padding:3px 5px;
- margin:0px 0px 2px 0px;
+ /*margin:0px 0px 2px 0px;
position:relative;
- top: -15px;
+ top: -15px;*/
}
.smallworld_content label {
color:#888;
@@ -363,18 +359,38 @@
a.button-back:hover, a.button-next:hover, .finish:hover { background-color: #69C; }
-fieldset.step { border: 1px solid #DDD; clear: left; font: 10px verdana;}
+fieldset.step {
+ border: 1px solid #DDD;
+ clear: left;
+ font: 10px verdana;
+}
+
fieldset.step label {
color: #444444;
display: block;
font: bold 10px verdana;
margin: 0 0 0 2px;
}
-fieldset.step legend { color: #4080BF; font: bold 14px verdana; padding: 0 2px 3px 2px; }
-fieldset.step input, fieldset.step textarea, fieldset.step select { border: 1px solid #AAA; font: 10px verdana; margin-left: 7px; }
+fieldset.step legend {
+ color: #4080BF;
+ font: bold 14px verdana;
+ padding: 0 2px 3px 2px;
+}
-li.error-image { background: url('../images/error.png') no-repeat right top; }
+fieldset.step input, fieldset.step textarea, fieldset.step select {
+ border: 1px solid #AAA;
+ font: 10px verdana;
+ margin-left: 7px;
+}
+fieldset.step #realname, #partner, input[name='emailtype[]'], input[name='screenname_type[]'] {
+ width:40%;
+}
+
+li.error-image {
+ background: url('../images/error.png') no-repeat right top;
+}
+
ul.stepy-titles { list-style: none; margin: 0; padding: 0; width: 100%; }
ul.stepy-titles li { color: #DDD; cursor: pointer; font: bold 18px verdana; float: left; padding: 10px; }
ul.stepy-titles li.current-step { color: #369; cursor: auto; }
@@ -527,7 +543,7 @@
position:absolute;
left:150px;
margin: 0 10px 0 0;
- width: 55px;
+ width: 10%;
}
input.job,input.jobdesc {
Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-31 20:06:11 UTC (rev 8860)
+++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-31 20:07:37 UTC (rev 8861)
@@ -92,6 +92,14 @@
return $data;
}
+function Smallworld_YearOfArray ($array) {
+ $data = array();
+ foreach ($array as $k => $v) {
+ $data[$k] = $v;
+ }
+ return $data;
+}
+
function Smallworld_CreateIndexFiles ($folderUrl) {
$myts =& MyTextSanitizer::getInstance();
file_put_contents($folderUrl.'index.html', "<script>history.go(-1);</script>");
Modified: XoopsModules/smallworld/trunk/smallworld/js/jquery.stepy.js
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/js/jquery.stepy.js 2012-01-31 20:06:11 UTC (rev 8860)
+++ XoopsModules/smallworld/trunk/smallworld/js/jquery.stepy.js 2012-01-31 20:07:37 UTC (rev 8861)
@@ -57,7 +57,7 @@
xoops_smallworldtitlesWrapper = xoops_smallworld('<ul/>', { id: id + '-titles', 'class': 'stepy-titles' }),
description = '',
title = '',
- xoops_smallworldlegend = null,
+ xoops_smallworldlegend = false,
hasLegend = true,
isForm = xoops_smallworldthis.is('form'),
onSubmit = '',
Modified: XoopsModules/smallworld/trunk/smallworld/js/smallworld.js
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-31 20:06:11 UTC (rev 8860)
+++ XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-31 20:07:37 UTC (rev 8861)
@@ -41,7 +41,7 @@
if (xoops_smallworld('#smallworld_regform1').length) { // implies *not* zero
xoops_smallworld('#smallworld_regform1').show();
xoops_smallworld.fn.colorbox({
- width:"auto",
+ width:"50%",
height:"70%",
inline:true,
onComplete: function() {
@@ -175,15 +175,15 @@
xoops_smallworld(".jobstart" ).datepicker({
changeMonth: true,
changeYear: true,
- dateFormat: 'dd-mm-yy',
- yearRange: '-100:+0'
+ dateFormat: 'yy',
+ yearRange: '-100:+0',
});
// Attach jquery-ui datepicker to form.
xoops_smallworld(".jobstop" ).datepicker({
changeMonth: true,
changeYear: true,
- dateFormat: 'dd-mm-yy',
+ dateFormat: 'yy',
yearRange: '-100:+0'
});
@@ -404,7 +404,7 @@
};
}); //close click
});
-
+
// Attach on clik open education & work (..more) dialogues
xoops_smallworld('#_smallworld_workmore').live('click',function(){
if (xoops_smallworld('#workfull').length) { // implies *not* zero
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 20:06:25
|
Revision: 8860
http://xoops.svn.sourceforge.net/xoops/?rev=8860&view=rev
Author: txmodxoops
Date: 2012-01-31 20:06:11 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Alpha 1
Added Paths:
-----------
XoopsModules/mytube/branches/mytube/
XoopsModules/mytube/branches/mytube/admin/
XoopsModules/mytube/branches/mytube/admin/about.php
XoopsModules/mytube/branches/mytube/admin/admin_footer.php
XoopsModules/mytube/branches/mytube/admin/admin_header.php
XoopsModules/mytube/branches/mytube/admin/altcat.php
XoopsModules/mytube/branches/mytube/admin/broken.php
XoopsModules/mytube/branches/mytube/admin/cat.php
XoopsModules/mytube/branches/mytube/admin/index.html
XoopsModules/mytube/branches/mytube/admin/index.php
XoopsModules/mytube/branches/mytube/admin/menu.php
XoopsModules/mytube/branches/mytube/admin/mod.php
XoopsModules/mytube/branches/mytube/admin/permissions.php
XoopsModules/mytube/branches/mytube/admin/videos.php
XoopsModules/mytube/branches/mytube/admin/votedata.php
XoopsModules/mytube/branches/mytube/altcat.php
XoopsModules/mytube/branches/mytube/blocks/
XoopsModules/mytube/branches/mytube/blocks/blocks_altcat.php
XoopsModules/mytube/branches/mytube/blocks/blocks_broken.php
XoopsModules/mytube/branches/mytube/blocks/blocks_cat.php
XoopsModules/mytube/branches/mytube/blocks/blocks_mod.php
XoopsModules/mytube/branches/mytube/blocks/blocks_videos.php
XoopsModules/mytube/branches/mytube/blocks/blocks_votedata.php
XoopsModules/mytube/branches/mytube/blocks/index.html
XoopsModules/mytube/branches/mytube/broken.php
XoopsModules/mytube/branches/mytube/cat.php
XoopsModules/mytube/branches/mytube/class/
XoopsModules/mytube/branches/mytube/class/index.html
XoopsModules/mytube/branches/mytube/class/myts_extended.php
XoopsModules/mytube/branches/mytube/class/mytube_altcat.php
XoopsModules/mytube/branches/mytube/class/mytube_broken.php
XoopsModules/mytube/branches/mytube/class/mytube_cat.php
XoopsModules/mytube/branches/mytube/class/mytube_mod.php
XoopsModules/mytube/branches/mytube/class/mytube_videos.php
XoopsModules/mytube/branches/mytube/class/mytube_votedata.php
XoopsModules/mytube/branches/mytube/css/
XoopsModules/mytube/branches/mytube/css/admin.css
XoopsModules/mytube/branches/mytube/css/index.html
XoopsModules/mytube/branches/mytube/css/style.css
XoopsModules/mytube/branches/mytube/docs/
XoopsModules/mytube/branches/mytube/docs/changelog.txt
XoopsModules/mytube/branches/mytube/docs/credits.txt
XoopsModules/mytube/branches/mytube/docs/index.html
XoopsModules/mytube/branches/mytube/docs/install.txt
XoopsModules/mytube/branches/mytube/docs/lang_diff.txt
XoopsModules/mytube/branches/mytube/docs/licence.txt
XoopsModules/mytube/branches/mytube/docs/readme.txt
XoopsModules/mytube/branches/mytube/header.php
XoopsModules/mytube/branches/mytube/images/
XoopsModules/mytube/branches/mytube/images/icons/
XoopsModules/mytube/branches/mytube/images/icons/index.html
XoopsModules/mytube/branches/mytube/images/icons/off.png
XoopsModules/mytube/branches/mytube/images/icons/on.png
XoopsModules/mytube/branches/mytube/images/index.html
XoopsModules/mytube/branches/mytube/images/menu/
XoopsModules/mytube/branches/mytube/images/menu/bg.png
XoopsModules/mytube/branches/mytube/images/menu/index.html
XoopsModules/mytube/branches/mytube/images/menu/left_both.png
XoopsModules/mytube/branches/mytube/images/menu/right_both.png
XoopsModules/mytube/branches/mytube/images/mytube_slogo.png
XoopsModules/mytube/branches/mytube/include/
XoopsModules/mytube/branches/mytube/include/configs.php
XoopsModules/mytube/branches/mytube/include/functions.php
XoopsModules/mytube/branches/mytube/include/index.html
XoopsModules/mytube/branches/mytube/include/install.php
XoopsModules/mytube/branches/mytube/index.php
XoopsModules/mytube/branches/mytube/language/
XoopsModules/mytube/branches/mytube/language/index.html
XoopsModules/mytube/branches/mytube/language/italian/
XoopsModules/mytube/branches/mytube/language/italian/admin.php
XoopsModules/mytube/branches/mytube/language/italian/blocks.php
XoopsModules/mytube/branches/mytube/language/italian/help/
XoopsModules/mytube/branches/mytube/language/italian/help/help.html
XoopsModules/mytube/branches/mytube/language/italian/help/index.html
XoopsModules/mytube/branches/mytube/language/italian/index.html
XoopsModules/mytube/branches/mytube/language/italian/main.php
XoopsModules/mytube/branches/mytube/language/italian/modinfo.php
XoopsModules/mytube/branches/mytube/mod.php
XoopsModules/mytube/branches/mytube/sql/
XoopsModules/mytube/branches/mytube/sql/index.html
XoopsModules/mytube/branches/mytube/sql/mysql.sql
XoopsModules/mytube/branches/mytube/templates/
XoopsModules/mytube/branches/mytube/templates/admin/
XoopsModules/mytube/branches/mytube/templates/admin/index.html
XoopsModules/mytube/branches/mytube/templates/blocks/
XoopsModules/mytube/branches/mytube/templates/blocks/index.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_altcat_block_day.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_altcat_block_random.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_altcat_block_recent.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_broken_block_day.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_broken_block_random.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_broken_block_recent.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_cat_block_day.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_cat_block_random.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_cat_block_recent.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_mod_block_day.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_mod_block_random.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_mod_block_recent.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_videos_block_day.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_videos_block_random.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_videos_block_recent.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_votedata_block_day.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_votedata_block_random.html
XoopsModules/mytube/branches/mytube/templates/blocks/mytube_votedata_block_recent.html
XoopsModules/mytube/branches/mytube/templates/index.html
XoopsModules/mytube/branches/mytube/templates/mytube_altcat.html
XoopsModules/mytube/branches/mytube/templates/mytube_broken.html
XoopsModules/mytube/branches/mytube/templates/mytube_cat.html
XoopsModules/mytube/branches/mytube/templates/mytube_footer.html
XoopsModules/mytube/branches/mytube/templates/mytube_header.html
XoopsModules/mytube/branches/mytube/templates/mytube_index.html
XoopsModules/mytube/branches/mytube/templates/mytube_mod.html
XoopsModules/mytube/branches/mytube/templates/mytube_videos.html
XoopsModules/mytube/branches/mytube/templates/mytube_votedata.html
XoopsModules/mytube/branches/mytube/videos.php
XoopsModules/mytube/branches/mytube/votedata.php
XoopsModules/mytube/branches/mytube/xoops_version.php
Added: XoopsModules/mytube/branches/mytube/admin/about.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/about.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/about.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,43 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+$aboutAdmin = new ModuleAdmin();
+echo $aboutAdmin->addNavigation("about.php");
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/admin_footer.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/admin_footer.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/admin_footer.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+global $pathImageAdmin;
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src='" . $pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> "._AM_MYTUBE_MAINTAINEDBY." <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+ xoops_cp_footer();
Added: XoopsModules/mytube/branches/mytube/admin/admin_header.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/admin_header.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/admin_header.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,98 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+include_once '../include/functions.php';
+
+$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
+$globlang = $GLOBALS['xoopsConfig']['language'];
+
+if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
+ include_once $pathDir.'/language/'.$globlang.'/main.php';
+ }else{
+ include_once $pathDir.'/language/english/main.php';
+ }
+
+if ( file_exists($pathDir.'/moduleadmin.php')){
+ include_once $pathDir.'/moduleadmin.php';
+ //return true;
+ }else{
+ xoops_cp_header();
+ echo xoops_error(_AM_MYTUBE_MODULEADMIN_MISSING);
+ xoops_cp_footer();
+ //return false;
+ }
+$dirname = basename(dirname(dirname( __FILE__ ) ));
+$module_handler =& xoops_gethandler('module');
+$xoopsModule = & $module_handler->getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+$altcatHandler=& xoops_getModuleHandler('mytube_altcat', $dirname );
+$brokenHandler=& xoops_getModuleHandler('mytube_broken', $dirname );
+$catHandler=& xoops_getModuleHandler('mytube_cat', $dirname );
+$modHandler=& xoops_getModuleHandler('mytube_mod', $dirname );
+$videosHandler=& xoops_getModuleHandler('mytube_videos', $dirname );
+$votedataHandler=& xoops_getModuleHandler('mytube_votedata', $dirname );
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+
+$style_admin = "../css/admin.css";
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
Added: XoopsModules/mytube/branches/mytube/admin/altcat.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/altcat.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/altcat.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,156 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mytube_CleanVars($_REQUEST, 'op', 'list_altcat', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$altcat_waiting = $altcatHandler->getCount($criteria);
+$status_menu = mytube_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_altcat":
+ $altcat_admin = new ModuleAdmin();
+ echo $altcat_admin->addNavigation('altcat.php');
+ if ($status_menu == 1){
+ $altcat_admin->addItemButton(_AM_MYTUBE_ALTCATNEW, 'altcat.php?op=new_altcat', 'add');
+ }else{
+ $altcat_admin->addItemButton(_AM_MYTUBE_ALTCAT_LIST, 'altcat.php?op=list_altcat', 'list');
+ $altcat_admin->addItemButton(_AM_MYTUBE_ALTCATNEW, 'altcat.php?op=new_altcat', 'add');
+ }
+ echo $altcat_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("altcat_lid");
+ $criteria->setOrder("ASC");
+ $numrows = $altcatHandler->getCount();
+ $altcat_arr = $altcatHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYTUBE_ALTCAT_CID."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYTUBE_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($altcat_arr) as $i)
+ {
+ if ( $altcat_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$altcat_arr[$i]->getVar("altcat_cid")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"altcat.php?op=edit_altcat&altcat_lid=".$altcat_arr[$i]->getVar("altcat_lid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"altcat.php?op=delete_altcat&altcat_lid=".$altcat_arr[$i]->getVar("altcat_lid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $altcatHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_altcat":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("altcat.php");
+ $member_admin->addItemButton(_AM_MYTUBE_ALTCAT_LIST, 'altcat.php?op=list_altcat', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $altcatHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_altcat":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("altcat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["altcat_lid"])) {
+ $obj =& $altcatHandler->get($_REQUEST["altcat_lid"]);
+ } else {
+ $obj =& $altcatHandler->create();
+ }
+ //Form altcat_cid
+ $obj->setVar("altcat_cid", $_REQUEST["altcat_cid"]);
+
+
+ if ($altcatHandler->insert($obj)) {
+ redirect_header("altcat.php?op=list_altcat", 2, _AM_MYTUBE_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_altcat":
+ $obj = $altcatHandler->get($_REQUEST["altcat_lid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_altcat":
+ $obj =& $altcatHandler->get($_REQUEST["altcat_lid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("altcat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($altcatHandler->delete($obj)) {
+ redirect_header("altcat.php", 3, _AM_MYTUBE_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "altcat_lid" => $_REQUEST["altcat_lid"], "op" => "delete_altcat"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYTUBE_FORMSUREDEL, $obj->getVar("altcat")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/broken.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/broken.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/broken.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,180 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mytube_CleanVars($_REQUEST, 'op', 'list_broken', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$broken_waiting = $brokenHandler->getCount($criteria);
+$status_menu = mytube_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_broken":
+ $broken_admin = new ModuleAdmin();
+ echo $broken_admin->addNavigation('broken.php');
+ if ($status_menu == 1){
+ $broken_admin->addItemButton(_AM_MYTUBE_BROKENNEW, 'broken.php?op=new_broken', 'add');
+ }else{
+ $broken_admin->addItemButton(_AM_MYTUBE_BROKEN_LIST, 'broken.php?op=list_broken', 'list');
+ $broken_admin->addItemButton(_AM_MYTUBE_BROKENNEW, 'broken.php?op=new_broken', 'add');
+ }
+ echo $broken_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("broken_reportid");
+ $criteria->setOrder("ASC");
+ $numrows = $brokenHandler->getCount();
+ $broken_arr = $brokenHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_LID."</th>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_SENDER."</th>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_IP."</th>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_DATE."</th>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_CONFIRMED."</th>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_ACKNOWLEDGED."</th>
+ <th align=\"center\">"._AM_MYTUBE_BROKEN_TITLE."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYTUBE_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($broken_arr) as $i)
+ {
+ if ( $broken_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$broken_arr[$i]->getVar("broken_lid")."</td>";
+ echo "<td align='center'>".XoopsUser::getUnameFromId($broken_arr[$i]->getVar("broken_sender"),"S")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_ip")."</td>";
+ echo "<td align='center'>".formatTimeStamp($broken_arr[$i]->getVar("broken_date"),"S")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_confirmed")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_acknowledged")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_title")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"broken.php?op=edit_broken&broken_reportid=".$broken_arr[$i]->getVar("broken_reportid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"broken.php?op=delete_broken&broken_reportid=".$broken_arr[$i]->getVar("broken_reportid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $brokenHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_broken":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("broken.php");
+ $member_admin->addItemButton(_AM_MYTUBE_BROKEN_LIST, 'broken.php?op=list_broken', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $brokenHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_broken":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["broken_reportid"])) {
+ $obj =& $brokenHandler->get($_REQUEST["broken_reportid"]);
+ } else {
+ $obj =& $brokenHandler->create();
+ }
+ //Form broken_lid
+ $obj->setVar("broken_lid", $_REQUEST["broken_lid"]);
+ //Form broken_sender
+ $obj->setVar("broken_sender", $_REQUEST["broken_sender"]);
+ //Form broken_ip
+ $obj->setVar("broken_ip", $_REQUEST["broken_ip"]);
+ //Form broken_date
+ $obj->setVar("broken_date", mytube_convertDate($_REQUEST["broken_date"]));
+ //Form broken_confirmed
+ $obj->setVar("broken_confirmed", $_REQUEST["broken_confirmed"]);
+ //Form broken_acknowledged
+ $obj->setVar("broken_acknowledged", $_REQUEST["broken_acknowledged"]);
+ //Form broken_title
+ $obj->setVar("broken_title", $_REQUEST["broken_title"]);
+
+
+ if ($brokenHandler->insert($obj)) {
+ redirect_header("broken.php?op=list_broken", 2, _AM_MYTUBE_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_broken":
+ $obj = $brokenHandler->get($_REQUEST["broken_reportid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_broken":
+ $obj =& $brokenHandler->get($_REQUEST["broken_reportid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($brokenHandler->delete($obj)) {
+ redirect_header("broken.php", 3, _AM_MYTUBE_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "broken_reportid" => $_REQUEST["broken_reportid"], "op" => "delete_broken"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYTUBE_FORMSUREDEL, $obj->getVar("broken")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/cat.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/cat.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/cat.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,245 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mytube_CleanVars($_REQUEST, 'op', 'list_cat', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$cat_waiting = $catHandler->getCount($criteria);
+$status_menu = mytube_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_cat":
+ $cat_admin = new ModuleAdmin();
+ echo $cat_admin->addNavigation('cat.php');
+ if ($status_menu == 1){
+ $cat_admin->addItemButton(_AM_MYTUBE_CATNEW, 'cat.php?op=new_cat', 'add');
+ }else{
+ $cat_admin->addItemButton(_AM_MYTUBE_CAT_LIST, 'cat.php?op=list_cat', 'list');
+ $cat_admin->addItemButton(_AM_MYTUBE_CATNEW, 'cat.php?op=new_cat', 'add');
+ }
+ echo $cat_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("cat_cid");
+ $criteria->setOrder("ASC");
+ $numrows = $catHandler->getCount();
+ $cat_arr = $catHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYTUBE_CAT_PID."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_TITLE."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_IMGURL."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_DESCRIPTION."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_TOTAL."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_SPOTLIGHTTOP."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_SPOTLIGHTHIS."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_NOHTML."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_NOSMILEY."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_NOXCODES."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_NOIMAGES."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_NOBREAK."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_WEIGHT."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_CLIENT_ID."</th>
+ <th align=\"center\">"._AM_MYTUBE_CAT_BANNER_ID."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYTUBE_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($cat_arr) as $i)
+ {
+ if ( $cat_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$cat_arr[$i]->getVar("cat_pid")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_title")."</td>";
+ echo "<td align='center'><img src='".XOOPS_URL."/uploads/mytube/cat/cat_imgurl/".$cat_arr[$i]->getVar("cat_imgurl")."' height='30px' title='cat_imgurl' alt='cat_imgurl'></td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_description")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_total")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_spotlighttop")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_spotlighthis")."</td>";
+
+ $verif_cat_nohtml = ( $cat_arr[$i]->getVar("cat_nohtml") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_cat_nohtml."</td>";
+
+ $verif_cat_nosmiley = ( $cat_arr[$i]->getVar("cat_nosmiley") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_cat_nosmiley."</td>";
+
+ $verif_cat_noxcodes = ( $cat_arr[$i]->getVar("cat_noxcodes") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_cat_noxcodes."</td>";
+
+ $verif_cat_noimages = ( $cat_arr[$i]->getVar("cat_noimages") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_cat_noimages."</td>";
+
+ $verif_cat_nobreak = ( $cat_arr[$i]->getVar("cat_nobreak") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_cat_nobreak."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_weight")."</td>";
+ echo "<td align='center'>".XoopsUser::getUnameFromId($cat_arr[$i]->getVar("cat_client_id"),"S")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_banner_id")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"cat.php?op=edit_cat&cat_cid=".$cat_arr[$i]->getVar("cat_cid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"cat.php?op=delete_cat&cat_cid=".$cat_arr[$i]->getVar("cat_cid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $catHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_cat":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("cat.php");
+ $member_admin->addItemButton(_AM_MYTUBE_CAT_LIST, 'cat.php?op=list_cat', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $catHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_cat":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("cat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["cat_cid"])) {
+ $obj =& $catHandler->get($_REQUEST["cat_cid"]);
+ } else {
+ $obj =& $catHandler->create();
+ }
+ //Form cat_pid
+ $obj->setVar("cat_pid", $_REQUEST["cat_pid"]);
+ //Form cat_title
+ $obj->setVar("cat_title", $_REQUEST["cat_title"]);
+ //Form cat_imgurl
+ include_once XOOPS_ROOT_PATH."/class/uploader.php";
+ $uploaddir_cat_imgurl = XOOPS_ROOT_PATH."/uploads/mytube/cat/cat_imgurl/";
+ $uploader_cat_imgurl = new XoopsMediaUploader($uploaddir_cat_imgurl,
+ $GLOBALS["xoopsModuleConfig"]["cat_imgurl_mimetypes"],
+ $GLOBALS["xoopsModuleConfig"]["cat_imgurl_size"],
+ null, null);
+
+ if ($uploader_cat_imgurl->fetchMedia("cat_imgurl")) {
+ $uploader_cat_imgurl->setPrefix("cat_imgurl_") ;
+ $uploader_cat_imgurl->fetchMedia("cat_imgurl");
+ if (!$uploader_cat_imgurl->upload()) {
+ $errors = $uploader_cat_imgurl->getErrors();
+ redirect_header("javascript:history.go(-1)",3, $errors);
+ } else {
+ $obj->setVar("cat_imgurl", $uploader_cat_imgurl->getSavedFileName());
+ }
+ } else {
+ $obj->setVar("cat_imgurl", $_REQUEST["cat_imgurl"]);
+ }
+ //Form cat_description
+ $obj->setVar("cat_description", $_REQUEST["cat_description"]);
+ //Form cat_total
+ $obj->setVar("cat_total", $_REQUEST["cat_total"]);
+ //Form cat_spotlighttop
+ $obj->setVar("cat_spotlighttop", $_REQUEST["cat_spotlighttop"]);
+ //Form cat_spotlighthis
+ $obj->setVar("cat_spotlighthis", $_REQUEST["cat_spotlighthis"]);
+ //Form cat_nohtml
+ $verif_cat_nohtml = ($_REQUEST["cat_nohtml"] == 1) ? "1" : "0";
+ $obj->setVar("cat_nohtml", $verif_cat_nohtml);
+ //Form cat_nosmiley
+ $verif_cat_nosmiley = ($_REQUEST["cat_nosmiley"] == 1) ? "1" : "0";
+ $obj->setVar("cat_nosmiley", $verif_cat_nosmiley);
+ //Form cat_noxcodes
+ $verif_cat_noxcodes = ($_REQUEST["cat_noxcodes"] == 1) ? "1" : "0";
+ $obj->setVar("cat_noxcodes", $verif_cat_noxcodes);
+ //Form cat_noimages
+ $verif_cat_noimages = ($_REQUEST["cat_noimages"] == 1) ? "1" : "0";
+ $obj->setVar("cat_noimages", $verif_cat_noimages);
+ //Form cat_nobreak
+ $verif_cat_nobreak = ($_REQUEST["cat_nobreak"] == 1) ? "1" : "0";
+ $obj->setVar("cat_nobreak", $verif_cat_nobreak);
+ //Form cat_weight
+ $obj->setVar("cat_weight", $_REQUEST["cat_weight"]);
+ //Form cat_client_id
+ $obj->setVar("cat_client_id", $_REQUEST["cat_client_id"]);
+ //Form cat_banner_id
+ $obj->setVar("cat_banner_id", $_REQUEST["cat_banner_id"]);
+
+
+ if ($catHandler->insert($obj)) {
+ redirect_header("cat.php?op=list_cat", 2, _AM_MYTUBE_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_cat":
+ $obj = $catHandler->get($_REQUEST["cat_cid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_cat":
+ $obj =& $catHandler->get($_REQUEST["cat_cid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("cat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($catHandler->delete($obj)) {
+ redirect_header("cat.php", 3, _AM_MYTUBE_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "cat_cid" => $_REQUEST["cat_cid"], "op" => "delete_cat"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYTUBE_FORMSUREDEL, $obj->getVar("cat")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/index.html
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/index.html (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/index.html 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/index.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/index.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/index.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,68 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+ $indexAdmin = new ModuleAdmin();
+ //account "total"
+ $count_altcat = $altcatHandler->getCount();
+ //account "total"
+ $count_broken = $brokenHandler->getCount();
+ //account "total"
+ $count_cat = $catHandler->getCount();
+ //account "total"
+ $count_mod = $modHandler->getCount();
+ //account "total"
+ $count_videos = $videosHandler->getCount();
+ //account "total"
+ $count_votedata = $votedataHandler->getCount();
+ $indexAdmin->addInfoBox(_AM_MYTUBE_ALTCAT);
+ $indexAdmin->addInfoBoxLine(_AM_MYTUBE_ALTCAT,_AM_MYTUBE_THEREARE_ALTCAT, $count_altcat) ;
+ $indexAdmin->addInfoBox(_AM_MYTUBE_BROKEN);
+ $indexAdmin->addInfoBoxLine(_AM_MYTUBE_BROKEN,_AM_MYTUBE_THEREARE_BROKEN, $count_broken) ;
+ $indexAdmin->addInfoBox(_AM_MYTUBE_CAT);
+ $indexAdmin->addInfoBoxLine(_AM_MYTUBE_CAT,_AM_MYTUBE_THEREARE_CAT, $count_cat) ;
+ $indexAdmin->addInfoBox(_AM_MYTUBE_MOD);
+ $indexAdmin->addInfoBoxLine(_AM_MYTUBE_MOD,_AM_MYTUBE_THEREARE_MOD, $count_mod) ;
+ $indexAdmin->addInfoBox(_AM_MYTUBE_VIDEOS);
+ $indexAdmin->addInfoBoxLine(_AM_MYTUBE_VIDEOS,_AM_MYTUBE_THEREARE_VIDEOS, $count_videos) ;
+ $indexAdmin->addInfoBox(_AM_MYTUBE_VOTEDATA);
+ $indexAdmin->addInfoBoxLine(_AM_MYTUBE_VOTEDATA,_AM_MYTUBE_THEREARE_VOTEDATA, $count_votedata) ;
+ echo $indexAdmin->addNavigation("index.php");
+ echo $indexAdmin->renderIndex();
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/menu.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/menu.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/menu.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,89 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+
+$dirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathImageAdmin = $moduleInfo->getInfo("icons32");
+
+$adminmenu = array();
+
+$i = 1;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU1;
+$adminmenu[$i]["link"] = "admin/index.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU1_DESC;
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/home.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU2;
+$adminmenu[$i]["link"] = "admin/altcat.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU2_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/video_clip.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU3;
+$adminmenu[$i]["link"] = "admin/broken.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU3_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/video_broken.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU4;
+$adminmenu[$i]["link"] = "admin/cat.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU4_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/video_cat.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU5;
+$adminmenu[$i]["link"] = "admin/mod.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU5_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/video_mod.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU6;
+$adminmenu[$i]["link"] = "admin/videos.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU6_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/New video.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU7;
+$adminmenu[$i]["link"] = "admin/votedata.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU7_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/video_votedata.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYTUBE_ADMENU8;
+$adminmenu[$i]["link"] = "admin/about.php";
+//$adminmenu[$i]["desc"] = _MI_MYTUBE_ADMENU8_DESC;
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png";
+unset( $i );
+?>
\ No newline at end of file
Added: XoopsModules/mytube/branches/mytube/admin/mod.php
===================================================================
--- XoopsModules/mytube/branches/mytube/admin/mod.php (rev 0)
+++ XoopsModules/mytube/branches/mytube/admin/mod.php 2012-01-31 20:06:11 UTC (rev 8860)
@@ -0,0 +1,256 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYTUBE - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mytube
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.05 Sat 2012/01/14 6:37:04 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mytube_CleanVars($_REQUEST, 'op', 'list_mod', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$mod_waiting = $modHandler->getCount($criteria);
+$status_menu = mytube_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_mod":
+ $mod_admin = new ModuleAdmin();
+ echo $mod_admin->addNavigation('mod.php');
+ if ($status_menu == 1){
+ $mod_admin->addItemButton(_AM_MYTUBE_MODNEW, 'mod.php?op=new_mod', 'add');
+ }else{
+ $mod_admin->addItemButton(_AM_MYTUBE_MOD_LIST, 'mod.php?op=list_mod', 'list');
+ $mod_admin->addItemButton(_AM_MYTUBE_MODNEW, 'mod.php?op=new_mod', 'add');
+ }
+ echo $mod_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("mod_requestid");
+ $criteria->setOrder("ASC");
+ $numrows = $modHandler->getCount();
+ $mod_arr = $modHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYTUBE_MOD_LID."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_CID."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_TITLE."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_VIDID."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_SCREENSHOT."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_SUBMITTER."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_PUBLISHER."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_STATUS."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_DATE."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_HITS."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_RATING."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_VOTES."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_COMMENTS."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_VIDSOURCE."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_PUBLISHED."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_EXPIRED."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_UPDATED."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_OFFLINE."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_DESCRIPTION."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_MODIFYSUBMITTER."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_REQUESTDATE."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_VIDRATING."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_TIME."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_KEYWORDS."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_ITEM_TAG."</th>
+ <th align=\"center\">"._AM_MYTUBE_MOD_PICURL."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYTUBE_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($mod_arr) as $i)
+ {
+ if ( $mod_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$mod_arr[$i]->getVar("mod_lid")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_cid")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_title")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_vidid")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_screenshot")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_submitter")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_publisher")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_status")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_date")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_hits")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_rating")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_votes")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_comments")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_vidsource")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_published")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_expired")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_updated")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_offline")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_description")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_modifysubmitter")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_requestdate")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_vidrating")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_time")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_keywords")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_item_tag")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_picurl")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"mod.php?op=edit_mod&mod_requestid=".$mod_arr[$i]->getVar("mod_requestid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"mod.php?op=delete_mod&mod_requestid=".$mod_arr[$i]->getVar("mod_requestid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $modHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_mod":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("mod.php");
+ $member_admin->addItemButton(_AM_MYTUBE_MOD_LIST, 'mod.php?op=list_mod', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $modHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_mod":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("mod.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["mod_requestid"])) {
+ $obj =& $modHandler->get($_REQUEST["mod_requestid"]);
+ } else {
+ $obj =& $modHandler->create();
+ }
+ //Form mod_lid
+ $obj->setVar("mod_lid", $_REQUEST["mod_lid"]);
+ //Form mod_cid
+ $obj->setVar("mod_cid", $_REQUEST["mod_cid"]);
+ //Form mod_title
+ $obj->setVar("mod_title", $_REQUEST["mod_title"]);
+ //Form mod_vidid
+ $obj->setVar("mod_vidid", $_REQUEST["mod_vidid"]);
+ //Form mod_screenshot
+ $obj->setVar("mod_screenshot", $_REQUEST["mod_screenshot"]);
+ //Form mod_submitter
+ $obj->setVar("mod_submitter", $_REQUEST["mod_submitter"]);
+ //Form mod_publisher
+ $obj->setVar("mod_publisher", $_REQUEST["mod_publisher"]);
+ //Form mod_status
+ $obj->setVar("mod_status", $_REQUEST["mod_status"]);
+ //Form mod_date
+ $obj->setVar("mod_date", $_REQUEST["mod_date"]);
+ //Form mod_hits
+ $obj->setVar("mod_hits", $_REQUEST["mod_hits"]);
+ //Form mod_rating
+ $obj->setVar("mod_rating", $_REQUEST["mod_rating"]);
+ //Form mod_votes
+ $obj->setVar("mod_votes", $_REQUEST["mod_votes"]);
+ //Form mod_comments
+ $obj->setVar("mod_comments", $_REQUEST["mod_comments"]);
+ //Form mod_vidsource
+ $obj->setVar("mod_vidsource", $_REQUEST["mod_vidsource"]);
+ //Form mod_published
+ $obj->setVar("mod_published", $_REQUEST["mod_published"]);
+ //Form mod_expired
+ $obj->setVar("mod_expired", $_REQUEST["mod_expired"]);
+ //Form mo...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 20:00:26
|
Revision: 8859
http://xoops.svn.sourceforge.net/xoops/?rev=8859&view=rev
Author: txmodxoops
Date: 2012-01-31 20:00:16 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
releases
Added Paths:
-----------
XoopsModules/mytube/releases/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 19:53:51
|
Revision: 8858
http://xoops.svn.sourceforge.net/xoops/?rev=8858&view=rev
Author: txmodxoops
Date: 2012-01-31 19:53:42 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
trunk
Added Paths:
-----------
XoopsModules/mytube/trunk/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 19:51:16
|
Revision: 8857
http://xoops.svn.sourceforge.net/xoops/?rev=8857&view=rev
Author: txmodxoops
Date: 2012-01-31 19:51:08 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
branches
Added Paths:
-----------
XoopsModules/mytube/branches/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 19:40:22
|
Revision: 8856
http://xoops.svn.sourceforge.net/xoops/?rev=8856&view=rev
Author: txmodxoops
Date: 2012-01-31 19:40:11 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
New Folder for MyTube module
Added Paths:
-----------
XoopsModules/mytube/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 19:37:15
|
Revision: 8855
http://xoops.svn.sourceforge.net/xoops/?rev=8855&view=rev
Author: txmodxoops
Date: 2012-01-31 19:37:06 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Alpha 1 From zero created with TDMCreate module
Added Paths:
-----------
XoopsModules/mylinks/branches/timgno/mylinks/
XoopsModules/mylinks/branches/timgno/mylinks/admin/
XoopsModules/mylinks/branches/timgno/mylinks/admin/about.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_footer.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_header.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/broken.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/cat.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/index.html
XoopsModules/mylinks/branches/timgno/mylinks/admin/index.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/links.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/menu.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/mod.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/permissions.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/text.php
XoopsModules/mylinks/branches/timgno/mylinks/admin/votedata.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/
XoopsModules/mylinks/branches/timgno/mylinks/blocks/blocks_broken.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/blocks_cat.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/blocks_links.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/blocks_mod.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/blocks_text.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/blocks_votedata.php
XoopsModules/mylinks/branches/timgno/mylinks/blocks/index.html
XoopsModules/mylinks/branches/timgno/mylinks/broken.php
XoopsModules/mylinks/branches/timgno/mylinks/cat.php
XoopsModules/mylinks/branches/timgno/mylinks/class/
XoopsModules/mylinks/branches/timgno/mylinks/class/index.html
XoopsModules/mylinks/branches/timgno/mylinks/class/mylinks_broken.php
XoopsModules/mylinks/branches/timgno/mylinks/class/mylinks_cat.php
XoopsModules/mylinks/branches/timgno/mylinks/class/mylinks_links.php
XoopsModules/mylinks/branches/timgno/mylinks/class/mylinks_mod.php
XoopsModules/mylinks/branches/timgno/mylinks/class/mylinks_text.php
XoopsModules/mylinks/branches/timgno/mylinks/class/mylinks_votedata.php
XoopsModules/mylinks/branches/timgno/mylinks/css/
XoopsModules/mylinks/branches/timgno/mylinks/css/admin.css
XoopsModules/mylinks/branches/timgno/mylinks/css/index.html
XoopsModules/mylinks/branches/timgno/mylinks/css/style.css
XoopsModules/mylinks/branches/timgno/mylinks/docs/
XoopsModules/mylinks/branches/timgno/mylinks/docs/changelog.txt
XoopsModules/mylinks/branches/timgno/mylinks/docs/credits.txt
XoopsModules/mylinks/branches/timgno/mylinks/docs/index.html
XoopsModules/mylinks/branches/timgno/mylinks/docs/install.txt
XoopsModules/mylinks/branches/timgno/mylinks/docs/lang_diff.txt
XoopsModules/mylinks/branches/timgno/mylinks/docs/licence.txt
XoopsModules/mylinks/branches/timgno/mylinks/docs/readme.txt
XoopsModules/mylinks/branches/timgno/mylinks/header.php
XoopsModules/mylinks/branches/timgno/mylinks/images/
XoopsModules/mylinks/branches/timgno/mylinks/images/icons/
XoopsModules/mylinks/branches/timgno/mylinks/images/icons/index.html
XoopsModules/mylinks/branches/timgno/mylinks/images/icons/off.png
XoopsModules/mylinks/branches/timgno/mylinks/images/icons/on.png
XoopsModules/mylinks/branches/timgno/mylinks/images/index.html
XoopsModules/mylinks/branches/timgno/mylinks/images/menu/
XoopsModules/mylinks/branches/timgno/mylinks/images/menu/bg.png
XoopsModules/mylinks/branches/timgno/mylinks/images/menu/index.html
XoopsModules/mylinks/branches/timgno/mylinks/images/menu/left_both.png
XoopsModules/mylinks/branches/timgno/mylinks/images/menu/right_both.png
XoopsModules/mylinks/branches/timgno/mylinks/images/mylinks_slogo.png
XoopsModules/mylinks/branches/timgno/mylinks/include/
XoopsModules/mylinks/branches/timgno/mylinks/include/configs.php
XoopsModules/mylinks/branches/timgno/mylinks/include/functions.php
XoopsModules/mylinks/branches/timgno/mylinks/include/index.html
XoopsModules/mylinks/branches/timgno/mylinks/include/install.php
XoopsModules/mylinks/branches/timgno/mylinks/index.php
XoopsModules/mylinks/branches/timgno/mylinks/language/
XoopsModules/mylinks/branches/timgno/mylinks/language/index.html
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/admin.php
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/blocks.php
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/help/
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/help/help.html
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/help/index.html
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/index.html
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/main.php
XoopsModules/mylinks/branches/timgno/mylinks/language/italian/modinfo.php
XoopsModules/mylinks/branches/timgno/mylinks/links.php
XoopsModules/mylinks/branches/timgno/mylinks/mod.php
XoopsModules/mylinks/branches/timgno/mylinks/sql/
XoopsModules/mylinks/branches/timgno/mylinks/sql/index.html
XoopsModules/mylinks/branches/timgno/mylinks/sql/mysql.sql
XoopsModules/mylinks/branches/timgno/mylinks/templates/
XoopsModules/mylinks/branches/timgno/mylinks/templates/admin/
XoopsModules/mylinks/branches/timgno/mylinks/templates/admin/index.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/index.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_broken_block_day.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_broken_block_random.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_broken_block_recent.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_cat_block_day.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_cat_block_random.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_cat_block_recent.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_links_block_day.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_links_block_random.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_links_block_recent.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_mod_block_day.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_mod_block_random.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_mod_block_recent.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_text_block_day.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_text_block_random.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_text_block_recent.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_votedata_block_day.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_votedata_block_random.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/blocks/mylinks_votedata_block_recent.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/index.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_broken.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_cat.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_footer.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_header.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_index.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_links.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_mod.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_text.html
XoopsModules/mylinks/branches/timgno/mylinks/templates/mylinks_votedata.html
XoopsModules/mylinks/branches/timgno/mylinks/text.php
XoopsModules/mylinks/branches/timgno/mylinks/votedata.php
XoopsModules/mylinks/branches/timgno/mylinks/xoops_version.php
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/about.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/about.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/about.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,43 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+$aboutAdmin = new ModuleAdmin();
+echo $aboutAdmin->addNavigation("about.php");
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_footer.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_footer.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_footer.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+global $pathImageAdmin;
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src='" . $pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> "._AM_MYLINKS_MAINTAINEDBY." <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+ xoops_cp_footer();
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_header.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_header.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/admin_header.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,98 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+include_once '../include/functions.php';
+
+$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
+$globlang = $GLOBALS['xoopsConfig']['language'];
+
+if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
+ include_once $pathDir.'/language/'.$globlang.'/main.php';
+ }else{
+ include_once $pathDir.'/language/english/main.php';
+ }
+
+if ( file_exists($pathDir.'/moduleadmin.php')){
+ include_once $pathDir.'/moduleadmin.php';
+ //return true;
+ }else{
+ xoops_cp_header();
+ echo xoops_error(_AM_MYLINKS_MODULEADMIN_MISSING);
+ xoops_cp_footer();
+ //return false;
+ }
+$dirname = basename(dirname(dirname( __FILE__ ) ));
+$module_handler =& xoops_gethandler('module');
+$xoopsModule = & $module_handler->getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+$brokenHandler=& xoops_getModuleHandler('mylinks_broken', $dirname );
+$catHandler=& xoops_getModuleHandler('mylinks_cat', $dirname );
+$linksHandler=& xoops_getModuleHandler('mylinks_links', $dirname );
+$modHandler=& xoops_getModuleHandler('mylinks_mod', $dirname );
+$textHandler=& xoops_getModuleHandler('mylinks_text', $dirname );
+$votedataHandler=& xoops_getModuleHandler('mylinks_votedata', $dirname );
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+
+$style_admin = "../css/admin.css";
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/broken.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/broken.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/broken.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,164 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mylinks_CleanVars($_REQUEST, 'op', 'list_broken', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$broken_waiting = $brokenHandler->getCount($criteria);
+$status_menu = mylinks_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_broken":
+ $broken_admin = new ModuleAdmin();
+ echo $broken_admin->addNavigation('broken.php');
+ if ($status_menu == 1){
+ $broken_admin->addItemButton(_AM_MYLINKS_BROKENNEW, 'broken.php?op=new_broken', 'add');
+ }else{
+ $broken_admin->addItemButton(_AM_MYLINKS_BROKEN_LIST, 'broken.php?op=list_broken', 'list');
+ $broken_admin->addItemButton(_AM_MYLINKS_BROKENNEW, 'broken.php?op=new_broken', 'add');
+ }
+ echo $broken_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("broken_reportid");
+ $criteria->setOrder("ASC");
+ $numrows = $brokenHandler->getCount();
+ $broken_arr = $brokenHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYLINKS_BROKEN_LID."</th>
+ <th align=\"center\">"._AM_MYLINKS_BROKEN_SENDER."</th>
+ <th align=\"center\">"._AM_MYLINKS_BROKEN_IP."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYLINKS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($broken_arr) as $i)
+ {
+ if ( $broken_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$broken_arr[$i]->getVar("broken_lid")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_sender")."</td>";
+ echo "<td align='center'>".$broken_arr[$i]->getVar("broken_ip")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"broken.php?op=edit_broken&broken_reportid=".$broken_arr[$i]->getVar("broken_reportid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"broken.php?op=delete_broken&broken_reportid=".$broken_arr[$i]->getVar("broken_reportid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $brokenHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_broken":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("broken.php");
+ $member_admin->addItemButton(_AM_MYLINKS_BROKEN_LIST, 'broken.php?op=list_broken', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $brokenHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_broken":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["broken_reportid"])) {
+ $obj =& $brokenHandler->get($_REQUEST["broken_reportid"]);
+ } else {
+ $obj =& $brokenHandler->create();
+ }
+ //Form broken_lid
+ $obj->setVar("broken_lid", $_REQUEST["broken_lid"]);
+ //Form broken_sender
+ $obj->setVar("broken_sender", $_REQUEST["broken_sender"]);
+ //Form broken_ip
+ $obj->setVar("broken_ip", $_REQUEST["broken_ip"]);
+
+
+ if ($brokenHandler->insert($obj)) {
+ redirect_header("broken.php?op=list_broken", 2, _AM_MYLINKS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_broken":
+ $obj = $brokenHandler->get($_REQUEST["broken_reportid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_broken":
+ $obj =& $brokenHandler->get($_REQUEST["broken_reportid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("broken.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($brokenHandler->delete($obj)) {
+ redirect_header("broken.php", 3, _AM_MYLINKS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "broken_reportid" => $_REQUEST["broken_reportid"], "op" => "delete_broken"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYLINKS_FORMSUREDEL, $obj->getVar("broken")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/cat.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/cat.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/cat.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,182 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mylinks_CleanVars($_REQUEST, 'op', 'list_cat', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$cat_waiting = $catHandler->getCount($criteria);
+$status_menu = mylinks_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_cat":
+ $cat_admin = new ModuleAdmin();
+ echo $cat_admin->addNavigation('cat.php');
+ if ($status_menu == 1){
+ $cat_admin->addItemButton(_AM_MYLINKS_CATNEW, 'cat.php?op=new_cat', 'add');
+ }else{
+ $cat_admin->addItemButton(_AM_MYLINKS_CAT_LIST, 'cat.php?op=list_cat', 'list');
+ $cat_admin->addItemButton(_AM_MYLINKS_CATNEW, 'cat.php?op=new_cat', 'add');
+ }
+ echo $cat_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("cat_id");
+ $criteria->setOrder("ASC");
+ $numrows = $catHandler->getCount();
+ $cat_arr = $catHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYLINKS_CAT_PID."</th>
+ <th align=\"center\">"._AM_MYLINKS_CAT_TITLE."</th>
+ <th align=\"center\">"._AM_MYLINKS_CAT_IMGURL."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYLINKS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($cat_arr) as $i)
+ {
+ if ( $cat_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$cat_arr[$i]->getVar("cat_pid")."</td>";
+ echo "<td align='center'>".$cat_arr[$i]->getVar("cat_title")."</td>";
+ echo "<td align='center'><img src='".XOOPS_URL."/uploads/mylinks/cat/cat_imgurl/".$cat_arr[$i]->getVar("cat_imgurl")."' height='30px' title='cat_imgurl' alt='cat_imgurl'></td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"cat.php?op=edit_cat&cat_id=".$cat_arr[$i]->getVar("cat_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"cat.php?op=delete_cat&cat_id=".$cat_arr[$i]->getVar("cat_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $catHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_cat":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("cat.php");
+ $member_admin->addItemButton(_AM_MYLINKS_CAT_LIST, 'cat.php?op=list_cat', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $catHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_cat":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("cat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["cat_id"])) {
+ $obj =& $catHandler->get($_REQUEST["cat_id"]);
+ } else {
+ $obj =& $catHandler->create();
+ }
+ //Form cat_pid
+ $obj->setVar("cat_pid", $_REQUEST["cat_pid"]);
+ //Form cat_title
+ $obj->setVar("cat_title", $_REQUEST["cat_title"]);
+ //Form cat_imgurl
+ include_once XOOPS_ROOT_PATH."/class/uploader.php";
+ $uploaddir_cat_imgurl = XOOPS_ROOT_PATH."/uploads/mylinks/cat/cat_imgurl/";
+ $uploader_cat_imgurl = new XoopsMediaUploader($uploaddir_cat_imgurl,
+ $GLOBALS["xoopsModuleConfig"]["cat_imgurl_mimetypes"],
+ $GLOBALS["xoopsModuleConfig"]["cat_imgurl_size"],
+ null, null);
+
+ if ($uploader_cat_imgurl->fetchMedia("cat_imgurl")) {
+ $uploader_cat_imgurl->setPrefix("cat_imgurl_") ;
+ $uploader_cat_imgurl->fetchMedia("cat_imgurl");
+ if (!$uploader_cat_imgurl->upload()) {
+ $errors = $uploader_cat_imgurl->getErrors();
+ redirect_header("javascript:history.go(-1)",3, $errors);
+ } else {
+ $obj->setVar("cat_imgurl", $uploader_cat_imgurl->getSavedFileName());
+ }
+ } else {
+ $obj->setVar("cat_imgurl", $_REQUEST["cat_imgurl"]);
+ }
+
+
+ if ($catHandler->insert($obj)) {
+ redirect_header("cat.php?op=list_cat", 2, _AM_MYLINKS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_cat":
+ $obj = $catHandler->get($_REQUEST["cat_id"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_cat":
+ $obj =& $catHandler->get($_REQUEST["cat_id"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("cat.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($catHandler->delete($obj)) {
+ redirect_header("cat.php", 3, _AM_MYLINKS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "cat_id" => $_REQUEST["cat_id"], "op" => "delete_cat"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYLINKS_FORMSUREDEL, $obj->getVar("cat")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/index.html
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/index.html (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/index.html 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/index.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/index.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/index.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,68 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+ $indexAdmin = new ModuleAdmin();
+ //account "total"
+ $count_broken = $brokenHandler->getCount();
+ //account "total"
+ $count_cat = $catHandler->getCount();
+ //account "total"
+ $count_links = $linksHandler->getCount();
+ //account "total"
+ $count_mod = $modHandler->getCount();
+ //account "total"
+ $count_text = $textHandler->getCount();
+ //account "total"
+ $count_votedata = $votedataHandler->getCount();
+ $indexAdmin->addInfoBox(_AM_MYLINKS_BROKEN);
+ $indexAdmin->addInfoBoxLine(_AM_MYLINKS_BROKEN,_AM_MYLINKS_THEREARE_BROKEN, $count_broken) ;
+ $indexAdmin->addInfoBox(_AM_MYLINKS_CAT);
+ $indexAdmin->addInfoBoxLine(_AM_MYLINKS_CAT,_AM_MYLINKS_THEREARE_CAT, $count_cat) ;
+ $indexAdmin->addInfoBox(_AM_MYLINKS_LINKS);
+ $indexAdmin->addInfoBoxLine(_AM_MYLINKS_LINKS,_AM_MYLINKS_THEREARE_LINKS, $count_links) ;
+ $indexAdmin->addInfoBox(_AM_MYLINKS_MOD);
+ $indexAdmin->addInfoBoxLine(_AM_MYLINKS_MOD,_AM_MYLINKS_THEREARE_MOD, $count_mod) ;
+ $indexAdmin->addInfoBox(_AM_MYLINKS_TEXT);
+ $indexAdmin->addInfoBoxLine(_AM_MYLINKS_TEXT,_AM_MYLINKS_THEREARE_TEXT, $count_text) ;
+ $indexAdmin->addInfoBox(_AM_MYLINKS_VOTEDATA);
+ $indexAdmin->addInfoBoxLine(_AM_MYLINKS_VOTEDATA,_AM_MYLINKS_THEREARE_VOTEDATA, $count_votedata) ;
+ echo $indexAdmin->addNavigation("index.php");
+ echo $indexAdmin->renderIndex();
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/links.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/links.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/links.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,216 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mylinks_CleanVars($_REQUEST, 'op', 'list_links', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$links_waiting = $linksHandler->getCount($criteria);
+$status_menu = mylinks_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_links":
+ $links_admin = new ModuleAdmin();
+ echo $links_admin->addNavigation('links.php');
+ if ($status_menu == 1){
+ $links_admin->addItemButton(_AM_MYLINKS_LINKSNEW, 'links.php?op=new_links', 'add');
+ }else{
+ $links_admin->addItemButton(_AM_MYLINKS_LINKS_LIST, 'links.php?op=list_links', 'list');
+ $links_admin->addItemButton(_AM_MYLINKS_LINKSNEW, 'links.php?op=new_links', 'add');
+ }
+ echo $links_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("links_lid");
+ $criteria->setOrder("ASC");
+ $numrows = $linksHandler->getCount();
+ $links_arr = $linksHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_CID."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_TITLE."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_URL."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_LOGOURL."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_SUBMITTER."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_STATUS."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_DATE."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_HITS."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_RATING."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_VOTES."</th>
+ <th align=\"center\">"._AM_MYLINKS_LINKS_COMMENTS."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYLINKS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($links_arr) as $i)
+ {
+ if ( $links_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$links_arr[$i]->getVar("links_title")."</td>";
+ echo "<td align='center'>".$links_arr[$i]->getVar("links_url")."</td>";
+ echo "<td align='center'><img src='".XOOPS_URL."/uploads/mylinks/links/links_logourl/".$links_arr[$i]->getVar("links_logourl")."' height='30px' title='links_logourl' alt='links_logourl'></td>";
+ echo "<td align='center'>".XoopsUser::getUnameFromId($links_arr[$i]->getVar("links_submitter"),"S")."</td>";
+
+ $verif_links_status = ( $links_arr[$i]->getVar("links_status") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_links_status."</td>";
+ echo "<td align='center'>".formatTimeStamp($links_arr[$i]->getVar("links_date"),"S")."</td>";
+ echo "<td align='center'>".$links_arr[$i]->getVar("links_hits")."</td>";
+ echo "<td align='center'>".$links_arr[$i]->getVar("links_rating")."</td>";
+ echo "<td align='center'>".$links_arr[$i]->getVar("links_votes")."</td>";
+ echo "<td align='center'>".$links_arr[$i]->getVar("links_comments")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"links.php?op=edit_links&links_lid=".$links_arr[$i]->getVar("links_lid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"links.php?op=delete_links&links_lid=".$links_arr[$i]->getVar("links_lid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $linksHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_links":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("links.php");
+ $member_admin->addItemButton(_AM_MYLINKS_LINKS_LIST, 'links.php?op=list_links', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $linksHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_links":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("links.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["links_lid"])) {
+ $obj =& $linksHandler->get($_REQUEST["links_lid"]);
+ } else {
+ $obj =& $linksHandler->create();
+ }
+ //Form links_cid
+ $obj->setVar("links_cid", $_REQUEST["links_cid"]);
+ //Form links_title
+ $obj->setVar("links_title", $_REQUEST["links_title"]);
+ //Form links_url
+ $obj->setVar("links_url", $_REQUEST["links_url"]);
+ //Form links_logourl
+ include_once XOOPS_ROOT_PATH."/class/uploader.php";
+ $uploaddir_links_logourl = XOOPS_ROOT_PATH."/uploads/mylinks/links/links_logourl/";
+ $uploader_links_logourl = new XoopsMediaUploader($uploaddir_links_logourl,
+ $GLOBALS["xoopsModuleConfig"]["links_logourl_mimetypes"],
+ $GLOBALS["xoopsModuleConfig"]["links_logourl_size"],
+ null, null);
+
+ if ($uploader_links_logourl->fetchMedia("links_logourl")) {
+ $uploader_links_logourl->setPrefix("links_logourl_") ;
+ $uploader_links_logourl->fetchMedia("links_logourl");
+ if (!$uploader_links_logourl->upload()) {
+ $errors = $uploader_links_logourl->getErrors();
+ redirect_header("javascript:history.go(-1)",3, $errors);
+ } else {
+ $obj->setVar("links_logourl", $uploader_links_logourl->getSavedFileName());
+ }
+ } else {
+ $obj->setVar("links_logourl", $_REQUEST["links_logourl"]);
+ }
+ //Form links_submitter
+ $obj->setVar("links_submitter", $_REQUEST["links_submitter"]);
+ //Form links_status
+ $verif_links_status = ($_REQUEST["links_status"] == 1) ? "1" : "0";
+ $obj->setVar("links_status", $verif_links_status);
+ //Form links_date
+ $obj->setVar("links_date", mylinks_convertDate($_REQUEST["links_date"]));
+ //Form links_hits
+ $obj->setVar("links_hits", $_REQUEST["links_hits"]);
+ //Form links_rating
+ $obj->setVar("links_rating", $_REQUEST["links_rating"]);
+ //Form links_votes
+ $obj->setVar("links_votes", $_REQUEST["links_votes"]);
+ //Form links_comments
+ $obj->setVar("links_comments", $_REQUEST["links_comments"]);
+
+
+ if ($linksHandler->insert($obj)) {
+ redirect_header("links.php?op=list_links", 2, _AM_MYLINKS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_links":
+ $obj = $linksHandler->get($_REQUEST["links_lid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_links":
+ $obj =& $linksHandler->get($_REQUEST["links_lid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("links.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($linksHandler->delete($obj)) {
+ redirect_header("links.php", 3, _AM_MYLINKS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "links_lid" => $_REQUEST["links_lid"], "op" => "delete_links"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYLINKS_FORMSUREDEL, $obj->getVar("links")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/menu.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/menu.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/menu.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,89 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+
+$dirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathImageAdmin = $moduleInfo->getInfo("icons32");
+
+$adminmenu = array();
+
+$i = 1;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU1;
+$adminmenu[$i]["link"] = "admin/index.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU1_DESC;
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/home.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU2;
+$adminmenu[$i]["link"] = "admin/broken.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU2_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/brokenlink.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU3;
+$adminmenu[$i]["link"] = "admin/cat.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU3_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/category.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU4;
+$adminmenu[$i]["link"] = "admin/links.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU4_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/link.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU5;
+$adminmenu[$i]["link"] = "admin/mod.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU5_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/modifiedlink.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU6;
+$adminmenu[$i]["link"] = "admin/text.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU6_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/bookcase.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU7;
+$adminmenu[$i]["link"] = "admin/votedata.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU7_DESC
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/stats.png";
+$i++;
+$adminmenu[$i]["title"] = _MI_MYLINKS_ADMENU8;
+$adminmenu[$i]["link"] = "admin/about.php";
+//$adminmenu[$i]["desc"] = _MI_MYLINKS_ADMENU8_DESC;
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png";
+unset( $i );
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/mod.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/mod.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/mod.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,196 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * MYLINKS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package mylinks
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.02 Sat 2012/01/14 6:36:59 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = mylinks_CleanVars($_REQUEST, 'op', 'list_mod', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$mod_waiting = $modHandler->getCount($criteria);
+$status_menu = mylinks_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_mod":
+ $mod_admin = new ModuleAdmin();
+ echo $mod_admin->addNavigation('mod.php');
+ if ($status_menu == 1){
+ $mod_admin->addItemButton(_AM_MYLINKS_MODNEW, 'mod.php?op=new_mod', 'add');
+ }else{
+ $mod_admin->addItemButton(_AM_MYLINKS_MOD_LIST, 'mod.php?op=list_mod', 'list');
+ $mod_admin->addItemButton(_AM_MYLINKS_MODNEW, 'mod.php?op=new_mod', 'add');
+ }
+ echo $mod_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("mod_requestid");
+ $criteria->setOrder("ASC");
+ $numrows = $modHandler->getCount();
+ $mod_arr = $modHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_MYLINKS_MOD_LID."</th>
+ <th align=\"center\">"._AM_MYLINKS_MOD_CID."</th>
+ <th align=\"center\">"._AM_MYLINKS_MOD_TITLE."</th>
+ <th align=\"center\">"._AM_MYLINKS_MOD_URL."</th>
+ <th align=\"center\">"._AM_MYLINKS_MOD_LOGOURL."</th>
+ <th align=\"center\">"._AM_MYLINKS_MOD_DESCRIPTION."</th>
+ <th align=\"center\">"._AM_MYLINKS_MOD_MODIFYSUBMITTER."</th>
+ <th align=\"center\" width=\"10%\">"._AM_MYLINKS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($mod_arr) as $i)
+ {
+ if ( $mod_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$mod_arr[$i]->getVar("mod_title")."</td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_url")."</td>";
+ echo "<td align='center'><img src='".XOOPS_URL."/uploads/mylinks/mod/mod_logourl/".$mod_arr[$i]->getVar("mod_logourl")."' height='30px' title='mod_logourl' alt='mod_logourl'></td>";
+ echo "<td align='center'>".$mod_arr[$i]->getVar("mod_description")."</td>";
+ echo "<td align='center'>".XoopsUser::getUnameFromId($mod_arr[$i]->getVar("mod_modifysubmitter"),"S")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"mod.php?op=edit_mod&mod_requestid=".$mod_arr[$i]->getVar("mod_requestid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"mod.php?op=delete_mod&mod_requestid=".$mod_arr[$i]->getVar("mod_requestid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $modHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_mod":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("mod.php");
+ $member_admin->addItemButton(_AM_MYLINKS_MOD_LIST, 'mod.php?op=list_mod', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $modHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_mod":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("mod.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["mod_requestid"])) {
+ $obj =& $modHandler->get($_REQUEST["mod_requestid"]);
+ } else {
+ $obj =& $modHandler->create();
+ }
+ //Form mod_lid
+ $obj->setVar("mod_lid", $_REQUEST["mod_lid"]);
+ //Form mod_cid
+ $obj->setVar("mod_cid", $_REQUEST["mod_cid"]);
+ //Form mod_title
+ $obj->setVar("mod_title", $_REQUEST["mod_title"]);
+ //Form mod_url
+ $obj->setVar("mod_url", $_REQUEST["mod_url"]);
+ //Form mod_logourl
+ include_once XOOPS_ROOT_PATH."/class/uploader.php";
+ $uploaddir_mod_logourl = XOOPS_ROOT_PATH."/uploads/mylinks/mod/mod_logourl/";
+ $uploader_mod_logourl = new XoopsMediaUploader($uploaddir_mod_logourl,
+ $GLOBALS["xoopsModuleConfig"]["mod_logourl_mimetypes"],
+ $GLOBALS["xoopsModuleConfig"]["mod_logourl_size"],
+ null, null);
+
+ if ($uploader_mod_logourl->fetchMedia("mod_logourl")) {
+ $uploader_mod_logourl->setPrefix("mod_logourl_") ;
+ $uploader_mod_logourl->fetchMedia("mod_logourl");
+ if (!$uploader_mod_logourl->upload()) {
+ $errors = $uploader_mod_logourl->getErrors();
+ redirect_header("javascript:history.go(-1)",3, $errors);
+ } else {
+ $obj->setVar("mod_logourl", $uploader_mod_logourl->getSavedFileName());
+ }
+ } else {
+ $obj->setVar("mod_logourl", $_REQUEST["mod_logourl"]);
+ }
+ //Form mod_description
+ $obj->setVar("mod_description", $_REQUEST["mod_description"]);
+ //Form mod_modifysubmitter
+ $obj->setVar("mod_modifysubmitter", $_REQUEST["mod_modifysubmitter"]);
+
+
+ if ($modHandler->insert($obj)) {
+ redirect_header("mod.php?op=list_mod", 2, _AM_MYLINKS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_mod":
+ $obj = $modHandler->get($_REQUEST["mod_requestid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_mod":
+ $obj =& $modHandler->get($_REQUEST["mod_requestid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("mod.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($modHandler->delete($obj)) {
+ redirect_header("mod.php", 3, _AM_MYLINKS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "mod_requestid" => $_REQUEST["mod_requestid"], "op" => "delete_mod"), $_SERVER["REQUEST_URI"], sprintf(_AM_MYLINKS_FORMSUREDEL, $obj->getVar("mod")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/mylinks/branches/timgno/mylinks/admin/permissions.php
===================================================================
--- XoopsModules/mylinks/branches/timgno/mylinks/admin/permissions.php (rev 0)
+++ XoopsModules/mylinks/branches/timgno/mylinks/admin/permissions.php 2012-01-31 19:37:06 UTC (rev 8855)
@@ -0,0 +1,87 @@
+<?php
+/**
+ * TDMArticle
+ *
+ * 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.
+ *
+ * @copyright Gregory Mage (Aka Mage)
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @author Gregory Mage (Aka Mage)
+ */
+
+include 'admin_header.php';
+include_once XOOPS_ROOT_PATH . '/class/xoopstopic.php';
+include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
+include_once XOOPS_ROOT...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 19:32:37
|
Revision: 8854
http://xoops.svn.sourceforge.net/xoops/?rev=8854&view=rev
Author: txmodxoops
Date: 2012-01-31 19:32:26 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
New Folder
Added Paths:
-----------
XoopsModules/mylinks/branches/timgno/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 19:29:35
|
Revision: 8853
http://xoops.svn.sourceforge.net/xoops/?rev=8853&view=rev
Author: txmodxoops
Date: 2012-01-31 19:29:25 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Alpha 1 Recreated from zero with TDMCreate module
Added Paths:
-----------
XoopsModules/AMS - Article Management System/branches/timgno/ams/
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/about.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_footer.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_header.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/article.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/audience.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/files.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/link.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/menu.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/permissions.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/rating.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/setting.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/spotlight.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/text.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/topics.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/article.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/audience.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_article.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_audience.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_files.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_link.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_rating.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_setting.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_spotlight.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_text.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/blocks_topics.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/blocks/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_article.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_audience.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_files.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_link.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_rating.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_setting.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_spotlight.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_text.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/ams_topics.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/class/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/css/
XoopsModules/AMS - Article Management System/branches/timgno/ams/css/admin.css
XoopsModules/AMS - Article Management System/branches/timgno/ams/css/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/css/style.css
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/changelog.txt
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/credits.txt
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/install.txt
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/lang_diff.txt
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/licence.txt
XoopsModules/AMS - Article Management System/branches/timgno/ams/docs/readme.txt
XoopsModules/AMS - Article Management System/branches/timgno/ams/files.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/header.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/ams_slogo.png
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/icons/
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/icons/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/icons/off.png
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/icons/on.png
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/menu/
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/menu/bg.png
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/menu/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/menu/left_both.png
XoopsModules/AMS - Article Management System/branches/timgno/ams/images/menu/right_both.png
XoopsModules/AMS - Article Management System/branches/timgno/ams/include/
XoopsModules/AMS - Article Management System/branches/timgno/ams/include/configs.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/include/functions.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/include/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/include/install.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/index.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/admin.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/blocks.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/help/
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/help/help.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/help/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/main.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/language/italian/modinfo.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/link.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/rating.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/setting.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/spotlight.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/sql/
XoopsModules/AMS - Article Management System/branches/timgno/ams/sql/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/sql/mysql.sql
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/admin/
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/admin/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_article.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_audience.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_files.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_footer.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_header.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_link.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_rating.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_setting.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_spotlight.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_text.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/ams_topics.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_article_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_article_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_article_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_audience_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_audience_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_audience_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_files_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_files_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_files_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_link_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_link_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_link_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_rating_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_rating_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_rating_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_setting_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_setting_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_setting_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_spotlight_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_spotlight_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_spotlight_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_text_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_text_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_text_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_topics_block_day.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_topics_block_random.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/ams_topics_block_recent.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/blocks/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/templates/index.html
XoopsModules/AMS - Article Management System/branches/timgno/ams/text.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/topics.php
XoopsModules/AMS - Article Management System/branches/timgno/ams/xoops_version.php
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/about.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/about.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/about.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,43 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+$aboutAdmin = new ModuleAdmin();
+echo $aboutAdmin->addNavigation("about.php");
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_footer.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_footer.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_footer.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+global $pathImageAdmin;
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src='" . $pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> "._AM_AMS_MAINTAINEDBY." <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+ xoops_cp_footer();
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_header.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_header.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/admin_header.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,107 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/mainfile.php";
+include_once XOOPS_ROOT_PATH."/include/cp_functions.php";
+include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php");
+include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
+include_once XOOPS_ROOT_PATH."/class/tree.php";
+include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
+include_once XOOPS_ROOT_PATH."/class/pagenav.php";
+include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php";
+include_once "../include/functions.php";
+
+$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
+$globlang = $GLOBALS['xoopsConfig']['language'];
+
+if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
+ include_once $pathDir.'/language/'.$globlang.'/main.php';
+ }else{
+ include_once $pathDir.'/language/english/main.php';
+ }
+
+if ( file_exists($pathDir.'/moduleadmin.php')){
+ include_once $pathDir.'/moduleadmin.php';
+ //return true;
+ }else{
+ xoops_cp_header();
+ echo xoops_error(_AM_AMS_MODULEADMIN_MISSING);
+ xoops_cp_footer();
+ //return false;
+ }
+$dirname = basename(dirname(dirname( __FILE__ ) ));
+$module_handler =& xoops_gethandler('module');
+$xoopsModule = & $module_handler->getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+$articleHandler=& xoops_getModuleHandler('ams_article', $dirname );
+$filesHandler=& xoops_getModuleHandler('ams_files', $dirname );
+$textHandler=& xoops_getModuleHandler('ams_text', $dirname );
+$topicsHandler=& xoops_getModuleHandler('ams_topics', $dirname );
+$linkHandler=& xoops_getModuleHandler('ams_link', $dirname );
+$ratingHandler=& xoops_getModuleHandler('ams_rating', $dirname );
+$audienceHandler=& xoops_getModuleHandler('ams_audience', $dirname );
+$spotlightHandler=& xoops_getModuleHandler('ams_spotlight', $dirname );
+$settingHandler=& xoops_getModuleHandler('ams_setting', $dirname );
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+
+$style_admin = "../css/admin.css";
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/article.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/article.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/article.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,245 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = ams_CleanVars($_REQUEST, 'op', 'list_article', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$article_waiting = $articleHandler->getCount($criteria);
+$status_menu = ams_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_article":
+ $article_admin = new ModuleAdmin();
+ echo $article_admin->addNavigation('article.php');
+ if ($status_menu == 1){
+ $article_admin->addItemButton(_AM_AMS_ARTICLENEW, 'article.php?op=new_article', 'add');
+ }else{
+ $article_admin->addItemButton(_AM_AMS_ARTICLE_LIST, 'article.php?op=list_article', 'list');
+ $article_admin->addItemButton(_AM_AMS_ARTICLENEW, 'article.php?op=new_article', 'add');
+ }
+ echo $article_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("article_storyid");
+ $criteria->setOrder("ASC");
+ $numrows = $articleHandler->getCount();
+ $article_arr = $articleHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_AMS_ARTICLE_TITLE."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_CREATED."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_PUBLISHED."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_EXPIRED."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_HOSTNAME."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_NOHTML."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_NOSMILEY."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_COUNTER."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_TOPICID."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_IHOME."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_NOTIFYPUB."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_STORY_TYPE."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_TOPICDISPLAY."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_TOPICALIGN."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_COMMENTS."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_RATING."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_BANNER."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_AUDIENCEID."</th>
+ <th align=\"center\">"._AM_AMS_ARTICLE_ONLINE."</th>
+ <th align=\"center\" width=\"10%\">"._AM_AMS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($article_arr) as $i)
+ {
+ if ( $article_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$article_arr[$i]->getVar("article_title")."</td>";
+ echo "<td align='center'>".formatTimeStamp($article_arr[$i]->getVar("article_created"),"S")."</td>";
+ echo "<td align='center'>".formatTimeStamp($article_arr[$i]->getVar("article_published"),"S")."</td>";
+ echo "<td align='center'>".formatTimeStamp($article_arr[$i]->getVar("article_expired"),"S")."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_hostname")."</td>";
+
+ $verif_article_nohtml = ( $article_arr[$i]->getVar("article_nohtml") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_article_nohtml."</td>";
+
+ $verif_article_nosmiley = ( $article_arr[$i]->getVar("article_nosmiley") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_article_nosmiley."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_counter")."</td>";
+
+ $verif_article_ihome = ( $article_arr[$i]->getVar("article_ihome") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_article_ihome."</td>";
+
+ $verif_article_notifypub = ( $article_arr[$i]->getVar("article_notifypub") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_article_notifypub."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_story_type")."</td>";
+
+ $verif_article_topicdisplay = ( $article_arr[$i]->getVar("article_topicdisplay") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_article_topicdisplay."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_topicalign")."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_comments")."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_rating")."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_banner")."</td>";
+ echo "<td align='center'>".$article_arr[$i]->getVar("article_audienceid")."</td>";
+
+ $verif_article_online = ( $article_arr[$i]->getVar("article_online") == 1 ) ? _YES : _NO;
+ echo "<td align='center'>".$verif_article_online."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"article.php?op=edit_article&article_storyid=".$article_arr[$i]->getVar("article_storyid")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"article.php?op=delete_article&article_storyid=".$article_arr[$i]->getVar("article_storyid")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $articleHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_article":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("article.php");
+ $member_admin->addItemButton(_AM_AMS_ARTICLE_LIST, 'article.php?op=list_article', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $articleHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_article":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("article.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["article_storyid"])) {
+ $obj =& $articleHandler->get($_REQUEST["article_storyid"]);
+ } else {
+ $obj =& $articleHandler->create();
+ }
+ //Form article_title
+ $obj->setVar("article_title", $_REQUEST["article_title"]);
+ //Form article_created
+ $obj->setVar("article_created", ams_convertDate($_REQUEST["article_created"]));
+ //Form article_published
+ $obj->setVar("article_published", ams_convertDate($_REQUEST["article_published"]));
+ //Form article_expired
+ $obj->setVar("article_expired", ams_convertDate($_REQUEST["article_expired"]));
+ //Form article_hostname
+ $obj->setVar("article_hostname", $_REQUEST["article_hostname"]);
+ //Form article_nohtml
+ $verif_article_nohtml = ($_REQUEST["article_nohtml"] == 1) ? "1" : "0";
+ $obj->setVar("article_nohtml", $verif_article_nohtml);
+ //Form article_nosmiley
+ $verif_article_nosmiley = ($_REQUEST["article_nosmiley"] == 1) ? "1" : "0";
+ $obj->setVar("article_nosmiley", $verif_article_nosmiley);
+ //Form article_counter
+ $obj->setVar("article_counter", $_REQUEST["article_counter"]);
+ //Form article_topicid
+ $obj->setVar("article_topicid", $_REQUEST["article_topicid"]);
+ //Form article_ihome
+ $verif_article_ihome = ($_REQUEST["article_ihome"] == 1) ? "1" : "0";
+ $obj->setVar("article_ihome", $verif_article_ihome);
+ //Form article_notifypub
+ $verif_article_notifypub = ($_REQUEST["article_notifypub"] == 1) ? "1" : "0";
+ $obj->setVar("article_notifypub", $verif_article_notifypub);
+ //Form article_story_type
+ $obj->setVar("article_story_type", $_REQUEST["article_story_type"]);
+ //Form article_topicdisplay
+ $verif_article_topicdisplay = ($_REQUEST["article_topicdisplay"] == 1) ? "1" : "0";
+ $obj->setVar("article_topicdisplay", $verif_article_topicdisplay);
+ //Form article_topicalign
+ $obj->setVar("article_topicalign", $_REQUEST["article_topicalign"]);
+ //Form article_comments
+ $obj->setVar("article_comments", $_REQUEST["article_comments"]);
+ //Form article_rating
+ $obj->setVar("article_rating", $_REQUEST["article_rating"]);
+ //Form article_banner
+ $obj->setVar("article_banner", $_REQUEST["article_banner"]);
+ //Form article_audienceid
+ $obj->setVar("article_audienceid", $_REQUEST["article_audienceid"]);
+ //Form article_online
+ $verif_article_online = ($_REQUEST["article_online"] == 1) ? "1" : "0";
+ $obj->setVar("article_online", $verif_article_online);
+
+
+ if ($articleHandler->insert($obj)) {
+ redirect_header("article.php?op=list_article", 2, _AM_AMS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_article":
+ $obj = $articleHandler->get($_REQUEST["article_storyid"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_article":
+ $obj =& $articleHandler->get($_REQUEST["article_storyid"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("article.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($articleHandler->delete($obj)) {
+ redirect_header("article.php", 3, _AM_AMS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "article_storyid" => $_REQUEST["article_storyid"], "op" => "delete_article"), $_SERVER["REQUEST_URI"], sprintf(_AM_AMS_FORMSUREDEL, $obj->getVar("article")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/audience.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/audience.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/audience.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,156 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = ams_CleanVars($_REQUEST, 'op', 'list_audience', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$audience_waiting = $audienceHandler->getCount($criteria);
+$status_menu = ams_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_audience":
+ $audience_admin = new ModuleAdmin();
+ echo $audience_admin->addNavigation('audience.php');
+ if ($status_menu == 1){
+ $audience_admin->addItemButton(_AM_AMS_AUDIENCENEW, 'audience.php?op=new_audience', 'add');
+ }else{
+ $audience_admin->addItemButton(_AM_AMS_AUDIENCE_LIST, 'audience.php?op=list_audience', 'list');
+ $audience_admin->addItemButton(_AM_AMS_AUDIENCENEW, 'audience.php?op=new_audience', 'add');
+ }
+ echo $audience_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("audience_id");
+ $criteria->setOrder("ASC");
+ $numrows = $audienceHandler->getCount();
+ $audience_arr = $audienceHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_AMS_AUDIENCE_AUDIENCE."</th>
+ <th align=\"center\" width=\"10%\">"._AM_AMS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($audience_arr) as $i)
+ {
+ if ( $audience_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$audience_arr[$i]->getVar("audience_audience")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"audience.php?op=edit_audience&audience_id=".$audience_arr[$i]->getVar("audience_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"audience.php?op=delete_audience&audience_id=".$audience_arr[$i]->getVar("audience_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $audienceHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_audience":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("audience.php");
+ $member_admin->addItemButton(_AM_AMS_AUDIENCE_LIST, 'audience.php?op=list_audience', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $audienceHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_audience":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("audience.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["audience_id"])) {
+ $obj =& $audienceHandler->get($_REQUEST["audience_id"]);
+ } else {
+ $obj =& $audienceHandler->create();
+ }
+ //Form audience_audience
+ $obj->setVar("audience_audience", $_REQUEST["audience_audience"]);
+
+
+ if ($audienceHandler->insert($obj)) {
+ redirect_header("audience.php?op=list_audience", 2, _AM_AMS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_audience":
+ $obj = $audienceHandler->get($_REQUEST["audience_id"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_audience":
+ $obj =& $audienceHandler->get($_REQUEST["audience_id"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("audience.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($audienceHandler->delete($obj)) {
+ redirect_header("audience.php", 3, _AM_AMS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "audience_id" => $_REQUEST["audience_id"], "op" => "delete_audience"), $_SERVER["REQUEST_URI"], sprintf(_AM_AMS_FORMSUREDEL, $obj->getVar("audience")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/files.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/files.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/files.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,175 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = ams_CleanVars($_REQUEST, 'op', 'list_files', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$files_waiting = $filesHandler->getCount($criteria);
+$status_menu = ams_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_files":
+ $files_admin = new ModuleAdmin();
+ echo $files_admin->addNavigation('files.php');
+ if ($status_menu == 1){
+ $files_admin->addItemButton(_AM_AMS_FILESNEW, 'files.php?op=new_files', 'add');
+ }else{
+ $files_admin->addItemButton(_AM_AMS_FILES_LIST, 'files.php?op=list_files', 'list');
+ $files_admin->addItemButton(_AM_AMS_FILESNEW, 'files.php?op=new_files', 'add');
+ }
+ echo $files_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("files_id");
+ $criteria->setOrder("ASC");
+ $numrows = $filesHandler->getCount();
+ $files_arr = $filesHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_AMS_FILES_REALNAME."</th>
+ <th align=\"center\">"._AM_AMS_FILES_STORYID."</th>
+ <th align=\"center\">"._AM_AMS_FILES_DATE."</th>
+ <th align=\"center\">"._AM_AMS_FILES_MIMETYPE."</th>
+ <th align=\"center\">"._AM_AMS_FILES_DOWNLOADNAME."</th>
+ <th align=\"center\">"._AM_AMS_FILES_COUNTER."</th>
+ <th align=\"center\" width=\"10%\">"._AM_AMS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($files_arr) as $i)
+ {
+ if ( $files_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$files_arr[$i]->getVar("files_realname")."</td>";
+ echo "<td align='center'>".formatTimeStamp($files_arr[$i]->getVar("files_date"),"S")."</td>";
+ echo "<td align='center'>".$files_arr[$i]->getVar("files_mimetype")."</td>";
+ echo "<td align='center'>".$files_arr[$i]->getVar("files_downloadname")."</td>";
+ echo "<td align='center'>".$files_arr[$i]->getVar("files_counter")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"files.php?op=edit_files&files_id=".$files_arr[$i]->getVar("files_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"files.php?op=delete_files&files_id=".$files_arr[$i]->getVar("files_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $filesHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_files":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("files.php");
+ $member_admin->addItemButton(_AM_AMS_FILES_LIST, 'files.php?op=list_files', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $filesHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_files":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("files.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["files_id"])) {
+ $obj =& $filesHandler->get($_REQUEST["files_id"]);
+ } else {
+ $obj =& $filesHandler->create();
+ }
+ //Form files_realname
+ $obj->setVar("files_realname", $_REQUEST["files_realname"]);
+ //Form files_storyid
+ $obj->setVar("files_storyid", $_REQUEST["files_storyid"]);
+ //Form files_date
+ $obj->setVar("files_date", ams_convertDate($_REQUEST["files_date"]));
+ //Form files_mimetype
+ $obj->setVar("files_mimetype", $_REQUEST["files_mimetype"]);
+ //Form files_downloadname
+ $obj->setVar("files_downloadname", $_REQUEST["files_downloadname"]);
+ //Form files_counter
+ $obj->setVar("files_counter", $_REQUEST["files_counter"]);
+
+
+ if ($filesHandler->insert($obj)) {
+ redirect_header("files.php?op=list_files", 2, _AM_AMS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ break;
+
+ case "edit_files":
+ $obj = $filesHandler->get($_REQUEST["files_id"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_files":
+ $obj =& $filesHandler->get($_REQUEST["files_id"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("files.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($filesHandler->delete($obj)) {
+ redirect_header("files.php", 3, _AM_AMS_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "files_id" => $_REQUEST["files_id"], "op" => "delete_files"), $_SERVER["REQUEST_URI"], sprintf(_AM_AMS_FORMSUREDEL, $obj->getVar("files")));
+ }
+ break;
+
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.html
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.html (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.html 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/index.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,72 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+ $indexAdmin = new ModuleAdmin();
+ //account "total"
+ $count_article = $articleHandler->getCount();
+ //account "total"
+ $count_files = $filesHandler->getCount();
+ //account "total"
+ $count_text = $textHandler->getCount();
+ //account "total"
+ $count_topics = $topicsHandler->getCount();
+ //account "total"
+ $count_link = $linkHandler->getCount();
+ //account "total"
+ $count_rating = $ratingHandler->getCount();
+ //account "total"
+ $count_audience = $audienceHandler->getCount();
+ //account "total"
+ $count_spotlight = $spotlightHandler->getCount();
+ //account "total"
+ $count_setting = $settingHandler->getCount();
+ $indexAdmin->addInfoBox(_MI_AMS_STATISTICS);
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_ARTICLE, $count_article) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_FILES, $count_files) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_TEXT, $count_text) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_TOPICS, $count_topics) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_LINK, $count_link) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_RATING, $count_rating) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_AUDIENCE, $count_audience) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_SPOTLIGHT, $count_spotlight) ;
+ $indexAdmin->addInfoBoxLine(_MI_AMS_STATISTICS,_AM_AMS_THEREARE_SETTING, $count_setting) ;
+ echo $indexAdmin->addNavigation("index.php");
+ echo $indexAdmin->renderIndex();
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/link.php
===================================================================
--- XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/link.php (rev 0)
+++ XoopsModules/AMS - Article Management System/branches/timgno/ams/admin/link.php 2012-01-31 19:29:25 UTC (rev 8853)
@@ -0,0 +1,175 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * - Revision By TXMod Xoops (http://www.txmodxoops.org)
+ * ****************************************************************************
+ * AMS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package ams
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 3.01 Sat 2012/01/14 6:36:53 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+global $pathImageIcon;
+
+//It retrieves the value of the argument in op URL$
+$op = ams_CleanVars($_REQUEST, 'op', 'list_link', 'string');
+// counts the number of uncommitted gets
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('status', 0));
+$link_waiting = $linkHandler->getCount($criteria);
+$status_menu = ams_CleanVars($_REQUEST, 'status_display', 1, 'int');
+
+switch ($op) {
+default:
+ case "list_link":
+ $link_admin = new ModuleAdmin();
+ echo $link_admin->addNavigation('link.php');
+ if ($status_menu == 1){
+ $link_admin->addItemButton(_AM_AMS_LINKNEW, 'link.php?op=new_link', 'add');
+ }else{
+ $link_admin->addItemButton(_AM_AMS_LINK_LIST, 'link.php?op=list_link', 'list');
+ $link_admin->addItemButton(_AM_AMS_LINKNEW, 'link.php?op=new_link', 'add');
+ }
+ echo $link_admin->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("link_id");
+ $criteria->setOrder("ASC");
+ $numrows = $linkHandler->getCount();
+ $link_arr = $linkHandler->getall($criteria);
+
+ //Table view
+ if ($numrows>0)
+ {
+ echo "<table width=\"100%\" cellspacing=\"1\" class=\"outer\">
+ <tr>
+ <th align=\"center\">"._AM_AMS_LINK_STORYID."</th>
+ <th align=\"center\">"._AM_AMS_LINK_MODULE."</th>
+ <th align=\"center\">"._AM_AMS_LINK_LINK."</th>
+ <th align=\"center\">"._AM_AMS_LINK_TITLE."</th>
+ <th align=\"center\">"._AM_AMS_LINK_COUNTER."</th>
+ <th align=\"center\">"._AM_AMS_LINK_POSITION."</th>
+ <th align=\"center\" width=\"10%\">"._AM_AMS_FORMACTION."</th>
+ </tr>";
+ $class = "odd";
+ foreach (array_keys($link_arr) as $i)
+ {
+ if ( $link_arr[$i]->getVar("topic_pid") == 0)
+ {
+ echo "<tr class=\"".$class."\">";
+ $class = ($class == "even") ? "odd" : "even";echo "<td align='center'>".$link_arr[$i]->getVar("link_module")."</td>";
+ echo "<td align='center'>".$link_arr[$i]->getVar("link_link")."</td>";
+ echo "<td align='center'>".$link_arr[$i]->getVar("link_title")."</td>";
+ echo "<td align='center'>".$link_arr[$i]->getVar("link_counter")."</td>";
+ echo "<td align='center'>".$link_arr[$i]->getVar("link_position")."</td>";
+
+ echo "<td align=\"center\" width=\"10%\">
+ <a href=\"link.php?op=edit_link&link_id=".$link_arr[$i]->getVar("link_id")."\"><img src=".$pathImageIcon."/edit.png alt=\""._EDIT."\" title=\""._EDIT."\"></a>
+ <a href=\"link.php?op=delete_link&link_id=".$link_arr[$i]->getVar("link_id")."\"><img src=".$pathImageIcon."/delete.png alt=\""._DELETE."\" title=\""._DELETE."\"></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br><br>";
+ }
+
+ // Form display
+ //$obj =& $linkHandler->create();
+ //$form = $obj->getForm();
+ //$form->display();
+ break;
+
+ case "new_link":
+ $member_admin = new ModuleAdmin();
+ echo $member_admin->addNavigation("link.php");
+ $member_admin->addItemButton(_AM_AMS_LINK_LIST, 'link.php?op=list_link', 'list');
+ echo $member_admin->renderButton();
+
+ $obj =& $linkHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_link":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("link.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["link_id"])) {
+ $obj =& $linkHandler->get($_REQUEST["link_id"]);
+ } else {
+ $obj =& $linkHandler->create();
+ }
+ //Form link_storyid
+ $obj->setVar("link_storyid", $_REQUEST["link_storyid"]);
+ //Form link_module
+ $obj->setVar("link_module", $_REQUEST["link_module"]);
+ //Form link_link
+ $obj->setVar("link_link", $_REQUEST["link_link"]);
+ //Form link_title
+ $obj->setVar("link_title", $_REQUEST["link_title"]);
+ //Form link_counter
+ $obj->setVar("link_counter", $_REQUEST["link_counter"]);
+ //Form link_position
+ $obj->setVar("link_position", $_REQUEST["link_position"]);
+
+
+ if ($linkHandler->insert($obj)) {
+ redirect_header("link.php?op=list_link", 2, _AM_AMS_FORMOK);
+ }
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 19:21:14
|
Revision: 8852
http://xoops.svn.sourceforge.net/xoops/?rev=8852&view=rev
Author: txmodxoops
Date: 2012-01-31 19:21:03 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Alpha 1
Added Paths:
-----------
XoopsModules/AMS - Article Management System/branches/timgno/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 18:28:17
|
Revision: 8851
http://xoops.svn.sourceforge.net/xoops/?rev=8851&view=rev
Author: txmodxoops
Date: 2012-01-31 18:28:09 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
backup file
Removed Paths:
-------------
XoopsModules/xnews/trunk/timgno/xnews/language/italian/admin.php~
XoopsModules/xnews/trunk/timgno/xnews/language/italian/modinfo.php~
Deleted: XoopsModules/xnews/trunk/timgno/xnews/language/italian/admin.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/language/italian/admin.php~ 2012-01-31 18:23:32 UTC (rev 8850)
+++ XoopsModules/xnews/trunk/timgno/xnews/language/italian/admin.php~ 2012-01-31 18:28:09 UTC (rev 8851)
@@ -1,503 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
- * ****************************************************************************
- */
-
-//Menu
-define("_AM_XNEWS_MANAGER_INDEX","Index");
-
-define("_AM_XNEWS_STATISTICS","Statistiche Notizie");
-define("_AM_XNEWS_THEREARE_STORIES","Ci sono <span class='red bold'>%s</span> Notizie nel database");
-define("_AM_XNEWS_THEREARE_STORIES_ONLINE","Ci sono <span class='red bold'>%s</span> Notizie online");
-define("_AM_XNEWS_THEREARE_STORIES_FILES","Ci sono <span class='red bold'>%s</span> Stories_files nel database");
-define("_AM_XNEWS_THEREARE_STORIES_FILES_ONLINE","Ci sono <span class='red bold'>%s</span> Stories_files online");
-define("_AM_XNEWS_THEREARE_TOPICS","Ci sono <span class='red bold'>%s</span> Categorie nel database");
-define("_AM_XNEWS_THEREARE_TOPICS_ONLINE","Ci sono <span class='red bold'>%s</span> Categorie online");
-define("_AM_XNEWS_THEREARE_STORIES_VOTEDATA","Ci sono <span class='red bold'>%s</span> Storie votate");
-define("_AM_XNEWS_THEREARE_STORIES_IMPORTED","Ci sono <span class='red bold'>%s</span> Storie importate");
-define("_AM_XNEWS_THEREARE_STORIES_EXPORTED","Ci sono <span class='red bold'>%s</span> Storie esportate");
-
-//Index
-define("_AM_XNEWS_MANAGER_STORIES","Stories");
-define("_AM_XNEWS_MANAGER_STORIES_FILES","Stories_files");
-define("_AM_XNEWS_MANAGER_TOPICS","Topics");
-define("_AM_XNEWS_MANAGER_STORIES_VOTEDATA","Stories_votedata");
-
-//Buttons
-define("_AM_XNEWS_NEWSTORY","Aggiungi Notizia");
-define("_AM_XNEWS_STORIESLIST","Lista Notizie");
-define("_AM_XNEWS_NEWTOPIC","Aggiungi Argomento");
-define("_AM_XNEWS_TOPICSLIST","Lista Argomenti");
-define("_AM_XNEWS_DELETESTORIES","Elimina Notizie");
-define("_AM_XNEWS_ADDCLONE","Aggiungi Clone");
-define("_AM_XNEWS_CLONESLIST","Lista Cloni");
-define("_AM_XNEWS_STATSARGUMENTS","Statistiche Argomenti");
-define("_AM_XNEWS_STATSARTICLES","Statistiche Articoli");
-define("_AM_XNEWS_STATSAUTHORS","Statistiche Autori");
-
-//General
-define("_AM_XNEWS_FORMOK","Enregistre avec succes");
-define("_AM_XNEWS_FORMDELOK","Supprimé avec succès");
-define("_AM_XNEWS_FORMSUREDEL", "Etes-vous sûr de vouloir supprimer : <b><span class=\"color : Red\"> %s </span></b>");
-define("_AM_XNEWS_FORMSURERENEW", "Etes-vous sûr de vouloir renevouler : <b><span class=\"color : Red\"> %s </span></b>");
-define("_AM_XNEWS_FORMUPLOAD","Upload");
-define("_AM_XNEWS_FORMIMAGE_PATH","File presenti nella cartella %s");
-define("_AM_XNEWS_FORMACTION","Azione");
-define("_AM_XNEWS_OFF","Hors ligne");
-define("_AM_XNEWS_ON","En ligne");
-/*define("_AM_XNEWS_EDIT","Modifica");
-define("_AM_XNEWS_DELETE","Elimina");*/
-define("_AM_XNEWS_STORIES_ADD","Aggiungi Notizia");
-define("_AM_XNEWS_STORIES_EDIT","Modifica Notizia");
-define("_AM_XNEWS_STORIES_ID","ID Notizia");
-define("_AM_XNEWS_STORIES_UID","Autore");
-define("_AM_XNEWS_STORIES_TITLE","Titolo");
-define("_AM_XNEWS_STORIES_CREATED","Creata");
-define("_AM_XNEWS_STORIES_PUBLISHED","Pubblicata");
-define("_AM_XNEWS_STORIES_EXPIRED","Scaduta");
-define("_AM_XNEWS_STORIES_APPROVE", "Approva");
-define("_AM_XNEWS_STORIES_SETDATETIME", "Imposta la data/ora di pubblicazione");
-define("_AM_XNEWS_STORIES_SETEXPDATETIME", "Imposta la data/ora di scadenza");
-define("_AM_XNEWS_STORIES_HOSTNAME","Hostname");
-define("_AM_XNEWS_STORIES_NOHTML","Disabilita i tag HTML");
-define("_AM_XNEWS_STORIES_NOSMILEY","Disabilita le faccine");
-define("_AM_XNEWS_STORIES_HOMETEXT","La notizia");
-define("_AM_XNEWS_STORIES_BODYTEXT","Notizia estesa");
-define("_AM_XNEWS_STORIES_KEYWORDS","Meta Keywords");
-define("_AM_XNEWS_STORIES_DESCRIPTION","Meta Descrizione");
-define("_AM_XNEWS_STORIES_COUNTER","Counter");
-define("_AM_XNEWS_STORIES_TOPICID","Argomento");
-define("_AM_XNEWS_STORIES_IHOME","Pubblica sulla pagina principale?");
-define("_AM_XNEWS_STORIES_NOTIFYPUB","Notifica via email nel momento in cui verrà pubblicata");
-define("_AM_XNEWS_STORIES_STORY_TYPE","Story_type");
-define("_AM_XNEWS_STORIES_TOPICDISPLAY","Mostra l'immagine dell'argomento?");
-define("_AM_XNEWS_STORIES_TOPICALIGN","Posizione");
-define("_AM_XNEWS_STORIES_TOPICLEFT","Sinistra");
-define("_AM_XNEWS_STORIES_TOPICRIGHT","Destra");
-define("_AM_XNEWS_STORIES_COMMENTS","Commenti");
-define("_AM_XNEWS_STORIES_RATING","Rating");
-define("_AM_XNEWS_STORIES_VOTES","Votes");
-define("_AM_XNEWS_STORIES_PICTURE","Immagine per la notizia");
-define("_AM_XNEWS_STORIES_DOBR","Abilita Fine Riga");
-define("_AM_XNEWS_STORIES_TAGS","Tags");
-define("_AM_XNEWS_STORIES_IMAGEROWS","Righe Immagine da visualizzare"); //Image display rows
-define("_AM_XNEWS_STORIES_PDFROWS","Righe PDF da visualizzare"); //PDF display rows
-define("_AM_XNEWS_STORIES_SUBMITTER","Autore");
-define("_AM_XNEWS_STORIES_DATE_CREATED","Data creatazione");
-define("_AM_XNEWS_STORIES_ONLINE","Online");
-
-define("_AM_XNEWS_STORIES_LIST_TITLE","Titolo");
-define("_AM_XNEWS_STORIES_LIST_TOPICID","Argomento");
-define("_AM_XNEWS_STORIES_LIST_PICTURE","Immagine");
-define("_AM_XNEWS_STORIES_LIST_CREATED","Creata");
-define("_AM_XNEWS_STORIES_LIST_PUBLISHED","Pubblicata");
-define("_AM_XNEWS_STORIES_LIST_EXPIRED","Scadenza");
-define("_AM_XNEWS_STORIES_LIST_UID","Utente");
-define("_AM_XNEWS_STORIES_LIST_NOHTML","NoHtml");
-define("_AM_XNEWS_STORIES_LIST_NOSMILEY","NoSmilies");
-define("_AM_XNEWS_STORIES_LIST_IHOME","In Home");
-define("_AM_XNEWS_STORIES_LIST_NOTIFYPUB","Notifica");
-define("_AM_XNEWS_STORIES_LIST_TOPICDISPLAY","Online");
-
-/*define("_AM_XNEWS_STORIES_FILES_ADD","Ajouter un stories_files");
-define("_AM_XNEWS_STORIES_FILES_EDIT","Editer un stories_files");
-define("_AM_XNEWS_STORIES_FILES_","");
-define("_AM_XNEWS_STORIES_FILES_","");
-define("_AM_XNEWS_STORIES_FILES_","");
-define("_AM_XNEWS_STORIES_FILES_","");
-define("_AM_XNEWS_STORIES_FILES_","");
-define("_AM_XNEWS_STORIES_FILES_NAME","Name");
-define("_AM_XNEWS_STORIES_FILES_","");
-define("_AM_XNEWS_STORIES_FILES_SUBMITTER","Submitter");
-define("_AM_XNEWS_STORIES_FILES_DATE_CREATED","Date_created");
-define("_AM_XNEWS_STORIES_FILES_ONLINE","Online");*/
-
-define("_AM_XNEWS_TOPICS_ADD","Aggiungi un Argomento");
-define("_AM_XNEWS_TOPICS_EDIT","Modifica un topic");
-define("_AM_XNEWS_TOPICS_ID","Id");
-define("_AM_XNEWS_TOPICS_PID","Argomento Padre");
-define("_AM_XNEWS_TOPICS_TITLE","Nome dell'argomento");
-define("_AM_XNEWS_TOPICS_IMGURL","Immagine dell'argomento");
-define("_AM_XNEWS_TOPICS_MENU","Pubblica questo argomento come sottomenu");
-define("_AM_XNEWS_TOPICS_FRONTPAGE","Pubblica nella pagina principale?");
-define("_AM_XNEWS_TOPICS_RSSURL","Rssurl");
-define("_AM_XNEWS_TOPICS_DESCRIPTION","Descrizione dell'argomento");
-define("_AM_XNEWS_TOPICS_COLOR","Colore per il Topic");
-define("_AM_XNEWS_TOPICS_WEIGHT","Peso");
-define("_AM_XNEWS_TOPICS_SUBMITTER","Autore");
-define("_AM_XNEWS_TOPICS_CREATED","Data Creazione");
-define("_AM_XNEWS_TOPICS_ONLINE","Online");
-
-define("_AM_XNEWS_TOPICS_LIST_ID","ID Argomento");
-define("_AM_XNEWS_TOPICS_LIST_PID","PID Argomento");
-define("_AM_XNEWS_TOPICS_LIST_TITLE","Nome");
-define("_AM_XNEWS_TOPICS_LIST_IMGURL","Immagine");
-define("_AM_XNEWS_TOPICS_LIST_MENU","Sottomenu");
-define("_AM_XNEWS_TOPICS_LIST_FRONTPAGE","Pubblico");
-define("_AM_XNEWS_TOPICS_LIST_COLOR","Colore");
-define("_AM_XNEWS_TOPICS_LIST_WEIGHT","Peso");
-
-define("_AM_XNEWS_STORIES_VOTEDATA_ADD","Ajouter un stories_votedata");
-define("_AM_XNEWS_STORIES_VOTEDATA_EDIT","Editer un stories_votedata");
-/*define("_AM_XNEWS_STORIES_VOTEDATA_","");
-define("_AM_XNEWS_STORIES_VOTEDATA_","");*/
-define("_AM_XNEWS_STORIES_VOTEDATA_ER","Er");
-//define("_AM_XNEWS_STORIES_VOTEDATA_","");
-define("_AM_XNEWS_STORIES_VOTEDATA_STNAME","Stname");
-define("_AM_XNEWS_STORIES_VOTEDATA_MESTAMP","Mestamp");
-define("_AM_XNEWS_STORIES_VOTEDATA_SUBMITTER","Submitter");
-define("_AM_XNEWS_STORIES_VOTEDATA_DATE_CREATED","Date_created");
-define("_AM_XNEWS_STORIES_VOTEDATA_ONLINE","Online");
-
-//Blocks.php
-define("_AM_XNEWS_STORIES_BLOCK_DAY","storiess d'aujourdh'ui");
-define("_AM_XNEWS_STORIES_BLOCK_RANDOM","storiess aleatoires");
-define("_AM_XNEWS_STORIES_BLOCK_RECENT","storiess recents");
-define("_AM_XNEWS_STORIES_FILES_BLOCK_DAY","stories_filess d'aujourdh'ui");
-define("_AM_XNEWS_STORIES_FILES_BLOCK_RANDOM","stories_filess aleatoires");
-define("_AM_XNEWS_STORIES_FILES_BLOCK_RECENT","stories_filess recents");
-define("_AM_XNEWS_TOPICS_BLOCK_DAY","topicss d'aujourdh'ui");
-define("_AM_XNEWS_TOPICS_BLOCK_RANDOM","topicss aleatoires");
-define("_AM_XNEWS_TOPICS_BLOCK_RECENT","topicss recents");
-define("_AM_XNEWS_STORIES_VOTEDATA_BLOCK_DAY","stories_votedatas d'aujourdh'ui");
-define("_AM_XNEWS_STORIES_VOTEDATA_BLOCK_RANDOM","stories_votedatas aleatoires");
-define("_AM_XNEWS_STORIES_VOTEDATA_BLOCK_RECENT","stories_votedatas recents");
-
-//Permissions
-define("_AM_XNEWS_PERMISSIONS_4","Add Operations");
-define("_AM_XNEWS_PERMISSIONS_8","Edit Operations");
-define("_AM_XNEWS_PERMISSIONS_16","Export in pdf");
-define("_AM_XNEWS_PERM_APPROVE_DSC","Permessi di Approvazione");
-define("_AM_XNEWS_PERM_SUBMIT_DSC","Permessi di Inserimento");
-define("_AM_XNEWS_PERM_VIEW_DSC","Permessi di Visualizzazione");
-
-// $Id: admin.php,v 1.70 2010/09/01 17:48:07 dnprossi Exp $
-//%%%%%% Admin Module Name Articles %%%%%
-define("_AM_XNEWS_DBUPDATED", "Database aggiornato con successo!");
-define("_AM_XNEWS_CONFIG", "Amministrazione Notizie");
-define("_AM_XNEWS_AUTOARTICLES", "Notizie automatizzate");
-define("_AM_XNEWS_STORYID", "ID Notizia");
-define("_AM_XNEWS_TITLE", "Titolo");
-define("_AM_XNEWS_TOPIC", "Argomento");
-define("_AM_XNEWS_POSTER", "Autore");
-define("_AM_XNEWS_PROGRAMMED", "Data/Ora Programmata");
-define("_AM_XNEWS_ACTION", "Azione");
-define("_AM_XNEWS_EDIT", "Modifica");
-define("_AM_XNEWS_DELETE", "Cancella");
-define("_AM_XNEWS_LAST10ARTS", "Ultimi 10 Notizie");
-define("_AM_XNEWS_PUBLISHED", "Pubblicata"); // Published Date
-define("_AM_XNEWS_GO", "Vai!");
-define("_AM_XNEWS_EDITARTICLE", "Modifica Notizia");
-define("_AM_XNEWS_POSTNEWARTICLE", "Invia Notizia");
-define("_AM_XNEWS_ARTPUBLISHED", "La tua notizia \xE8 stata pubblicata!");
-define("_AM_XNEWS_HELLO", "Ciao %s,");
-define("_AM_XNEWS_YOURARTPUB", "La notizia inviata al nostro sito \xE8 stata pubblicata.");
-define("_AM_XNEWS_TITLEC", "Titolo: ");
-define("_AM_XNEWS_URLC", "Indirizzo: ");
-define("_AM_XNEWS_PUBLISHEDC", "Pubblicata: ");
-define("_AM_XNEWS_RUSUREDEL", "Sei certo di voler cancellare questa notizia e tutti i suoi commenti?");
-define("_AM_XNEWS_YES", "S\xEC");
-define("_AM_XNEWS_NO", "No");
-define("_AM_XNEWS_INTROTEXT", "Testo introduttivo");
-define("_AM_XNEWS_EXTEXT", "Notizia estesa");
-define("_AM_XNEWS_ALLOWEDHTML", "Consenti i tag HTML:");
-define("_AM_XNEWS_DISAMILEY", "Disabilita le faccine");
-define("_AM_XNEWS_DISHTML", "Disabilita i tag HTML");
-define("_AM_XNEWS_APPROVE", "Approva");
-define("_AM_XNEWS_MOVETOTOP", "Muovi questa notizia all'inizio");
-define("_AM_XNEWS_CHANGEDATETIME", "Modifica data/ora di pubblicazione");
-define("_AM_XNEWS_NOWSETTIME", "Al momento \xE8 impostata a: %s"); // %s is datetime of publish
-define("_AM_XNEWS_CURRENTTIME", "L'ora corrente \xE8: %s"); // %s is the current datetime
-define("_AM_XNEWS_SETDATETIME", "Imposta la data/ora di pubblicazione");
-define("_AM_XNEWS_MONTHC", "Mese:");
-define("_AM_XNEWS_DAYC", "Giorno:");
-define("_AM_XNEWS_YEARC", "Anno:");
-define("_AM_XNEWS_TIMEC", "Ora:");
-define("_AM_XNEWS_PREVIEW", "Anteprima");
-define("_AM_XNEWS_SAVE", "Salva");
-define("_AM_XNEWS_PUBINHOME", "Pubblica sulla pagina principale?");
-define("_AM_XNEWS_ADD", "Aggiungi");
-
-//%%%%%% Admin Module Name Topics %%%%%
-
-define("_AM_XNEWS_ADDMTOPIC", "Aggiungi un argomento principale");
-define("_AM_XNEWS_TOPICNAME", "Nome dell'argomento");
-
-define("_AM_XNEWS_MAX40CHAR", "(max: 255 caratteri)");
-define("_AM_XNEWS_TOPICIMG", "Immagine dell'argomento");
-define("_AM_XNEWS_IMGNAEXLOC", "nome immagine + estensione, con l'immagine situata in %s");
-define("_AM_XNEWS_FEXAMPLE", "es. giochi.gif");
-define("_AM_XNEWS_ADDSUBTOPIC", "Aggiungi un sotto argomento");
-define("_AM_XNEWS_IN", "in");
-define("_AM_XNEWS_MODIFYTOPIC", "Modifica Argomento");
-define("_AM_XNEWS_MODIFY", "Modifica");
-define("_AM_XNEWS_PARENTTOPIC", "Argomento Padre");
-define("_AM_XNEWS_SAVECHANGE", "Salva modifiche");
-define("_AM_XNEWS_DEL", "Cancella");
-define("_AM_XNEWS_CANCEL", "Annulla");
-define("_AM_XNEWS_WAYSYWTDTTAL", "ATTENZIONE: Sei certo di voler cancellare questo argomento e tutti i suoi gli articoli e commenti?");
-
-
-// Added in Beta6
-define("_AM_XNEWS_TOPICSMNGR", "Gestione Argomenti");
-define("_AM_XNEWS_PEARTICLES", "Gestione Notizie");
-define("_AM_XNEWS_NEWSUB", "Nuova Notizia");
-define("_AM_XNEWS_POSTED", "Inviato");
-define("_AM_XNEWS_GENERALCONF", "Impostazioni generali");
-
-// Added in RC2
-define("_AM_XNEWS_TOPICDISPLAY", "Mostra l'immagine dell'argomento?");
-define("_AM_XNEWS_TOPICALIGN", "Posizione");
-define("_AM_XNEWS_RIGHT", "Destra");
-define("_AM_XNEWS_LEFT", "Sinistra");
-
-define("_AM_XNEWS_EXPARTS", "Scadenza notizia");
-define("_AM_XNEWS_EXPIRED", "Scaduta");
-define("_AM_XNEWS_CHANGEEXPDATETIME", "Cambia la data/ora di scadenza");
-define("_AM_XNEWS_SETEXPDATETIME", "Imposta la data/ora di scadenza");
-define("_AM_XNEWS_NOWSETEXPTIME", "Attualmente \xE8 impostata a: %s");
-
-// Added in RC3
-define("_AM_XNEWS_ERRORTOPICNAME", "Devi inserire un titolo per l'argomento!");
-define("_AM_XNEWS_EMPTYNODELETE", "Non c'è niente da cancellare!");
-
-// Added 240304 (Mithrandir)
-define("_AM_XNEWS_GROUPPERM", "Permessi");
-define("_AM_XNEWS_SELFILE", "Seleziona file da Caricare");
-
-// Added by Herv\xE9
-define("_AM_XNEWS_UPLOAD_DBERROR_SAVE", "Errore nell'allegare il file alla notizia");
-define("_AM_XNEWS_UPLOAD_ERROR", "Errore nel caricamento del file");
-define("_AM_XNEWS_UPLOAD_ATTACHFILE", "File Allegati");
-define("_AM_XNEWS_APPROVEFORM", "Permessi di Approvazione");
-define("_AM_XNEWS_SUBMITFORM", "Permessi di Inserimento");
-define("_AM_XNEWS_VIEWFORM", "Permessi di Visualizzazione");
-define("_AM_XNEWS_APPROVEFORM_DESC", "Scegli chi può approvare le News");
-define("_AM_XNEWS_SUBMITFORM_DESC", "Scegli chi può inserire le News");
-define("_AM_XNEWS_VIEWFORM_DESC", "Scegli chi può vedere quali argomenti");
-define("_AM_XNEWS_DELETE_SELFILES", "Cancella i file selezionati");
-define("_AM_XNEWS_TOPIC_PICTURE", "Carica immagine");
-define("_AM_XNEWS_UPLOAD_WARNING", "<B>Attenzione, non dimenticare di settare i permessi di scrittura per la directory: %s</b>");
-
-define("_AM_XNEWS_UPGRADECOMPLETE", "Aggiornamento Completato");
-define("_AM_XNEWS_UPDATEMODULE", "Aggiorna i template e i blocchi del modulo");
-define("_AM_XNEWS_UPGRADEFAILED", "Aggiornamento Fallito");
-define("_AM_XNEWS_UPGRADE", "Aggiorna");
-define("_AM_XNEWS_ADD_TOPIC", "Aggiungi un Argomento");
-define("_AM_XNEWS_ADD_TOPIC_ERROR", "Errore, l'argomento esiste gi\xE0!");
-define("_AM_XNEWS_ADD_TOPIC_ERROR1", "ERRORE: Questo argomento non può essere selezionato come padre!");
-define("_AM_XNEWS_SUB_MENU", "Pubblica questo argomento come sottomenu");
-define("_AM_XNEWS_SUB_MENU_YESNO", "Sottomenu?");
-define("_AM_XNEWS_HITS", "Visite");
-define("_AM_XNEWS_CREATED", "Creato");
-
-define("_AM_XNEWS_TOPIC_DESCR", "Descrizione dell'argomento");
-define("_AM_XNEWS_USERS_LIST", "Lista Utenti");
-define("_AM_XNEWS_PUBLISH_FRONTPAGE", "Pubblica nella pagina principale?");
-define("_AM_XNEWS_UPGRADEFAILED1", "Impossibile creare la tabella nw_stories_files");
-define("_AM_XNEWS_UPGRADEFAILED2", "Impossibile modificare la lunghezza del titolo dell'argomento.");
-define("_AM_XNEWS_UPGRADEFAILED21", "Impossibile aggiungere nuovi campi alla tabella dei nw_topics");
-define("_AM_XNEWS_UPGRADEFAILED3", "Impossibile creare la tabella nw_stories_votedata");
-define("_AM_XNEWS_UPGRADEFAILED4", "Impossibile creare i campi 'rating' e 'voti' nella tabella 'story'");
-define("_AM_XNEWS_UPGRADEFAILED0", "Per favore, annota i messaggi e cerca di correggere i problemi con phpMyAdmin e il file di definizione sql presente nella directory sql del modulo");
-define("_AM_XNEWS_UPGR_ACCESS_ERROR", "Errore, per usare lo script di upgrade devi essere un admin di questo modulo");
-define("_AM_XNEWS_PRUNE_BEFORE", "Elimina storie pubblicate prima del");
-define("_AM_XNEWS_PRUNE_EXPIREDONLY", "Rimuovi solo le storie scadute");
-define("_AM_XNEWS_PRUNE_CONFIRM", "Attenzione, stai per rimuovere permanentemente le storie pubblicate prima del %s (questa azione non può essere annullata). Parliamo di %s storie.<br />Sei sicuro?");
-define("_AM_XNEWS_PRUNE_TOPICS", "Limita ai seguenti argomenti");
-define("_AM_XNEWS_PRUNENEWS", "Elimina Notizie");
-define("_AM_XNEWS_EXPORT_NEWS", "Esporta Notizie");
-define("_AM_XNEWS_EXPORT_NOTHING", "Spiacente, non c'\xE8 nulla da esportare. Verifica i tuoi criteri");
-define("_AM_XNEWS_PRUNE_DELETED", "%d storie sono state eliminate");
-define("_AM_XNEWS_PERM_WARNING", "<h2>Attenzione, hai 3 forms, quindi hai 3 pulsanti 'inserimento'</h2>");
-define("_AM_XNEWS_EXPORT_BETWEEN", "Esporta le notizie pubblicate tra il");
-define("_AM_XNEWS_EXPORT_AND", " e il ");
-define("_AM_XNEWS_EXPORT_PRUNE_DSC", "Se non selezioni nulla, tutti gli argomenti verranno utilizzati<br />altrimenti, saranno usati solo quelli selezionati");
-define("_AM_XNEWS_EXPORT_INCTOPICS", "Includi le definizioni degli Argomenti?");
-define("_AM_XNEWS_EXPORT_ERROR", "Errore durante la creazione del file %s. Operazione interrotta.");
-define("_AM_XNEWS_EXPORT_READY", "Il tuo file di esportazione xml \xE8 pronto per il download. <br>Clicca <a href='%s'>qui</a> per scaricarlo.<br>Non dimenticare <a href='%s'>di rimuoverlo</a> quando hai finito.");
-define("_AM_XNEWS_RSS_URL", "URL del feed RSS");
-define("_AM_XNEWS_NEWSLETTER", "Newsletter");
-define("_AM_XNEWS_NEWSLETTER_BETWEEN", "Seleziona le notizie pubblicate tra");
-define("_AM_XNEWS_NEWSLETTER_READY", "Il tuo file newsletter \xE8 pronto per il download.<br /><a href='%s'>Clicca su questo link per scaricarlo.</a>.<br />Non dimenticare <a href='%s'>di rimuoverlo</a> quando hai finito.");
-define("_AM_XNEWS_DELETED_OK", "File cancellato con successo");
-define("_AM_XNEWS_DELETED_PB", "C'\xE8 stato un problema nella cancellazione del file");
-define("_AM_XNEWS_STATS0", "Statistiche degli argomenti");
-define("_AM_XNEWS_STATS", "Statistiche");
-define("_AM_XNEWS_STATS1", "Autori Unici");
-define("_AM_XNEWS_STATS2", "Totali");
-define("_AM_XNEWS_STATS3", "Statistiche sugli Articoli");
-define("_AM_XNEWS_STATS4", "Articoli pi\xF9 letti");
-define("_AM_XNEWS_STATS5", "Articoli meno letti");
-define("_AM_XNEWS_STATS6", "Articoli pi\xF9 votati");
-define("_AM_XNEWS_STATS7", "Autori pi\xF9 letti");
-define("_AM_XNEWS_STATS8", "Autori pi\xF9 votati");
-define("_AM_XNEWS_STATS9", "Maggiori Contirbuenti");
-define("_AM_XNEWS_STATS10", "Statistiche sugli Autori");
-define("_AM_XNEWS_STATS11", "Conteggio Articoli");
-define("_AM_XNEWS_HELP", "Aiuto");
-define("_AM_XNEWS_MODULEADMIN", "Amministrazione del Modulo");
-define("_AM_XNEWS_GENERALSET", "Preferenze");
-define("_AM_XNEWS_GOTOMOD", "Vai al Modulo");
-define("_AM_XNEWS_NOTHING", "Spiacente, niente da scaricare, verifica i criteri!");
-define("_AM_XNEWS_NOTHING_PRUNE", "Spiacente, nessuna notizia da eliminare, verifica i criteri!");
-define("_AM_XNEWS_TOPIC_COLOR", "Colore per il Topic");
-define("_AM_XNEWS_COLOR", "Color");
-define("_AM_XNEWS_REMOVE_BR", "Converti il tag html <br> in un nuova linea?");
-// Added in 1.3 RC2
-define("_AM_XNEWS_PLEASE_UPGRADE", "<a href='upgrade.php'><font color='#FF0000'>Per favore, aggiorna il modulo!</font></a>");
-
-// Added in verisn 1.50
-define("_AM_XNEWS_NEWSLETTER_HEADER", "Intestazione");
-define("_AM_XNEWS_NEWSLETTER_FOOTER", "Pi\xE8 di Pagina");
-define("_AM_XNEWS_NEWSLETTER_HTML_TAGS", "Rimuovi i tags html?");
-define("_AM_XNEWS_VERIFY_TABLES", "Manutenzione tabelle");
-define("_AM_XNEWS_METAGEN", "Metagen");
-define("_AM_XNEWS_METAGEN_DESC", "Metagen \xE8 un sistema che ti aiuta ad avere una migliore indicizzazione nei motori di ricerca per le tue pagine web.<br />Infatti se inserisci meta keywords e meta descriptions, il modulo creer\xE0 automaticamente le chiavi di indicizzazione.");
-define("_AM_XNEWS_BLACKLIST", "Lista nera");
-define("_AM_XNEWS_BLACKLIST_DESC", "Le parole in questa lista non saranno usate per creare meta keywords");
-define("_AM_XNEWS_BLACKLIST_ADD", "Aggiungi");
-define("_AM_XNEWS_BLACKLIST_ADD_DSC", "Inserisci parole da aggiungere alla lista<br />(una parola per riga)");
-define("_AM_XNEWS_META_KEYWORDS_CNT", "Ammontare massimo di meta keywords auto-generate");
-define("_AM_XNEWS_META_KEYWORDS_ORDER", "Ordine delle keywords");
-define("_AM_XNEWS_META_KEYWORDS_INTEXT", "Creale in ordine di apparizione nel testo");
-define("_AM_XNEWS_META_KEYWORDS_FREQ1", "Parole in ordine di frequenza");
-define("_AM_XNEWS_META_KEYWORDS_FREQ2", "Parole in ordine di frequenza al contrario");
-
-// Added in version 1.67 Beta
-define("_AM_XNEWS_SUBPREFIX", "Sotto-prefisso");
-
-define("_AM_XNEWS_CLONER", "Gestore Cloni");
-define("_AM_XNEWS_CLONER_CLONES", "Cloni");
-define("_AM_XNEWS_CLONER_ADD", "Aggiungi Clone");
-define("_AM_XNEWS_CLONER_ID", "ID");
-define("_AM_XNEWS_CLONER_NAME", "Nome");
-define("_AM_XNEWS_CLONER_DIRFOL", "Dir/Cartella");
-define("_AM_XNEWS_CLONER_VERSION", "Versione");
-
-define("_AM_XNEWS_CLONER_NEWNAME", "Nome nuovo modulo");
-define("_AM_XNEWS_CLONER_NEWNAMEDESC", "Avr\xE0 effetto anche sulla creazione della nuova cartella. <br /> Le maiuscole/minuscole e spazi vengono ignorati e corretti automaticamente. <br /> es. nuovo nome = <b>Biblioteca</b> nuova dir = <b>biblioteca</b>, <br /> nuovo nome <b>La Mia Biblioteca</b> nuova dir = <b>lamiacartella</b>. <br /><br /> Il modulo di partenza \xE8: <font color='#008400'><b> %s </b></font><br />");
-define("_AM_XNEWS_CLONER_NEWNAMELABEL", "Nuovo Modulo:");
-
-define("_AM_XNEWS_CLONER_DIREXISTS", "Dir/Cartella '%s' esistente!!");
-define("_AM_XNEWS_CLONER_CREATED", "Il modulo '%s' \xE8 stato clonato correttamente!!");
-define("_AM_XNEWS_CLONER_UPRADED", "Il modulo '%s' \xE8 stato aggiornato correttamente!!");
-define("_AM_XNEWS_CLONER_NOMODULEID", "L'id modulo non \xE8 attivo!");
-
-define("_AM_XNEWS_CLONER_UPDATE", "Attualizza");
-define("_AM_XNEWS_CLONER_INSTALL", "Installa");
-define("_AM_XNEWS_CLONER_UNINSTALL", "Disinstalla");
-define("_AM_XNEWS_CLONER_ACTION_INSTALL", "Installa/Disinstalla");
-
-define("_AM_XNEWS_CLONER_IMPORTNEWS", "Importare dati del modulo News originale");
-define("_AM_XNEWS_CLONER_IMPORTNEWSDESC1", "Il modulo News originale esiste! Importare i dati ora?");
-define("_AM_XNEWS_CLONER_IMPORTNEWSDESC2", "Il bottone di importazione appare solo se la tabella stories \xE8 vuota. <br />
- Se \xE8 stata aggiunto una notizia prima di importare dal modulo news originale <br />
- si dovr\xE0 disinstallare e reinstallare x"."News. <br />
- Se sono gi\xE0 stati importati i dati dal mosulo originale News, lasciare cos\xEC.");
-define("_AM_XNEWS_CLONER_IMPORTNEWSSUB", "Importa");
-define("_AM_XNEWS_CLONER_NEWSIMPORTED", "Dati modulo News originale importati correttamente");
-
-// Added in version 1.68 Beta
-define("_AM_XNEWS_DESCRIPTION", "<H3>x"."News e un modulo delle notizie clonabile</H3>
- dove gli utenti possono inviare notizie/commenti. Il modulo può essere clonato per avere un unico metodo per diversi compiti. Oltre che per le normali notizie il modulo può essere utilizzato per info, collegamenti e altro ancora, tutti coi propri blocchi, argomenti e impostazioni.");
-
-// Added in version 1.68 RC1
-define("_AM_XNEWS_CLONER_CLONEDELETED", "Il clone '%s' \xE8 stato cancellato con successo.");
-define("_AM_XNEWS_CLONER_CLONEDELETEDERR", "il clone '%s' non \xE8 stato cancellato - controllare i permessi.");
-define("_AM_XNEWS_CLONER_CLONEUPGRADED", "Aggiornato");
-define("_AM_XNEWS_CLONER_UPGRADEFORCE", "Forza aggiornamento");
-define("_AM_XNEWS_CLONER_CLONEDELETION", "Cancellazione Clone");
-define("_AM_XNEWS_CLONER_SUREDELETE", "Sicuri di voler cancellare il clone <font color='#000000'>'%s'</font>?<br />");
-define("_AM_XNEWS_CLONER_CLONEID", "L'ID del clone non trovato!");
-
-// Added in version 1.68 RC2
-define("_AM_XNEWS_INDEX", "Indice");
-
-// Added in version 1.68 Final
-define("_AM_XNEWS_DOLINEBREAK", "Abilita Fine Riga");
-
-define("_AM_XNEWS_TOPICS","Argomenti");
-
-// Added in version 1.72 Beta 1
-define("_AM_XNI_MODULEADMIN", "Amministrazione");
-define("_AM_XNI_TOPICS", "Argomenti");
-define("_AM_XNI_TOPIC_ID", "ID");
-define("_AM_XNI_TOPIC_TITLE", "Titolo");
-define("_AM_XNI_TOPIC_PARENT", "Genitore");
-define("_AM_XNI_CANCEL", "Annulla");
-define("_AM_XNI_ACTION", "Seleziona");
-define("_AM_XNI_SELECT_ALL", "Seleziona tutti");
-
-define("_AM_XNI_IMPORT", "Importa");
-define("_AM_XNI_IMPORT_SELECTION", "Selezione da Importazione");
-define("_AM_XNI_IMPORT_TITLE", "Importa articoli");
-define("_AM_XNI_IMPORT_INFO", "E' possibile importare gli articoli direttamente in Xnews e cloni. Basta selezionare il modulo che si desidera importare gli articoli <b>da</b> e <b>cliccare</b> poi sul pulsante 'Importa'. <br> <b>Eseguire questa operazione solo una volta, in caso contrario, gli articoli saranno duplicati</b>");
-define("_AM_XNI_IMPORT_MODULE_FOUND", "Ci sono <b>%s</b> articoli e <b>%s</b> categorie che possono essere importati dal modulo <b>%s</b>.");
-define("_AM_XNI_IMPORT_PARENT_CATEGORY", "Settore superiore");
-define("_AM_XNI_IMPORT_PARENT_CATEGORY_DSC", "Importa le categorie selezionate in questa categoria superiore.");
-define("_AM_XNI_IMPORT_CATEGORIES", "Categorie da importare");
-define("_AM_XNI_IMPORT_CATEGORIES_DSC", "Qui ci sono le categorie che verranno importate in Xnews");
-define("_AM_XNI_IMPORT_SETTINGS", "Impostazioni importazione");
-define("_AM_XNI_IMPORT_SUCCESS", "Gli articoli sono stati importati con successo nel modulo.");
-define("_AM_XNI_IMPORT_CATEGORY_SUCCESS", "Categoria <em><b>%s</b></em> importata con successo.<br />");
-
-define("_AM_XNI_IMPORTED_ARTICLE", "Importato articolo:<em><b>%s</b></em>");
-define("_AM_XNI_IMPORTED_ARTICLES", "Oggetti importati: <em>%s</em>");
-define("_AM_XNI_IMPORTED_CATEGORIES", "Categorie importate: <em>%s</em>");
-
-define("_AM_XNI_IMPORTED_FILE", "Importato file:<em><b>%s</b></em>");
-define("_AM_XNI_IMPORTED_FILES", "Fileimportati: <em>%s</em>");
-define("_AM_XNI_IMPORTED_COMMENT", "Importato commento:<em><b>%s</b></em>");
-define("_AM_XNI_IMPORTED_COMMENTS", "Commenti importati: <em>%s</em>");
-
-define("_AM_XNI_IMPORT_GOTOINDEX", "Indice");
-define("_AM_XNI_IMPORT_NO_XNEWSCLONE", "Nessun Xnews o clone di importare a trovare!");
-define("_AM_XNI_IMPORT_NO_MODULE", "Nessun modulo da importare trovato!");
-define("_AM_XNI_IMPORT_FROM", "Importa da");
-define("_AM_XNI_IMPORT_FROM_DSC", "Scegli il modulo che si desidera importare <b>articoli.</b>");
-define("_AM_XNI_IMPORT_TO", "Importa");
-define("_AM_XNI_IMPORT_TO_DSC", "Scegli il modulo che si desidera importare <b>articoli.</b>");
-define("_AM_XNI_IMPORT_NO_CATEGORY", "Nessuna categoria è stata trovata");
-
-define("_AM_XNI_IMPORT_FROM_TOPICS", "Importa da");
-define("_AM_XNI_IMPORT_FROM_TOPICS_DSC", "Selezionare una o più categorie di importazione da. <br /> Non selezionare nulla per importare tutte le categorie.");
-define("_AM_XNI_IMPORT_TO_TOPICS", "Importa in");
-define("_AM_XNI_IMPORT_TO_TOPICS_DSC", "Selezionare un argomento dove importare.");
-define("_AM_XNI_IMPORT_GOTOMODULE","Goto module");
-
-define("_AM_XNEWS_MAINTAINEDBY","è gestito da");
-?>
\ No newline at end of file
Deleted: XoopsModules/xnews/trunk/timgno/xnews/language/italian/modinfo.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/language/italian/modinfo.php~ 2012-01-31 18:23:32 UTC (rev 8850)
+++ XoopsModules/xnews/trunk/timgno/xnews/language/italian/modinfo.php~ 2012-01-31 18:28:09 UTC (rev 8851)
@@ -1,295 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
- * ****************************************************************************
- */
-// $Id: modinfo.php,v 1.70 2010/09/01 17:48:07 dnprossi Exp $
-// Module Info
-
-// The name of this module
-define("_MI_XNEWS_NAME", "Notizie");
-
-// A brief description of this module
-define("_MI_XNEWS_DESC", "Crea una sezione di notizie in cui gli utenti possono inviare e commentare notizie.");
-
-// Names of blocks for this module (Not all module has blocks)
-define("_MI_XNEWS_BNAME1", "Argomenti delle notizie");
-define("_MI_XNEWS_BNAME3", "Notizia del giorno");
-define("_MI_XNEWS_BNAME4", "Notizie più lette");
-define("_MI_XNEWS_BNAME5", "Notizie recenti");
-define("_MI_XNEWS_BNAME6", "Modera Notizie");
-define("_MI_XNEWS_BNAME7", "Naviga tra gli Argomenti");
-
-// Sub menus in main menu block
-define("_MI_XNEWS_SMNAME1", "Scrivi una notizia");
-define("_MI_XNEWS_SMNAME2", "Archivio");
-
-// Names of admin menu items
-define("_MI_XNEWS_ADMENU1", "Dashboard");
-define("_MI_XNEWS_ADMENU2", "Gestione Argomenti");
-define("_MI_XNEWS_ADMENU3", "Gestione Notizie");
-define("_MI_XNEWS_ADMENU4", "Permessi");
-define("_MI_XNEWS_ADMENU5", "Importa Notizie");
-define("_MI_XNEWS_ADMENU6", "Esporta Notizie");
-define("_MI_XNEWS_ADMENU7", "Newsletter");
-define("_MI_XNEWS_ADMENU8", "Statistiche");
-define("_MI_XNEWS_ADMENU9", "Metagen");
-define("_MI_XNEWS_ADMENU10", "Gestore Cloni");
-define("_MI_XNEWS_ADMENU11", "Informazioni");
-// Added by Herv\xE9 for prune option
-define("_MI_XNEWS_PRUNENEWS", "Elimina Notizie");
-
-
-// Title of config items
-define("_MI_XNEWS_STORYHOME", "Quante notizie sulla pagina principale?");
-define("_MI_XNEWS_NOTIFYSUBMIT", "Notifica via email ogni nuova notizia inviata?");
-define("_MI_XNEWS_DISPLAYNAV", "Mostra il box di navigazione?");
-define("_MI_XNEWS_AUTOAPPROVE", "Approva automaticamente le nuove notizie senza l'intervento dell'amministratore?");
-define("_MI_XNEWS_ALLOWEDSUBMITGROUPS", "Gruppi che possono inviare notizie");
-define("_MI_XNEWS_ALLOWEDAPPROVEGROUPS", "Gruppi che possono approvare notizie");
-define("_MI_XNEWS_NEWSDISPLAY", "Layout di visualizzazione notizie");
-define("_MI_XNEWS_NAMEDISPLAY", "Nome dell'Autore");
-define("_MI_XNEWS_COLUMNMODE", "Colonne");
-define("_MI_XNEWS_STORYCOUNTADMIN", "Numero di nuovi articoli da visualizzare nell'area admin (usata anche per limitare il numero di topic mostrati nell'area admin e nelle statistiche): ");
-define("_MI_XNEWS_UPLOADFILESIZE", "MAX Dimensione file per caricamento (KB) 1048576 = 1 Meg");
-define("_MI_XNEWS_UPLOADGROUPS", "Gruppi autorizzati a caricare file");
-
-// Description of each config items
-define("_MI_XNEWS_STORYHOMEDSC", "Seleziona il numero di notizie da visualizzare sulla pagina principale.");
-define("_MI_XNEWS_NOTIFYSUBMITDSC", "Scegli Sì per inviare un messaggio di notifica al webmaster per ogni nuova notizia inviata.");
-define("_MI_XNEWS_DISPLAYNAVDSC", "Scegli Sì per mostrare il box di navigazione in cima a ogni pagina di notizie.");
-define("_MI_XNEWS_AUTOAPPROVEDSC", "");
-define("_MI_XNEWS_ALLOWEDSUBMITGROUPSDESC", "I gruppi selezionati saranno autorizzati a inviare nuove notizie");
-define("_MI_XNEWS_ALLOWEDAPPROVEGROUPSDESC", "I gruppi selezionati saranno autorizzati ad approvare le notizie inserite");
-define("_MI_XNEWS_NEWSDISPLAYDESC", "Classico mostra tutte le notizie ordinate per data di pubblicazione. Per Argomento raggruppa le notizie per argomento, con la prima completa e delle altre solo il titolo");
-define("_MI_XNEWS_ADISPLAYNAMEDSC", "Scegli come visualizzare il nome dell'autore");
-define("_MI_XNEWS_COLUMNMODE_DESC", "You can choose the number of columns to display articles list");
-define("_MI_XNEWS_STORYCOUNTADMIN_DESC", "");
-define("_MI_XNEWS_UPLOADFILESIZE_DESC", "");
-define("_MI_XNEWS_UPLOADGROUPS_DESC", "Seleziona i gruppi che possono caricare sul server");
-
-define("_MI_XNEWS_DOCTRIADMIN", "Document Tri");
-define("_MI_XNEWS_DOCTRIADMIN_DESC", "Document Tri on admin");
-define("_MI_XNEWS_DOCORDERADMIN", "Document Tri 1");
-define("_MI_XNEWS_DOCORDERADMIN_DESC", "Document Tri 2");
-define("_MI_XNEWS_UPLOADFILESIZE_DESC", "Document Order");
-define("_MI_XNEWS_UPLOADGROUPS_DESC", "Document Order on admin");
-define("_MI_XNEWS_UPLOADFILESIZE_DESC", "Document Order 1");
-define("_MI_XNEWS_UPLOADGROUPS_DESC", "Document Order 2");
-
-// Name of config item values
-define("_MI_XNEWS_NEWSCLASSIC", "Classico");
-define("_MI_XNEWS_NEWSBYTOPIC", "Per Argomento");
-define("_MI_XNEWS_DISPLAYNAME1", "Nome Utente");
-define("_MI_XNEWS_DISPLAYNAME2", "Vero Nome");
-define("_MI_XNEWS_DISPLAYNAME3", "Non mostrare autore");
-define("_MI_XNEWS_UPLOAD_GROUP1", "Chi invia e chi può approvare");
-define("_MI_XNEWS_UPLOAD_GROUP2", "Solo chi può approvare");
-define("_MI_XNEWS_UPLOAD_GROUP3", "Caricamento disabilitato");
-
-// Text for notifications
-define("_MI_XNEWS_GLOBAL_NOTIFY", "Globale");
-define("_MI_XNEWS_GLOBAL_NOTIFYDSC", "Opzioni globali di notifica delle notizie.");
-
-define("_MI_XNEWS_STORY_NOTIFY", "Articolo");
-define("_MI_XNEWS_STORY_NOTIFYDSC", "Opzioni di notifica applicati a questo articolo");
-
-define("_MI_XNEWS_GLOBAL_NEWCATEGORY_NOTIFY", "Nuovo argomento");
-define("_MI_XNEWS_GLOBAL_NEWCATEGORY_NOTIFYCAP", "Notificami per ogni nuovo argomento creato.");
-define("_MI_XNEWS_GLOBAL_NEWCATEGORY_NOTIFYDSC", "Ricevi una notifica quando un nuovo argomento viene creato.");
-define("_MI_XNEWS_GLOBAL_NEWCATEGORY_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} notifica automatica : Nuovo argomento delle notizie");
-
-define("_MI_XNEWS_GLOBAL_STORYSUBMIT_NOTIFY", "Nuovo articolo inviato");
-define("_MI_XNEWS_GLOBAL_STORYSUBMIT_NOTIFYCAP", "Notificami per ogni nuovo articolo inviato (in attesa di approvazione).");
-define("_MI_XNEWS_GLOBAL_STORYSUBMIT_NOTIFYDSC", "Ricevi una notifica quando un nuovo articolo viene inviato (in attesa di approvazione).");
-define("_MI_XNEWS_GLOBAL_STORYSUBMIT_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} notifica automatica : Nuovo articolo inviato");
-
-define("_MI_XNEWS_GLOBAL_NEWSTORY_NOTIFY", "Nuovo articolo");
-define("_MI_XNEWS_GLOBAL_NEWSTORY_NOTIFYCAP", "Notificami per ogni nuovo articolo inviato.");
-define("_MI_XNEWS_GLOBAL_NEWSTORY_NOTIFYDSC", "Ricevi una notifica quando un nuovo articolo viene inviato.");
-define("_MI_XNEWS_GLOBAL_NEWSTORY_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} notifica automatica : Nuovo articolo");
-
-define("_MI_XNEWS_STORY_APPROVE_NOTIFY", "Articolo approvato");
-define("_MI_XNEWS_STORY_APPROVE_NOTIFYCAP", "Notificami quando questo articolo viene approvato.");
-define("_MI_XNEWS_STORY_APPROVE_NOTIFYDSC", "Ricevi una notifica quando questo articolo viene approvato.");
-define("_MI_XNEWS_STORY_APPROVE_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} notifica automatica : Articolo approvato");
-
-define("_MI_XNEWS_RESTRICTINDEX", "Limita gli argomenti sulla pagina Indice?");
-define("_MI_XNEWS_RESTRICTINDEXDSC", "Se impostato a sì, gli utenti potranno vedere nell'indice solo le notizie a cui hanno accesso, come settato in Permessi");
-
-define("_MI_XNEWS_NEWSBYTHISAUTHOR", "Notizie dello stesso Autore");
-define("_MI_XNEWS_NEWSBYTHISAUTHORDSC", "Se impostato a sì, comparirà un link 'Articoli di questo autore'.");
-
-define("_MI_XNEWS_PREVNEX_LINK", "Mostra link Precedente e Successivo?");
-define("_MI_XNEWS_PREVNEX_LINK_DESC", "Quando quest'opzione è impostata a 'sì', due nuovi link sono visibili alla fine di ogni articolo. Questi link sono utilizzati per navigare verso l'articolo precedente o successivo in ordine di data");
-define("_MI_XNEWS_SUMMARY_SHOW", "Mostra tabella sommario?");
-define("_MI_XNEWS_SUMMARY_SHOW_DESC", "Quando usi questa opzione, un sommario contenente link a tutti gli articoli recentemente pubblicati è visibile alla fine di ogni articolo");
-define("_MI_XNEWS_AUTHOR_EDIT", "Permetti agli autori di modificare i loro invii?");
-define("_MI_XNEWS_AUTHOR_EDIT_DESC", "Con questa opzione, gli autori possono modificare le loro notizie.");
-define("_MI_XNEWS_RATE_NEWS", "Permetti agli utenti di votare le notizie ?");
-define("_MI_XNEWS_TOPICS_RSS", "Permetti RSS Feed dell'argomento?");
-define("_MI_XNEWS_TOPICS_RSS_DESC", "Se imposti questa opzione a 'sì', il contenuto dell'argomento sarà disponibile come RSS Feed");
-define("_MI_XNEWS_DATEFORMAT", "Formato Data");
-define("_MI_XNEWS_DATEFORMAT_DESC", "Riferisciti alla documentazione PHP per maggiorin informazioni su come selezionare il formato. Se non inserisci nulla il formato di default sarà utilizzato.");
-define("_MI_XNEWS_META_DATA", "Permetti di inserire meta data (keywords e description)?");
-define("_MI_XNEWS_META_DATA_DESC", "Se imposti questa opzione a 'sì', chi approva una notizia potrà inserire i meta dati keyword e description");
-define("_MI_XNEWS_BNAME8", "Notizie Casuali");
-define("_MI_XNEWS_NEWSLETTER", "Newsletter");
-define("_MI_XNEWS_STATS", "Statistiche");
-define("_MI_XNEWS_FORM_OPTIONS", "Opzioni Form");
-define("_MI_XNEWS_EDITOR", "Editor");
-define("_MI_XNEWS_FORM_OPTIONS_DESC", "Scegli l'editor da utilizzare. Se hai una installazione 'semplice' (usi solo le classi editor di core contenute nel package standard di xoops), puoi scegliere tra DHTML e Compact");
-define("_MI_XNEWS_KEYWORDS_HIGH", "Evidenzia parole chiave?");
-define("_MI_XNEWS_KEYWORDS_HIGH_DESC", "Se usi questa opzione, le parole chiave inserite nella ricerca verranno evidenziate negli articoli");
-define("_MI_XNEWS_HIGH_COLOR", "Colore utilizzato per evidenzare le parole chiave?");
-define("_MI_XNEWS_HIGH_COLOR_DES", "Usa questa opzione solo se hai scelto 'sì' per la precedente.");
-define("_MI_XNEWS_INFOTIPS", "Lunghezza Tooltips");
-define("_MI_XNEWS_INFOTIPS_DES", "Se usi questa opzione, i link relativi alle notizie conterranno i primi (n) caratteri dell'articolo. Se imposti questo valore a 0, gli infotips saranno vuoti.");
-define("_MI_XNEWS_SITE_NAVBAR", "Usa la barra di navigazione di Mozilla e Opera?");
-define("_MI_XNEWS_SITE_NAVBAR_DESC", "Se imposti questa opzione a 'sì' i visitatori del tuo sito potranno utilizzare la barra di navigazione per muoversi tra i tuoi articoli.");
-define("_MI_XNEWS_TABS_SKIN", "Scegli la skin da utilizzare nelle cartelle");
-define("_MI_XNEWS_TABS_SKIN_DESC", "Questa skin verrà utilizzata in ogni blocco che usa le cartelle");
-define("_MI_XNEWS_SKIN_1", "Bar Style");
-define("_MI_XNEWS_SKIN_2", "Beveled");
-define("_MI_XNEWS_SKIN_3", "Classic");
-define("_MI_XNEWS_SKIN_4", "Folders");
-define("_MI_XNEWS_SKIN_5", "MacOs");
-define("_MI_XNEWS_SKIN_6", "Plain");
-define("_MI_XNEWS_SKIN_7", "Rounded");
-define("_MI_XNEWS_SKIN_8", "ZDnet style");
-
-// Added in version 1.50
-define("_MI_XNEWS_BNAME9", "Archivi");
-define("_MI_XNEWS_FORM_TINYEDITOR", "TinyEditor");
-define("_MI_XNEWS_FOOTNOTES", "Visualizza i links degli articoli in versione stampabile?");
-define("_MI_XNEWS_DUBLINCORE", "Attiva Dublin Core Metadata ?");
-define("_MI_XNEWS_DUBLINCORE_DSC", "Per maggiori informazioni, <a hreh='http://dublincore.org/'>visit this link</a>");
-define("_MI_XNEWS_BOOKMARK_ME", "Visualizza un 'Segnalibro di questo articolo in questo blocco' ?");
-define("_MI_XNEWS_BOOKMARK_ME_DSC", "Questo blocco sarà visibile nella pagina dell'articolo");
-define("_MI_XNEWS_FF_MICROFORMAT", "Attiva Firefox 2 Micro Summaries ?");
-define("_MI_XNEWS_FF_MICROFORMAT_DSC", "Per maggiori informazioni vai su <a href='http://wiki.mozilla.org/Microsummaries' target='_blank'>questa pagina</a>");
-define("_MI_XNEWS_WHOS_WHO", "Chi di Chi");
-define("_MI_XNEWS_METAGEN", "Metagen");
-define("_MI_XNEWS_TOPICS_DIRECTORY", "Lista degli argomenti");
-define("_MI_XNEWS_ADVERTISEMENT", "Pubblicità");
-define("_MI_XNEWS_ADV_DESCR", "Inserisci testo o javascript code da visualizzare nei tuoi articoli");
-define("_MI_XNEWS_MIME_TYPES", "Inserisci Mime Types per l'upload autorizzato (uno per ogni riga)");
-define("_MI_XNEWS_ENHANCED_PAGENAV", "Usa il blocco di navigazione?");
-define("_MI_XNEWS_ENHANCED_PAGENAV_DSC", "Con questa opzione puoi separare le tue pagine con qualcosa tipo questo : [pagrebreak:Page Title], i links alle pagine verrano sovrascritte da una lista a discesa e potrai usare [summary] per creare un sommario per le pagine automatico");
-
-// Added in version 1.54
-define("_MI_XNEWS_CATEGORY_NOTIFY", "Categoria");
-define("_MI_XNEWS_CATEGORY_NOTIFYDSC", "Opzioni di notifica per la categoria corrente");
-
-define("_MI_XNEWS_CATEGORY_STORYPOSTED_NOTIFY", "Caricata una nuova notizia");
-define("_MI_XNEWS_CATEGORY_STORYPOSTED_NOTIFYCAP", "Notificami quando una nuova notizia viene caricata in questa categoria.");
-define("_MI_XNEWS_CATEGORY_STORYPOSTED_NOTIFYDSC", "Ricevi notifiche quando qualsiasi nuova storia viene caricata in questa categoria.");
-define("_MI_XNEWS_CATEGORY_STORYPOSTED_NOTIFYSBJ", "[{X_SITENAME}] {X_MODULE} auto-notifica : Nuova Notizia");
-
-// Added in version 1.63
-define("_MI_XNEWS_TAGS", "Vuoi usare i TAG ?");
-define("_MI_XNEWS_TAGS_DSC", "Questo è basato sul modulo XOOPS Tag di phppp");
-define("_MI_XNEWS_BNAME10", "Tags a nuvola");
-define("_MI_XNEWS_BNAME11", "Migliori Tags");
-define("_MI_XNEWS_INTRO_TEXT", "Testo introduttivo da visualizzare sulla pagina di invio");
-define("_MI_XNEWS_IMAGE_MAX_WIDTH", "Massima larghezza immagine quando ridimensionata");
-define("_MI_XNEWS_IMAGE_MAX_HEIGHT", "Massima altezza immagine quando ridimensionata");
-
-// Added in version 1.67
-define("_MI_XNEWS_CLONER", "Gestore Cloni");
-
-define("_MI_XNEWS_LATESTNEWS_BLOCK", "Blocco Latest News");
-
-// Added in version 1.68 BETA
-define("_MI_XNEWS_TOPICDISPLAY", "Visualizza Argomenti");
-define("_MI_XNEWS_TOPICDISPLAYDESC", "Abilita/disabilita la visualizzazione del titolo degli argomenti nelle intestazioni dei blocchi");
-
-define("_MI_XNEWS_SEOENABLE", "Abilita SEO ");
-define("_MI_XNEWS_SEOENABLEDESC", "This will enable/disable SEO activity.<br /> If <b>htaccess</b> is selected you will get: <br /> http://your.site.com/<b>xnews</b>/topics.1/your-topic-title.html <br /> If path-info is selected you will get: <br /> http://your.site.com/modules/xnews/index.php/topics.1/your-topic-title.html");
-
-// Added in version 1.68 RC1
-define("_MI_XNEWS_EXTEND_META_DATA", "Estendi input meta-data");
-define("_MI_XNEWS_EXTEND_META_DATA_DESC", "Alterna tra textbox e textarea per l'insrimento testi dei meta-data<br /> sia per la descrizione che per le parole chiave.");
-
-define("_MI_XNEWS_NONE", "Nessuno");
-define("_MI_XNEWS_TOPONLY", "Solo sopra");
-define("_MI_XNEWS_BOTTOMONLY", "Solo sotto");
-define("_MI_XNEWS_BOTH", "Entrambi");
-define("_MI_XNEWS_DISPLAYLINKICNS", "Visualizza Icone Link");
-define("_MI_XNEWS_DISPLAYLINKICNSDESC", "Visualizza le icone di stampa, friend e pdf nessuno-sopra-sotto-entrambi");
-
-define("_MI_XNEWS_SEOPATH", "Percorso SEO ");
-define("_MI_XNEWS_SEOPATHDESC", "Questo aggiunge un titolo al url SEO sia per <b>htaccess</b> che per <b>path-info</b>. <br /> Se lasciato vuoto si ottiene: <br /> http://tuo.sito.com/argomenti.1/il-tuo-titolo-argomento.html <br /> Se si scrive <b>notizie</b> si otterrà: <br /> http://tuo.sito.com/<b>notizie</b>/argomenti.1/il-tuo-titolo-argomento.html <br /><br /> <b>sono accettati i caratteri a-z e il carattere meno. es. notizie-del-giorno</b>");
-define("_MI_XNEWS_SEOLEVEL", "Livello SEO ");
-define("_MI_XNEWS_SEOLEVELDESC", "Quì si può scegliere se avere l'htaccess nella cartella root di xoops o in quella del modulo. <br /> Questo cambierà l'url visualizzato. <br /> A livello root: <br /> http://tuo.sito.com/notizie/argomenti.1/il-tuo-titolo-argomento.html <br /> A livello modulo: <br /> http://tuo.sito.com/modules/xnews/notizie.argomenti.1/il-tuo-titolo-argomento.html<br /><br /> Solo nella modalità htaccess e i file dovranno essere installati di conseguenza.");
-define("_MI_XNEWS_MODULE_LEVEL", "Livello modulo");
-define("_MI_XNEWS_ROOT_LEVEL", "Livello root");
-
-//ADDED wishcraft 1.89 RC2
-define("_MI_XNEWS_SEOENDOFURL", "Fine URL");
-define("_MI_XNEWS_SEOENDOFURL_DESC", "Estensione file per i file HTML");
-define("_MI_XNEWS_SEOENDOFURLRSS", "Fine URL");
-define("_MI_XNEWS_SEOENDOFURLRSS_DESC", "Estensione file per le pagine RSS");
-define("_MI_XNEWS_SEOENDOFURLPDF", "Fine URL");
-define("_MI_XNEWS_SEOENDOFURLPDF_DESC", "Estensione file per file Adobe Acrobat (PDF)");
-//Menu
-define("_MI_XNEWS_MANAGER_INDEX","Index");
-define("_MI_XNEWS_MANAGER_STORIES","Stories");
-define("_MI_XNEWS_MANAGER_STORIES_FILES","Stories_files");
-define("_MI_XNEWS_MANAGER_TOPICS","Topics");
-define("_MI_XNEWS_MANAGER_STORIES_VOTEDATA","Stories_votedata");
-
-//Config
-define("_MI_XNEWS_IMGURL_SIZE","Taille autorisee pour imgages");
-define("_MI_XNEWS_IMGURL_MIMETYPES","Types mime autorises pour imgages");
-
-//Blocks
-define("_MI_XNEWS_STORIES_BLOCK_RECENT","stories recents");
-define("_MI_XNEWS_STORIES_BLOCK_DAY","stories d'aujourdh'ui");
-define("_MI_XNEWS_STORIES_BLOCK_RANDOM","stories aleatoires");
-define("_MI_XNEWS_STORIES_FILES_BLOCK_RECENT","stories_files recents");
-define("_MI_XNEWS_STORIES_FILES_BLOCK_DAY","stories_files d'aujourdh'ui");
-define("_MI_XNEWS_STORIES_FILES_BLOCK_RANDOM","stories_files aleatoires");
-define("_MI_XNEWS_TOPICS_BLOCK_RECENT","topics recents");
-define("_MI_XNEWS_TOPICS_BLOCK_DAY","topics d'aujourdh'ui");
-define("_MI_XNEWS_TOPICS_BLOCK_RANDOM","topics aleatoires");
-define("_MI_XNEWS_STORIES_VOTEDATA_BLOCK_RECENT","stories_votedata recents");
-define("_MI_XNEWS_STORIES_VOTEDATA_BLOCK_DAY","stories_votedata d'aujourdh'ui");
-define("_MI_XNEWS_STORIES_VOTEDATA_BLOCK_RANDOM","stories_votedata aleatoires");
-
-define("_MI_XNEWS_PERMISSIONAPPROVE", "Tipo di permesso per 'Approva'");
-define("_MI_XNEWS_PERMISSIONAPPROVE1", "Il permesso per categoria");
-define("_MI_XNEWS_PERMISSIONAPPROVE2", "Permesso per storia");
-?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 18:23:43
|
Revision: 8850
http://xoops.svn.sourceforge.net/xoops/?rev=8850&view=rev
Author: txmodxoops
Date: 2012-01-31 18:23:32 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
backup file
Removed Paths:
-------------
XoopsModules/xnews/trunk/timgno/xnews/class/class.newsstory.php~
XoopsModules/xnews/trunk/timgno/xnews/class/class.newstopic.php~
XoopsModules/xnews/trunk/timgno/xnews/class/class.sfiles.php~
XoopsModules/xnews/trunk/timgno/xnews/class/class.xnewstopic.php~
XoopsModules/xnews/trunk/timgno/xnews/class/stories.php~
XoopsModules/xnews/trunk/timgno/xnews/class/stories_files.php~
XoopsModules/xnews/trunk/timgno/xnews/class/topics.php~
XoopsModules/xnews/trunk/timgno/xnews/class/tree.php~
XoopsModules/xnews/trunk/timgno/xnews/class/xnews_stories.php~
Deleted: XoopsModules/xnews/trunk/timgno/xnews/class/class.newsstory.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/class/class.newsstory.php~ 2012-01-31 18:20:32 UTC (rev 8849)
+++ XoopsModules/xnews/trunk/timgno/xnews/class/class.newsstory.php~ 2012-01-31 18:23:32 UTC (rev 8850)
@@ -1,1490 +0,0 @@
-<?php
-// $Id: class.newsstory.php,v 1.29 2004/09/02 17:04:08 hthouzard Exp $
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// This program is free software; you can redistribute it and/or modify //
-// it under the terms of the GNU General Public License as stories_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 //
-// ------------------------------------------------------------------------- //
-if (!defined('XOOPS_ROOT_PATH')) {
- die('XOOPS root path not defined');
-}
-
-include_once XOOPS_ROOT_PATH.'/class/xoopsstory.php';
-include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
-include_once NW_MODULE_PATH . '/include/functions.php';
-
-class xnews_NewsStory extends XoopsStory
-{
- var $newstopic; // XoopsTopic object
- var $rating; // news rating
- var $stories_votes; // Number of stories_votes
- var $description; // META, desciption
- var $keywords; // META, keywords
- var $picture;
- var $topics_imgurl;
- var $topics_title;
- var $tags;
- //var $imagerows;
- //var $pdfrows;
-
- /**
- * Constructor
- */
- function xnews_NewsStory($stories_id=-1)
- {
- $this->db =& XoopsDatabaseFactory::getDatabaseConnection();
- $this->table = $this->db->prefix('xnews_stories');
- $this->topicstable = $this->db->prefix('xnews_topics');
- if (is_array($stories_id)) {
- $this->makeStory($stories_id);
- } elseif($stories_id != -1) {
- $this->getStory(intval($stories_id));
- }
- }
-
- /**
- * Returns the number of stories stories_published before a date
- */
- function GetCountStoriesPublishedBefore($timestamp, $stories_expired, $topicslist='')
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $sql = 'SELECT count(*) as cpt FROM '.$db->prefix('xnews_stories').' WHERE stories_published <=' . $timestamp;
- if($stories_expired) {
- $sql .=' AND (stories_expired>0 AND stories_expired<='.time().')';
- }
- if(strlen(trim($topicslist))>0) {
- $sql .=' AND stories_topicid IN ('.$topicslist.')';
- }
- $result = $db->query($sql);
- list($count) = $db->fetchRow($result);
- return $count;
- }
-
-
- /**
- * Load the specified story from the database
- */
- function getStory($stories_id)
- {
- $sql = 'SELECT s.*, t.* FROM '.$this->table.' s, '.$this->db->prefix('xnews_topics').' t WHERE (stories_id='.intval($stories_id).') AND (s.stories_topicid=t.topics_id)';
- $array = $this->db->fetchArray($this->db->query($sql));
- $this->makeStory($array);
- }
-
-
- /**
- * Delete stories that were stories_published before a given date
- */
- function DeleteBeforeDate($timestamp, $stories_expired, $topicslist='')
- {
- global $xoopsModule;
- $mid= $xoopsModule->getVar('mid');
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $prefix = $db->prefix('xnews_stories');
- $vote_prefix = $db->prefix('xnews_stories_votedata');
- $files_prefix = $db->prefix('xnews_stories_files');
- $sql = 'SELECT stories_id FROM '.$prefix.' WHERE stories_published <=' . $timestamp;
- if($stories_expired) {
- $sql .=' (AND stories_expired>0 AND stories_expired<='.time().')';
- }
- if(strlen(trim($topicslist))>0) {
- $sql .=' AND stories_topicid IN ('.$topicslist.')';
- }
- $result = $db->query($sql);
- while ($myrow = $db->fetchArray($result)) {
- xoops_comment_delete($mid, $myrow['stories_id']); // Delete comments
- xoops_notification_deletebyitem($mid, 'story', $myrow['stories_id']); // Delete notifications
- $db->queryF('DELETE FROM '.$vote_prefix.' WHERE stories_id='.$myrow['stories_id']); // Delete stories_votes
- // Remove files and records related to the files
- $result2 = $db->query('SELECT * FROM '.$files_prefix.' WHERE stories_id='.$myrow['stories_id']);
- while ($myrow2 = $db->fetchArray($result2)) {
- $name = XOOPS_ROOT_PATH.'/uploads/'.$myrow2['downloadname'];
- if(file_exists($name)) {
- unlink($name);
- }
- $db->query('DELETE FROM '.$files_prefix.' WHERE fileid='.$myrow2['fileid']);
- }
- $db->queryF('DELETE FROM '.$prefix.' WHERE stories_id='.$myrow['stories_id']); // Delete the story
- }
- return true;
- }
-
- function _searchPreviousOrNextArticle($stories_id, $next = true, $checkRight = false)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $ret = array();
- $stories_id = intval($stories_id);
- if($next) {
- $sql = 'SELECT stories_id, title FROM '.$db->prefix('xnews_stories').' WHERE (stories_published > 0 AND stories_published <= '.time().') AND (stories_expired = 0 OR stories_expired > '.time().') AND stories_id > '.$stories_id;
- $orderBy = ' ORDER BY stories_id ASC';
- } else {
- $sql = 'SELECT stories_id, title FROM '.$db->prefix('xnews_stories').' WHERE (stories_published > 0 AND stories_published <= '.time().') AND (stories_expired = 0 OR stories_expired > '.time().') AND stories_id < '.$stories_id;
- $orderBy = ' ORDER BY stories_id DESC';
- }
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics) > 0) {
- $sql .= ' AND stories_topicid IN ('.implode(',', $topics).')';
- } else {
- return null;
- }
- }
- $sql .= $orderBy;
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $result = $db->query($sql, 1);
- if($result) {
- $myts =& MyTextSanitizer::getInstance();
- while ( $row = $db->fetchArray($result) ) {
- $ret = array('stories_id' => $row['stories_id'], 'title' => $myts->htmlSpecialChars($row['title']));
- }
- }
- return $ret;
- }
-
- function getNextArticle($stories_id, $checkRight=false)
- {
- return $this->_searchPreviousOrNextArticle($stories_id, true, $checkRight);
- }
-
- function getPreviousArticle($stories_id, $checkRight=false)
- {
- return $this->_searchPreviousOrNextArticle($stories_id, false, $checkRight);
- }
-
-
- /**
- * Returns stories_published stories according to some options
- */
- function getAllPublished($limit=0, $start=0, $checkRight=false, $topic=0, $stories_ihome=0, $asobject=true, $order = 'stories_published', $topics_frontpage=false)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $sql = 'SELECT s.*, t.* FROM '.$db->prefix('xnews_stories').' s, '. $db->prefix('xnews_topics').' t WHERE (s.stories_published > 0 AND s.stories_published <= '.time().') AND (s.stories_expired = 0 OR s.stories_expired > '.time().') AND (s.stories_topicid=t.topics_id) ';
- if ($topic != 0) {
- if (!is_array($topic)) {
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(!in_array ($topic,$topics)) {
- return null;
- } else {
- $sql .= ' AND s.stories_topicid='.intval($topic).' AND (s.stories_ihome=1 OR s.stories_ihome=0)';
- }
- } else {
- $sql .= ' AND s.stories_topicid='.intval($topic).' AND (s.stories_ihome=1 OR s.stories_ihome=0)';
- }
- } else {
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- $topic = array_intersect($topic,$topics);
- }
- if(count($topic)>0) {
- $sql .= ' AND s.stories_topicid IN ('.implode(',', $topic).')';
- } else {
- return null;
- }
- }
- } else {
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND s.stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- if (intval($stories_ihome) == 0) {
- $sql .= ' AND s.stories_ihome=0';
- }
- }
- if($topics_frontpage) {
- $sql .=' AND t.topics_frontpage=1';
- }
- $sql .= " ORDER BY s.$order DESC";
- $result = $db->query($sql,intval($limit),intval($start));
-
- while ( $myrow = $db->fetchArray($result) ) {
- if ($asobject) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['title']);
- }
- }
- return $ret;
- }
-
-
- /**
- * Retourne la liste des articles aux archives (pour une p\xE9riode donn\xE9e)
- */
- function getArchive($publish_start, $publish_end, $checkRight=false, $asobject=true, $order = 'stories_published')
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $sql = 'SELECT s.*, t.* FROM '.$db->prefix('xnews_stories').' s, ' .$db->prefix('xnews_topics').' t WHERE (s.stories_topicid=t.topics_id) AND (s.stories_published > ' . $publish_start . ' AND s.stories_published <= ' . $publish_end . ') AND (stories_expired = 0 OR stories_expired > '.time().') ';
-
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- $sql .= " ORDER BY $order DESC";
- $result = $db->query($sql);
- while ( $myrow = $db->fetchArray($result) ) {
- if ($asobject) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['stories_title']);
- }
- }
- return $ret;
- }
-
-
- /**
- * Get the today's most readed article
- *
- * @param int $limit records limit
- * @param int $start starting record
- * @param boolean $checkRight Do we need to check permissions (by topics) ?
- * @param int $topic limit the job to one topic
- * @param int $stories_ihome Limit to articles stories_published in home page only ?
- * @param boolean $asobject Do we have to return an array of objects or a simple array ?
- * @param string $order Fields to sort on
- */
- function getBigStory($limit=0, $start=0, $checkRight=false, $topic=0, $stories_ihome=0, $asobject=true, $order = 'stories_counter')
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $tdate = mktime(0,0,0,date('n'),date('j'),date('Y'));
- $sql = 'SELECT s.*, t.* FROM '.$db->prefix('xnews_stories').' s, '. $db->prefix('xnews_topics').' t WHERE (s.stories_topicid=t.topics_id) AND (stories_published > '.$tdate.' AND stories_published < '.time().') AND (stories_expired > '.time().' OR stories_expired = 0) ';
-
- if ( intval($topic) != 0 ) {
- if (!is_array($topic)) {
- $sql .= ' AND stories_topicid='.intval($topic).' AND (stories_ihome=1 OR stories_ihome=0)';
- }
- else {
- if(count($topic)>0) {
- $sql .= ' AND stories_topicid IN ('.implode(',', $topic).')';
- } else {
- return null;
- }
- }
- } else {
- if ($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- if ( intval($stories_ihome) == 0 ) {
- $sql .= ' AND stories_ihome=0';
- }
- }
- $sql .= " ORDER BY $order DESC";
- $result = $db->query($sql,intval($limit),intval($start));
- while ( $myrow = $db->fetchArray($result) ) {
- if ( $asobject ) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['stories_title']);
- }
- }
- return $ret;
- // DNPROSSI SEO
- $seo_enabled = xnews_getmoduleoption('seo_enable', NW_MODULE_DIR_NAME);
- if ( $seo_enabled != 0 ) {
- $xoopsTpl->assign('urlrewrite', true);
- } else {
- $xoopsTpl->assign('urlrewrite', false);
- }
- }
-
-
- /**
- * Get all articles stories_published by an author
- *
- * @param int $stories_uid author's id
- * @param boolean $checkRight whether to check the user's rights to topics
- */
- function getAllPublishedByAuthor($stories_uid, $checkRight=false, $asobject=true)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $tblstory=$db->prefix('xnews_stories');
- $tbltopics=$db->prefix('xnews_topics');
-
- $sql = 'SELECT ' . $tblstory . '.*, '. $tbltopics . '.topics_title, '.$tbltopics.'.topics_color FROM '.$tblstory.','.$tbltopics .' WHERE ('.$tblstory.'.stories_topicid='.$tbltopics.'.topics_id) AND (stories_published > 0 AND stories_published <= '.time().') AND (stories_expired = 0 OR stories_expired > '.time().')';
- $sql .= ' AND stories_uid='.intval($stories_uid);
- if ($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- $topics = implode(',', $topics);
- if(xoops_trim($topics)!='') {
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- }
- }
- $sql .= ' ORDER BY '.$tbltopics.'.topics_title ASC, '.$tblstory.'.stories_published DESC';
- $result = $db->query($sql);
- while ( $myrow = $db->fetchArray($result) )
- {
- if ( $asobject ) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- if ( $myrow['stories_nohtml'] ) {
- $html = 0;
- } else {
- $html = 1;
- }
- if ( $myrow['stories_nosmiley'] ) {
- $smiley = 0;
- } else {
- $smiley = 1;
- }
- //DNPROSSI - dobr
- if ( $myrow['stories_dobr'] ) {
- $dobr = 0;
- } else {
- $dobr = 1;
- }
- $ret[$myrow['stories_id']] = array('title'=>$myts->displayTarea($myrow['stories_title'],$html,$smiley,1),
- 'stories_topicid'=>intval($myrow['stories_topicid']),
- 'stories_id'=>intval($myrow['stories_id']),
- 'hometext'=>$myts->displayTarea($myrow['stories_hometext'],$html,$smiley,1,0,$dobr),
- 'stories_counter'=>intval($myrow['stories_counter']),
- 'created'=>intval($myrow['stories_created']),
- 'topics_title'=>$myts->displayTarea($myrow['topics_title'],$html,$smiley,1),
- 'topics_color'=>$myts->displayTarea($myrow['topics_color']),
- 'stories_published'=>intval($myrow['stories_published']),
- 'rating'=>(float)$myrow['stories_rating'],
- 'stories_votes'=>intval($myrow['stories_votes']));
- }
- }
- return $ret;
- }
-
-
- /**
- * Get all stories_expired stories
- */
- function getAllExpired($limit=0, $start=0, $topic=0, $stories_ihome=0, $asobject=true)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $sql = 'SELECT * FROM '.$db->prefix('xnews_stories').' WHERE stories_expired <= '.time().' AND stories_expired > 0';
- if ( !empty($topic) ) {
- $sql .= ' AND stories_topicid='.intval($topic).' AND (stories_ihome=1 OR stories_ihome=0)';
- } else {
- if ( intval($stories_ihome) == 0 ) {
- $sql .= ' AND stories_ihome=0';
- }
- }
-
- $sql .= ' ORDER BY stories_expired DESC';
- $result = $db->query($sql,intval($limit),intval($start));
- while ( $myrow = $db->fetchArray($result) ) {
- if ($asobject) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['stories_title']);
- }
- }
- return $ret;
- }
-
-
-
- /**
- * Returns an array of object containing all the news to be automatically stories_published.
- */
- function getAllAutoStory($limit=0, $asobject=true, $start=0)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $sql = 'SELECT * FROM '.$db->prefix('xnews_stories').' WHERE stories_published > '.time().' ORDER BY stories_published ASC';
- $result = $db->query($sql,intval($limit),intval($start));
- while ( $myrow = $db->fetchArray($result) ) {
- if ( $asobject ) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['stories_title']);
- }
- }
- return $ret;
- }
-
- /**
- * Get all submitted stories awaiting approval
- *
- * @param int $limit Denotes where to start the query
- * @param boolean $asobject true will returns the stories as an array of objects, false will return stories_id => title
- * @param boolean $checkRight whether to check the user's rights to topics
- */
- function getAllSubmitted($limit=0, $asobject=true, $checkRight = false, $start=0)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $criteria = new CriteriaCompo(new Criteria('stories_published', 0));
- if ($checkRight) {
- global $xoopsUser;
- if (!is_object($xoopsUser)) {
- return $ret;
- }
- $allowedtopics = xnews_MygetItemIds('xnews_approve');
- $criteria2 = new CriteriaCompo();
- foreach ($allowedtopics as $key => $stories_topicid) {
- $criteria2->add(new Criteria('stories_topicid', $stories_topicid), 'OR');
- }
- $criteria->add($criteria2);
- }
- $sql = 'SELECT s.*, t.* FROM '.$db->prefix('xnews_stories').' s, '.$db->prefix('xnews_topics').' t ';
- $sql .= ' '.$criteria->renderWhere().' AND (s.stories_topicid=t.topics_id) ORDER BY stories_created DESC';
- $result = $db->query($sql,intval($limit),intval($start));
- while ( $myrow = $db->fetchArray($result) ) {
- if ( $asobject ) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['title']);
- }
- }
- return $ret;
- }
-
-
- /**
- * Used in the module's admin to know the number of stories_expired, automated or pubilshed news
- *
- * @param int $storytype 1=Expired, 2=Automated, 3=New submissions, 4=Last stories_published stories
- * @param bool $checkRight verify permissions or not ?
- */
- function getAllStoriesCount($storytype=1, $checkRight = false)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $sql = 'SELECT count(*) as cpt FROM '.$db->prefix('xnews_stories').' WHERE ';
- switch($storytype) {
- case 1: // Expired
- $sql .='(stories_expired <= '.time().' AND stories_expired >0)';
- break;
- case 2: // Automated
- $sql .='(stories_published > '.time().')';
- break;
- case 3: // New submissions
- $sql .='(stories_published = 0)';
- break;
- case 4: // Last stories_published stories
- $sql .='(stories_published > 0 AND stories_published <= '.time().') AND (stories_expired = 0 OR stories_expired > '.time().')';
- break;
- }
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- } else {
- return 0;
- }
- }
- $result = $db->query($sql);
- $myrow = $db->fetchArray($result);
- return $myrow['cpt'];
- }
-
-
- /**
- * Get a list of stories (as objects) related to a specific topic
- */
- function getByTopic($stories_topicid, $limit=0)
- {
- $ret = array();
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $sql = 'SELECT * FROM '.$db->prefix('xnews_stories').' WHERE stories_topicid='.intval($stories_topicid).' ORDER BY stories_published DESC';
- $result = $db->query($sql, intval($limit), 0);
- while( $myrow = $db->fetchArray($result) ){
- $ret[] = new xnews_NewsStory($myrow);
- }
- return $ret;
- }
-
-
- /**
- * Count the number of news stories_published for a specific topic
- */
- function countPublishedByTopic($stories_topicid=0, $checkRight = false)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $sql = 'SELECT COUNT(*) FROM '.$db->prefix('xnews_stories').' WHERE stories_published > 0 AND stories_published <= '.time().' AND (stories_expired = 0 OR stories_expired > '.time().')';
- if ( !empty($stories_topicid) ) {
- $sql .= ' AND stories_topicid='.intval($stories_topicid);
- } else {
- $sql .= ' AND stories_ihome=0';
- if ($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- }
- $result = $db->query($sql);
- list($count) = $db->fetchRow($result);
- return $count;
- }
-
-
- /**
- * Internal function
- */
- function adminlink()
- {
- //<img src='" . NW_MODULE_URL . "/images/leftarrow22.png' border='0' alt='" . _MA_NW_PREVIOUS_ARTICLE . "'/></a>";
- $ret2 = "<a href='" . NW_MODULE_URL . "/submit.php?op=edit&stories_id=" . $this->stories_id() . "' title='" . _EDIT . "'>";
- $ret2 .= "<img src='" . NW_MODULE_URL . "/images/edit_block.png' width='22px' height='22px' border='0' alt='" . _EDIT . "'/></a> ";
- $ret2 .= "<a href='" . NW_MODULE_URL . "/admin/index.php?op=delete&stories_id=" . $this->stories_id() . "' title='" . _DELETE . "'>";
- $ret2 .= "<img src='" . NW_MODULE_URL . "/images/delete_block.png' width='24px' height='24px' border='0' alt='" . _DELETE . "'/></a> ";
- //$ret = " [ <a href='" . NW_MODULE_URL . "/submit.php?op=edit&stories_id=".$this->stories_id()."'>"._EDIT."</a> | <a href='".NW_MODULE_URL . "/admin/index.php?op=delete&stories_id=".$this->stories_id()."'>"._DELETE."</a> ] ";
- return $ret2;
- }
-
-
- /**
- * Get the topic image url
- */
- function topics_imgurl($format='S')
- {
- if(trim($this->topics_imgurl)=='') {
- $this->topics_imgurl='blank.png';
- }
- $myts =& MyTextSanitizer::getInstance();
- switch($format){
- case 'S':
- $imgurl= $myts->htmlSpecialChars($this->topics_imgurl);
- break;
- case 'E':
- $imgurl = $myts->htmlSpecialChars($this->topics_imgurl);
- break;
- case 'P':
- $imgurl = $myts->stripSlashesGPC($this->topics_imgurl);
- $imgurl = $myts->htmlSpecialChars($imgurl);
- break;
- case 'F':
- $imgurl = $myts->stripSlashesGPC($this->topics_imgurl);
- $imgurl = $myts->htmlSpecialChars($imgurl);
- break;
- }
- return $imgurl;
- }
-
- function topics_title($format='S')
- {
- $myts =& MyTextSanitizer::getInstance();
- switch($format){
- case 'S':
- $title = $myts->htmlSpecialChars($this->topics_title);
- break;
- case 'E':
- $title = $myts->htmlSpecialChars($this->topics_title);
- break;
- case 'P':
- $title = $myts->stripSlashesGPC($this->topics_title);
- $title = $myts->htmlSpecialChars($title);
- break;
- case 'F':
- $title = $myts->stripSlashesGPC($this->topics_title);
- $title = $myts->htmlSpecialChars($title);
- break;
- }
- return $title;
- }
-
- //DNPROSSI - Added picture substitute for topic images with article image
- function imglink()
- {
- $topics_display = xnews_getmoduleoption('topicdisplay', NW_MODULE_DIR_NAME);
- //DNPROSSI SEO
- $seo_enabled = xnews_getmoduleoption('seo_enable', NW_MODULE_DIR_NAME);
- $ret = '';
- $margin = '';
- if ( $this->topicalign() == 'left' ) {
- $margin = "style='padding-right: 8px;'";
- } else {
- $margin = "style='padding-left: 8px; padding-right: 5px'";
- }
-
- if(xoops_trim($this->picture()) == '') {
- if ($this->topics_imgurl() != '' && file_exists(NW_TOPICS_FILES_PATH . '/'.$this->topics_imgurl())) {
- if ( $topics_display == 1 ) {
- //DNPROSSI SEO
- $cat_path = '';
- if ( $seo_enabled != 0 ) $cat_path = xnews_remove_accents($this->topics_title());
- $ret = "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_TOPICS, $this->stories_topicid(), $cat_path) . "'>";
- $ret .= "<img src='" . NW_TOPICS_FILES_URL . "/" . $this->topics_imgurl() . "' alt='";
- $ret .= $this->topics_title() . "' hspace='10' vspace='10' align='";
- $ret .= $this->topicalign() . "'" . $margin . " /></a>";
- } else {
- $ret = "<img src='" . NW_TOPICS_FILES_URL . "/" . $this->topics_imgurl() . "' alt='" . $this->topics_title() . "' hspace='10' vspace='10' align='" . $this->topicalign() . "'" . $margin . " />";
- }
- }
- } else {
- if ( $topics_display == 1 ) {
- //DNPROSSI SEO
- $cat_path = '';
- if ( $seo_enabled != 0 ) $cat_path = xnews_remove_accents($this->topics_title());
- $ret = "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_TOPICS, $this->stories_topicid(), $cat_path) . "'>";
- $ret .= "<img src='" . NW_TOPICS_FILES_URL . "/" . $this->picture() . "' alt='";
- $ret .= $this->topics_title() . "' hspace='10' vspace='10' align='";
- $ret .= $this->topicalign() . "'" . $margin . " /></a>";
- } else {
- $ret = "<img src='" . NW_TOPICS_FILES_URL . "/" . $this->picture() . "' alt='" . $this->topics_title() . "' hspace='10' vspace='10' align='" . $this->topicalign() . "'" . $margin . " />";
- }
- }
- return $ret;
- }
-
- function storylink()
- {
- $seo_enabled = xnews_getmoduleoption('seo_enable', NW_MODULE_DIR_NAME);
- $ret = '';
- $story_path = '';
- if ( $seo_enabled != 0 ) $story_path = xnews_remove_accents($this->title());
- $ret = "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_ARTICLES, $this->stories_id(), $story_path) . "'>" . $this->title() . "</a>";
- return $ret;
- }
-
- function dobr()
- {
- return $this->dobr;
- }
-
- function setDobr($value=0)
- {
- $this->dobr = $value;
- }
-
- function textlink()
- {
- $topics_display = xnews_getmoduleoption('topicdisplay', NW_MODULE_DIR_NAME);
- //DNPROSSI SEO
- $seo_enabled = xnews_getmoduleoption('seo_enable', NW_MODULE_DIR_NAME);
- $ret = '';
- $cat_path = '';
- if ( $topics_display == 1 ) {
- if ( $seo_enabled != 0 ) $cat_path = xnews_remove_accents($this->topics_title());
- $ret = "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_TOPICS, $this->stories_topicid(), $cat_path) . "'>" . $this->topics_title() . "</a>";
-
- }
- return $ret;
- }
-
- /**
- * Function used to prepare an article to be showed
- */
- function prepare2show($filescount)
- {
- include_once NW_MODULE_PATH . '/include/functions.php';
- global $xoopsUser, $xoopsConfig, $xoopsModuleConfig;
- $myts =& MyTextSanitizer::getInstance();
- $infotips = xnews_getmoduleoption('infotips', NW_MODULE_DIR_NAME);
- //DNPROSSI SEO
- $seo_enabled = xnews_getmoduleoption('seo_enable', NW_MODULE_DIR_NAME);
- $story = array();
- $story['id'] = $this->stories_id();
- $story['poster'] = $this->uname();
- $story['author_name'] = $this->uname();
- $story['author_stories_uid'] = $this->stories_uid();
- if ( $story['poster'] != false ) {
- $story['poster'] = "<a href='".XOOPS_URL."/userinfo.php?stories_uid=".$this->stories_uid()."'>".$story['poster']."</a>";
- } else {
- if($xoopsModuleConfig['displayname']!=3) {
- $story['poster'] = $xoopsConfig['anonymous'];
- }
- }
- if ($xoopsModuleConfig['ratenews']) {
- $story['rating'] = number_format($this->rating(), 2);
- if ($this->stories_votes == 1) {
- $story['stories_votes'] = _MA_NW_ONEVOTE;
- } else {
- $story['stories_votes'] = sprintf(_MA_NW_NUMVOTES,$this->stories_votes);
- }
- }
- $story['posttimestamp'] = $this->stories_published();
- $story['posttime'] = formatTimestamp($story['posttimestamp'],xnews_getmoduleoption('dateformat', NW_MODULE_DIR_NAME));
- $story['topics_description'] = $myts->displayTarea($this->topics_description);
-
- $auto_summary = '';
- $tmp = '';
- $auto_summary = $this->auto_summary($this->bodytext(),$tmp);
-
- $story['text'] = $this->hometext();
- $story['text'] = str_replace('[summary]', $auto_summary, $story['text']);
-
- $introcount = strlen($story['text']);
- $fullcount = strlen($this->bodytext());
- $totalcount = $introcount + $fullcount;
-
- $morelink = '';
- if ( $fullcount > 1 ) {
- $story_path = '';
- //DNPROSSI SEO
- if ( $seo_enabled != 0 ) $story_path = xnews_remove_accents($this->title());
- $morelink .= "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_ARTICLES, $this->stories_id(), $story_path) . "'>";
- $morelink .= _MA_NW_READMORE . "</a>";
- //$morelink .= " | ".sprintf(_MA_NW_BYTESMORE, $totalcount);
- if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
- $morelink .= " | ";
- }
- }
- if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
- $ccount = $this->comments();
- $story_path = '';
- //DNPROSSI SEO
- if ( $seo_enabled != 0 ) $story_path = xnews_remove_accents($this->title());
- if ( $ccount == 0 ) {
- $morelink .= _MA_NW_NO_COMMENT;
- } else {
- $morelink .= "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_ARTICLES, $this->stories_id(), $story_path);
- if ( $ccount == 1 ) {
- $morelink .= "'>"._MA_NW_ONECOMMENT."</a>";
- } else {
- $morelink .= "'>";
- $morelink .= sprintf(_MA_NW_NUMCOMMENTS, $ccount);
- $morelink .= "</a>";
- }
- }
- }
- $story['morelink'] = $morelink;
- $story['adminlink'] = '';
-
- $approveprivilege = 0;
- if(xnews_is_admin_group()) {
- $approveprivilege = 1;
- }
-
- if($xoopsModuleConfig['authoredit']==1 && (is_object($xoopsUser) && $xoopsUser->getVar('stories_uid')==$this->stories_uid())) {
- $approveprivilege = 1;
- }
- if ($approveprivilege) {
- $story['adminlink'] = $this->adminlink();
- }
- $story['mail_link'] = 'mailto:?subject='.sprintf(_MA_NW_INTARTICLE,$xoopsConfig['sitename']).'&body='.sprintf(_MA_NW_INTARTFOUND, $xoopsConfig['sitename']).': '.NW_MODULE_URL . '/article.php?stories_id='.$this->stories_id();
- $story['imglink'] = '';
- $story['align'] = '';
- if ( $this->topicdisplay() ) {
- $story['imglink'] = $this->imglink();
- $story['align'] = $this->topicalign();
- }
- if($infotips>0) {
- $story['infotips'] = ' title="'.xnews_make_infotips($this->hometext()).'"';
- } else {
- $story['infotips'] = '';
- }
-
- //DNPROSSI SEO
- $story_path = '';
- if ( $seo_enabled != 0 ) $story_path = xnews_remove_accents($this->title());
- $story['title'] = "<a href='" . xnews_seo_UrlGenerator(_MA_NW_SEO_ARTICLES, $this->stories_id(), $story_path) . "'>" . $this->title() . "</a>";
- $story['hits'] = $this->stories_counter();
- if($filescount>0) {
- $story['files_attached']= true;
- $story['attached_link']="<a href='".NW_MODULE_URL . '/article.php?stories_id='.$this->stories_id()."' title='"._MA_NW_ATTACHEDLIB."'><img src='".NW_MODULE_URL . '/images/attach.png'."' title='"._MA_NW_ATTACHEDLIB."'></a>";
- } else {
- $story['files_attached']= false;
- $story['attached_link']='';
- }
- return $story;
- }
-
- /**
- * Returns the user's name of the current story according to the module's option "displayname"
- */
- function uname($stories_uid=0)
- {
- global $xoopsConfig;
- include_once NW_MODULE_PATH . '/include/functions.php';
- static $tblusers = array();
- $option=-1;
- if($stories_uid == 0) {
- $stories_uid=$this->stories_uid();
- }
-
- if(is_array($tblusers) && array_key_exists($stories_uid,$tblusers)) {
- return $tblusers[$stories_uid];
- }
-
- $option = xnews_getmoduleoption('displayname', NW_MODULE_DIR_NAME);
- if (!$option) {
- $option=1;
- }
-
- switch($option) {
- case 1: // Username
- $tblusers[$stories_uid]=XoopsUser::getUnameFromId($stories_uid);
- return $tblusers[$stories_uid];
-
- case 2: // Display full name (if it is not empty)
- $member_handler =& xoops_gethandler('member');
- $thisuser = $member_handler->getUser($stories_uid);
- if (is_object($thisuser)) {
- $return = $thisuser->getVar('name');
- if ($return == '') {
- $return=$thisuser->getVar('uname');
- }
- } else {
- $return=$xoopsConfig['anonymous'];
- }
- $tblusers[$stories_uid]=$return;
- return $return;
-
- case 3: // Nothing
- $tblusers[$stories_uid]='';
- return '';
- }
- }
-
- /**
- * Function used to export news (in xml) and eventually the topics definitions
- * Warning, permissions are not exported !
- * @param int $fromdate Starting date
- * @param int $todate Ending date
- * @param string $topiclist If not empty, a list of topics to limit to
- * @param boolean $usetopicsdef Should we also export topics definitions ?
- * @param boolean $asobject Return values as an object or not ?
- */
- function NewsExport($fromdate, $todate, $topicslist='', $usetopicsdef=0, &$tbltopics, $asobject=true, $order = 'stories_published')
- {
- $ret=Array();
- $myts =& MyTextSanitizer::getInstance();
- if($usetopicsdef) { // We firt begin by exporting topics definitions
- // Before all we must know wich topics to export
- $sql = 'SELECT distinct stories_topicid FROM '.$this->db->prefix('xnews_stories').' WHERE (stories_published >=' . $fromdate . ' AND stories_published <= ' . $todate .')';
- if(strlen(trim($topicslist))>0) {
- $sql .=' AND stories_topicid IN ('.$topicslist.')';
- }
- $result = $this->db->query($sql);
- while ( $myrow = $this->db->fetchArray($result) ) {
- $tbltopics[]=$myrow['stories_topicid'];
- }
- }
-
- // Now we can search for the stories
- $sql = 'SELECT s.*, t.* FROM '.$this->table.' s, '.$this->db->prefix('xnews_topics').' t WHERE (s.stories_topicid=t.topics_id) AND (s.stories_published >=' . $fromdate . ' AND s.stories_published <= ' . $todate .')';
- if(strlen(trim($topicslist))>0) {
- $sql .=' AND stories_topicid IN ('.$topicslist.')';
- }
- $sql .= " ORDER BY $order DESC";
- $result = $this->db->query($sql);
- while ($myrow = $this->db->fetchArray($result)) {
- if ($asobject) {
- $ret[] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['title']);
- }
- }
- return $ret;
- }
-
-
- /**
- * Create or update an article
- */
- function store($approved=false)
- {
- $myts =& MyTextSanitizer::getInstance();
- $stories_counter = isset($this->stories_counter) ? $this->stories_counter : 0;
- $title = $myts->censorString($this->title);
- $title = $myts->addSlashes($title);
- $hostname=$myts->addSlashes($this->hostname);
- $type=$myts->addSlashes($this->type);
- $hometext =$myts->addSlashes($myts->censorString($this->hometext));
- $bodytext =$myts->addSlashes($myts->censorString($this->bodytext));
- $description =$myts->addSlashes($myts->censorString($this->description));
- $keywords =$myts->addSlashes($myts->censorString($this->keywords));
- $picture = $myts->addSlashes($this->picture);
- $tags = $myts->addSlashes($this->tags);
- $stories_votes= intval($this->stories_votes);
- $rating = (float)($this->rating);
- if (!isset($this->nohtml) || $this->nohtml != 1) {
- $this->nohtml = 0;
- }
- if (!isset($this->nosmiley) || $this->nosmiley != 1) {
- $this->nosmiley = 0;
- }
- if (!isset($this->dobr) || $this->dobr != 1) {
- $this->dobr = 0;
- }
- if (!isset($this->notifypub) || $this->notifypub != 1) {
- $this->notifypub = 0;
- }
- if(!isset($this->topicdisplay) || $this->topicdisplay != 0) {
- $this->topicdisplay = 1;
- }
- $stories_expired = !empty($this->stories_expired) ? $this->stories_expired : 0;
- if (!isset($this->stories_id)) {
- //$newpost = 1;
- $newstories_id = $this->db->genId($this->table.'_stories_id_seq');
- $created = time();
- $stories_published = ( $this->approved ) ? intval($this->stories_published) : 0;
- //DNPROSSI - ADD TAGS FOR UPDATES - ADDED imagerows, pdfrows
- $sql = sprintf("INSERT INTO %s (stories_id, stories_uid, title, created, stories_published, stories_expired, hostname, nohtml, nosmiley, hometext, bodytext, stories_counter, stories_topicid, stories_ihome, notifypub, story_type, topicdisplay, topicalign, comments, rating, stories_votes, description, keywords, picture, dobr, tags, imagerows, pdfrows) VALUES (%u, %u, '%s', %u, %u, %u, '%s', %u, %u, '%s', '%s', %u, %u, %u, %u, '%s', %u, '%s', %u, %u, %u, '%s', '%s', '%s', '%u','%s', %u, %u)", $this->table, $newstories_id, intval($this->stories_uid()), $title, $created, $stories_published, $stories_expired, $hostname, intval($this->nohtml()), intval($this->nosmiley()), $hometext, $bodytext, $stories_counter, intval($this->stories_topicid()), intval($this->stories_ihome()), intval($this->notifypub()), $type, intval($this->topicdisplay()), $this->topicalign, intval($this->comments()), $rating, $stories_votes, $description, $keywords, $picture, intval($this->dobr()), $tags, intval($this->imagerows()), intval($this->pdfrows()));
- } else {
- $sql = sprintf("UPDATE %s SET title='%s', stories_published=%u, stories_expired=%u, nohtml=%u, nosmiley=%u, hometext='%s', bodytext='%s', stories_topicid=%u, stories_ihome=%u, topicdisplay=%u, topicalign='%s', comments=%u, rating=%u, stories_votes=%u, stories_uid=%u, description='%s', keywords='%s', picture='%s', dobr='%u', tags='%s', imagerows='%u', pdfrows='%u' WHERE stories_id = %u", $this->table, $title, intval($this->stories_published()), $stories_expired, intval($this->nohtml()), intval($this->nosmiley()), $hometext, $bodytext, intval($this->stories_topicid()), intval($this->stories_ihome()), intval($this->topicdisplay()), $this->topicalign, intval($this->comments()), $rating, $stories_votes, intval($this->stories_uid()), $description, $keywords, $picture, intval($this->dobr()), $tags, intval($this->imagerows()), intval($this->pdfrows()), intval($this->stories_id()));
- $newstories_id = intval($this->stories_id());
- }
- if (!$this->db->queryF($sql)) {
- return false;
- }
- if (empty($newstories_id)) {
- $newstories_id = $this->db->getInsertId();
- $this->stories_id = $newstories_id;
- }
- return $newstories_id;
- }
-
- function picture()
- {
- return $this->picture;
- }
-
- //DNPROSSI - 1.71
- function imagerows()
- {
- return $this->imagerows;
- }
-
- function Setimagerows($imagerows)
- {
- $this->imagerows = $imagerows;
- }
-
- //DNPROSSI - 1.71
- function pdfrows()
- {
- return $this->pdfrows;
- }
-
- function Setpdfrows($pdfrows)
- {
- $this->pdfrows = $pdfrows;
- }
-
- function rating()
- {
- return $this->rating;
- }
-
- function stories_votes()
- {
- return $this->stories_votes;
- }
-
- function tags()
- {
- return $this->tags;
- }
-
- function Settags($tags)
- {
- $this->tags = $tags;
- }
-
- function Setpicture($data)
- {
- $this->picture = $data;
- }
-
- function Setdescription($data)
- {
- $this->description=$data;
- }
-
- function Setkeywords($data)
- {
- $this->keywords=$data;
- }
-
- function description($format='S')
- {
- $myts =& MyTextSanitizer::getInstance();
- switch(strtoupper($format)) {
- case 'S':
- $description= $myts->htmlSpecialChars($this->description);
- break;
- case 'P':
- case 'F':
- $description = $myts->htmlSpecialChars($myts->stripSlashesGPC($this->description));
- break;
- case 'E':
- $description = $myts->htmlSpecialChars($this->description);
- break;
- }
- return $description;
- }
-
- function keywords($format='S')
- {
- $myts =& MyTextSanitizer::getInstance();
- switch(strtoupper($format)) {
- case 'S':
- $keywords= $myts->htmlSpecialChars($this->keywords);
- break;
- case 'P':
- case 'F':
- $keywords = $myts->htmlSpecialChars($myts->stripSlashesGPC($this->keywords));
- break;
- case 'E':
- $keywords = $myts->htmlSpecialChars($this->keywords);
- break;
- }
- return $keywords;
- }
-
- /**
- * Returns a random number of news
- */
- function getRandomNews($limit=0, $start=0, $checkRight=false, $topic=0, $stories_ihome=0, $order='stories_published', $topics_frontpage=false)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $ret = $rand_keys = $ret3 = array();
- $sql = 'SELECT stories_id FROM '.$db->prefix('xnews_stories').' WHERE (stories_published > 0 AND stories_published <= '.time().') AND (stories_expired = 0 OR stories_expired > '.time().')';
- if ($topic != 0) {
- if (!is_array($topic)) {
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(!in_array ($topic,$topics)) {
- return null;
- } else {
- $sql .= ' AND stories_topicid='.intval($topic).' AND (stories_ihome=1 OR stories_ihome=0)';
- }
- } else {
- $sql .= ' AND stories_topicid='.intval($topic).' AND (stories_ihome=1 OR stories_ihome=0)';
- }
- } else {
- if(count($topic)>0) {
- $sql .= ' AND stories_topicid IN ('.implode(',', $topic).')';
- } else {
- return null;
- }
- }
- } else {
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- if (intval($stories_ihome) == 0) {
- $sql .= ' AND stories_ihome=0';
- }
- }
- if($topics_frontpage) {
- $sql .=' AND t.topics_frontpage=1';
- }
- $sql .= " ORDER BY $order DESC";
- $result = $db->query($sql);
-
- while ( $myrow = $db->fetchArray($result) ) {
- $ret[] = $myrow['stories_id'];
- }
- $cnt=count($ret);
- if($cnt) {
- srand ((double) microtime() * 10000000);
- if($limit>$cnt) {
- $limit=$cnt;
- }
- $rand_keys = array_rand($ret, $limit);
- if($limit>1) {
- for($i=0;$i<$limit;$i++) {
- $onestory=$ret[$rand_keys[$i]];
- $ret3[]= new xnews_NewsStory($onestory);
- }
- } else {
- $ret3[]= new xnews_NewsStory($ret[$rand_keys]);
- }
- }
- return $ret3;
- }
-
-
-
- /**
- * Returns statistics about the stories and topics
- */
- function GetStats($limit)
- {
- $ret=array();
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $tbls=$db->prefix('xnews_stories');
- $tblt=$db->prefix('xnews_topics');
- $tblf=$db->prefix('xnews_stories_files');
-
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- // Number of stories per topic, including stories_expired and non stories_published stories
- $ret2=array();
- $sql="SELECT count(s.stories_id) as cpt, s.stories_topicid, t.topics_title FROM $tbls s, $tblt t WHERE s.stories_topicid=t.topics_id GROUP BY s.stories_topicid ORDER BY t.topics_title";
- $result = $db->query($sql);
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_topicid']]=$myrow;
- }
- $ret['storiespertopic']=$ret2;
- unset($ret2);
-
- // Total of reads per topic
- $ret2=array();
- $sql="SELECT Sum(stories_counter) as cpt, stories_topicid FROM $tbls GROUP BY stories_topicid ORDER BY stories_topicid";
- $result = $db->query($sql);
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_topicid']]=$myrow['cpt'];
- }
- $ret['readspertopic']=$ret2;
- unset($ret2);
-
- // Attached files per topic
- $ret2=array();
- $sql="SELECT Count(*) as cpt, s.stories_topicid FROM $tblf f, $tbls s WHERE f.stories_id=s.stories_id GROUP BY s.stories_topicid ORDER BY s.stories_topicid";
- $result = $db->query($sql);
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_topicid']]=$myrow['cpt'];
- }
- $ret['filespertopic']=$ret2;
- unset($ret2);
-
- // Expired articles per topic
- $ret2=array();
- $sql="SELECT Count(stories_id) as cpt, stories_topicid FROM $tbls WHERE stories_expired>0 AND stories_expired<=".time()." GROUP BY stories_topicid ORDER BY stories_topicid";
- $result = $db->query($sql);
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_topicid']]=$myrow['cpt'];
- }
- $ret['stories_expiredpertopic']=$ret2;
- unset($ret2);
-
- // Number of unique authors per topic
- $ret2=array();
- $sql="SELECT Count(Distinct(stories_uid)) as cpt, stories_topicid FROM $tbls GROUP BY stories_topicid ORDER BY stories_topicid";
- $result = $db->query($sql);
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_topicid']]=$myrow['cpt'];
- }
- $ret['authorspertopic']=$ret2;
- unset($ret2);
-
- // Most readed articles
- $ret2=array();
- $sql="SELECT s.stories_id, s.stories_uid, s.title, s.stories_counter, s.stories_topicid, t.topics_title FROM $tbls s, $tblt t WHERE s.stories_topicid=t.topics_id ORDER BY s.stories_counter DESC";
- $result = $db->query($sql,intval($limit));
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_id']]=$myrow;
- }
- $ret['mostreadnews']=$ret2;
- unset($ret2);
-
- // Less readed articles
- $ret2=array();
- $sql="SELECT s.stories_id, s.stories_uid, s.title, s.stories_counter, s.stories_topicid, t.topics_title FROM $tbls s, $tblt t WHERE s.stories_topicid=t.topics_id ORDER BY s.stories_counter";
- $result = $db->query($sql,intval($limit));
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_id']]=$myrow;
- }
- $ret['lessreadnews']=$ret2;
- unset($ret2);
-
- // Best rated articles
- $ret2=array();
- $sql="SELECT s.stories_id, s.stories_uid, s.title, s.rating, s.stories_topicid, t.topics_title FROM $tbls s, $tblt t WHERE s.stories_topicid=t.topics_id ORDER BY s.rating DESC";
- $result = $db->query($sql,intval($limit));
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_id']]=$myrow;
- }
- $ret['besratednw']=$ret2;
- unset($ret2);
-
- // Most readed authors
- $ret2=array();
- $sql="SELECT Sum(stories_counter) as cpt, stories_uid FROM $tbls GROUP BY stories_uid ORDER BY cpt DESC";
- $result = $db->query($sql,intval($limit));
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_uid']]=$myrow['cpt'];
- }
- $ret['mostreadedauthors']=$ret2;
- unset($ret2);
-
- // Best rated authors
- $ret2=array();
- $sql="SELECT Avg(rating) as cpt, stories_uid FROM $tbls WHERE stories_votes > 0 GROUP BY stories_uid ORDER BY cpt DESC";
- $result = $db->query($sql,intval($limit));
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_uid']]=$myrow['cpt'];
- }
- $ret['bestratedauthors']=$ret2;
- unset($ret2);
-
- // Biggest contributors
- $ret2=array();
- $sql="SELECT Count(*) as cpt, stories_uid FROM $tbls GROUP BY stories_uid ORDER BY cpt DESC";
- $result = $db->query($sql,intval($limit));
- while ($myrow = $db->fetchArray($result) ) {
- $ret2[$myrow['stories_uid']]=$myrow['cpt'];
- }
- $ret['biggestcontributors']=$ret2;
- unset($ret2);
-
- return $ret;
- }
-
-
- /**
- * Get the date of the older and most recent news
- */
- function GetOlderRecentnews(&$older, &$recent)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $sql = 'SELECT min(stories_published) as minpublish, max(stories_published) as maxpublish FROM '.$db->prefix('xnews_stories');
- $result = $db->query($sql);
- if(!$result) {
- $older = $recent = 0;
- } else {
- list($older, $recent) = $this->db->fetchRow($result);
- }
- }
-
-
- /*
- * Returns the author's IDs for the Who's who page
- */
- function getWhosWho($checkRight=false, $limit=0, $start=0)
- {
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $ret = array();
- $sql = 'SELECT distinct(stories_uid) as stories_uid FROM '.$db->prefix('xnews_stories').' WHERE (stories_published > 0 AND stories_published <= '.time().') AND (stories_expired = 0 OR stories_expired > '.time().')';
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- $sql .= " ORDER BY stories_uid";
- $result = $db->query($sql);
- while ( $myrow = $db->fetchArray($result) ) {
- $ret[] = $myrow['stories_uid'];
- }
- return $ret;
- }
-
-
- /**
- * Returns the content of the summary and the titles requires for the list selector
- */
- function auto_summary($text, &$titles)
- {
- $auto_summary = '';
- if(xnews_getmoduleoption('enhanced_pagenav', NW_MODULE_DIR_NAME)) {
- $expr_matches = array();
- $posdeb = preg_match_all('/(\[pagebreak:|\[pagebreak).*\]/iU', $text, $expr_matches);
- if(count($expr_matches) > 0) {
- $delimiters = $expr_matches[0];
- $arr_search = array('[pagebreak:', '[pagebreak', ']');
- $arr_replace = array('', '', '');
- $cpt = 1;
- if(isset($titles) && is_array($titles)) {
- $titles[] = strip_tags(sprintf(_MA_NW_PAGE_AUTO_SUMMARY,1, $this->title()));
- }
- $item = "<a href='".NW_MODULE_URL . '/article.php?stories_id='.$this->stories_id()."&page=0'>".sprintf(_MA_NW_PAGE_AUTO_SUMMARY,1, $this->title()).'</a><br />';
- $auto_summary .= $item;
-
- foreach($delimiters as $item) {
- $cpt++;
- $item = str_replace($arr_search, $arr_replace, $item);
- if(xoops_trim($item) == '') {
- $item = $cpt;
- }
- $titles[] = strip_tags(sprintf(_MA_NW_PAGE_AUTO_SUMMARY,$cpt, $item));
- $item = "<a href='".NW_MODULE_URL . '/article.php?stories_id='.$this->stories_id().'&page='.($cpt-1)."'>".sprintf(_MA_NW_PAGE_AUTO_SUMMARY,$cpt, $item).'</a><br />';
- $auto_summary .= $item;
- }
- }
- }
- return $auto_summary;
- }
-
- function hometext($format = 'Show')
- {
- $myts =& MyTextSanitizer::getInstance();
- $html = $smiley = $xcodes = 1;
- $dobr = 0;
- if ( $this->nohtml() ) {
- $html = 0;
- }
- if ( $this->nosmiley() ) {
- $smiley = 0;
- }
- if ( $this->dobr() ) {
- $dobr = 1;
- }
- switch ( $format ) {
- case 'Show':
- $hometext = $myts->displayTarea($this->hometext,$html,$smiley,1,1,$dobr);
- $tmp = '';
- $auto_summary = $this->auto_summary($this->bodytext('Show'),$tmp);
- $hometext = str_replace('[summary]', $auto_summary, $hometext);
- break;
- case 'Edit':
- $hometext = $myts->htmlSpecialChars($this->hometext);
- break;
- case 'Preview':
- $hometext = $myts->previewTarea($this->hometext,$html,$smiley,1,1,$dobr);
- break;
- case 'InForm':
- $hometext = $myts->stripSlashesGPC($this->hometext);
- $hometext = $myts->htmlSpecialChars($hometext);
- break;
- }
- return $hometext;
- }
-
- function bodytext($format = 'Show')
- {
- $myts =& MyTextSanitizer::getInstance();
- $html = 1;
- $smiley = 1;
- $xcodes = 1;
- $dobr = 0;
- if ( $this->nohtml() ) {
- $html = 0;
- }
- if ( $this->nosmiley() ) {
- $smiley = 0;
- }
- if ( $this->dobr() ) {
- $dobr = 1;
- }
- switch ( $format ) {
- case 'Show':
- $bodytext = $myts->displayTarea($this->bodytext,$html,$smiley,1,1,$dobr);
- $tmp = '';
- $auto_summary = $this->auto_summary($bodytext,$tmp);
- $bodytext = str_replace('[summary]', $auto_summary, $bodytext);
- break;
- case 'Edit':
- $bodytext = $myts->htmlSpecialChars($this->bodytext);
- break;
- case 'Preview':
- $bodytext = $myts->previewTarea($this->bodytext,$html,$smiley,1,1,$dobr);
- break;
- case 'InForm':
- $bodytext = $myts->stripSlashesGPC($this->bodytext);
- $bodytext = $myts->htmlSpecialChars($bodytext);
- break;
- }
- return $bodytext;
- }
-
- /**
- * Returns stories by Ids
- */
- function getStoriesByIds($ids, $checkRight = true, $asobject = true, $order = 'stories_published', $onlyOnline = true)
- {
- $limit = $start = 0;
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- $myts =& MyTextSanitizer::getInstance();
- $ret = array();
- $sql = 'SELECT s.*, t.* FROM '.$db->prefix('xnews_stories').' s, '. $db->prefix('xnews_topics').' t WHERE ';
- if(is_array($ids) && count($ids) > 0) {
- array_walk($ids, 'intval');
- }
- $sql .= ' s.stories_id IN ('.implode(',', $ids).') ';
-
- if($onlyOnline) {
- $sql .= ' AND (s.stories_published > 0 AND s.stories_published <= '.time().') AND (s.stories_expired = 0 OR s.stories_expired > '.time().') ';
- }
- $sql .= ' AND (s.stories_topicid=t.topics_id) ';
- if($checkRight) {
- $topics = xnews_MygetItemIds('xnews_view');
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $sql .= ' AND s.stories_topicid IN ('.$topics.')';
- } else {
- return null;
- }
- }
- $sql .= " ORDER BY s.$order DESC";
- $result = $db->query($sql,intval($limit),intval($start));
-
- while ( $myrow = $db->fetchArray($result) ) {
- if ($asobject) {
- $ret[$myrow['stories_id']] = new xnews_NewsStory($myrow);
- } else {
- $ret[$myrow['stories_id']] = $myts->htmlSpecialChars($myrow['title']);
- }
- }
- return $ret;
- }
-
- //ADDED by wishcraft ver 1.89
- function xnews_stripeKey($xoops_key, $num = 7, $length = 32, $uu = 0)
- {
- $strip = floor(strlen($xoops_key) / $num);
- for ($i = 0; $i < strlen($xoops_key); $i++) {
- if ($i < $length) {
- $uu++;
- if ($uu == $strip) {
- $ret .= substr($xoops_key, $i, 1) . '-';
- $uu = 0;
- } else {
- if (substr($xoops_key, $i, 1) != '-') {
- $ret .= substr($xoops_key, $i, 1);
- } else {
- $uu--;
- }
- }
- }
- }
- $ret = str_replace('--', '-', $ret);
- if (substr($ret, 0, 1) == '-') {
- $ret = substr($ret, 2, strlen($ret));
- }
- if (substr($ret, strlen($ret) - 1, 1) == '-') {
- $ret = substr($ret, 0, strlen($ret) - 1);
- }
- return $ret;
- }
-}
-?>
Deleted: XoopsModules/xnews/trunk/timgno/xnews/class/class.newstopic.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/class/class.newstopic.php~ 2012-01-31 18:20:32 UTC (rev 8849)
+++ XoopsModules/xnews/trunk/timgno/xnews/class/class.newstopic.php~ 2012-01-31 18:23:32 UTC (rev 8850)
@@ -1,519 +0,0 @@
-<?php
-// $Id: class.newstopic.php,v 1.9 2004/09/02 17:04:08 hthouzard Exp $
-// ------------------------------------------------------------------------ //
-// XOOPS - PHP Content Management System //
-// Copyright (c) 2000 XOOPS.org //
-// <http://www.xoops.org/> //
-// ------------------------------------------------------------------------ //
-// 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 //
-// ------------------------------------------------------------------------ //
-if (!defined('XOOPS_ROOT_PATH')) {
- die("XOOPS root path not defined");
-}
-
-include_once XOOPS_ROOT_PATH."/class/xoopsstory.php";
-include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
-include_once NW_MODULE_PATH . "/include/functions.php";
-
-class xnews_NewsTopic extends XoopsTopic
-{
- var $menu;
- var $topics_description;
- var $topics_frontpage;
- var $topics_rssurl;
- var $topics_color;
-
- function xnews_NewsTopic($topicid=0)
- {
- $this->db =& Database::getInstance();
- $this->table = $this->db->prefix('xnews_topics');
- if ( is_array($topicid) ) {
- $this->makeTopic($topicid);
- } elseif ( $topicid != 0 ) {
- $this->getTopic(intval($topicid));
- } else {
- $this->topics_id = $topicid;
- }
- }
-
- function MakeMyTopicSelBox($none=0, $seltopic=-1, $selname="", $onchange="", $checkRight = false, $perm_type='xnews_view')
- {
- $perms='';
- if ($checkRight) {
- global $xoopsUser;
- $module_handler =& xoops_gethandler('module');
- $newsModule =& $module_handler->getByDirname(NW_MODULE_DIR_NAME);
- $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
- $gperm_handler =& xoops_gethandler('groupperm');
- $topics = $gperm_handler->getItemIds($perm_type, $groups, $newsModule->getVar('mid'));
- if(count($topics)>0) {
- $topics = implode(',', $topics);
- $perms = " AND topics_id IN (".$topics.") ";
- } else {
- return null;
- }
- }
-
- if ( $seltopic != -1 ) {
- return $this->makeMySelBox("topics_title", "topics_title", $seltopic, $none, $selname, $onchange, $perms);
- } elseif ( !empty($this->topics_id) ) {
- return $this->makeMySelBox("topics_title", "topics_title", $this->topics_id, $none, $selname, $onchange, $perms);
- } else {
- return $this->makeMySelBox("topics_title", "topics_title", 0, $none, $selname, $onchange, $perms);
- }
- }
-
- /**
- * makes a nicely ordered selection box
- *
- * @param int $preset_id is used to specify a preselected item
- * @param int $none set $none to 1 to add a option with value 0
- */
- function makeMySelBox($title,$order="",$preset_id=0, $none=0, $sel_name="topics_id", $onchange="", $perms)
- {
- $myts =& MyTextSanitizer::getInsta...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 18:20:38
|
Revision: 8849
http://xoops.svn.sourceforge.net/xoops/?rev=8849&view=rev
Author: txmodxoops
Date: 2012-01-31 18:20:32 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
backup file
Removed Paths:
-------------
XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php 2012-01-31 18:19:00 UTC (rev 8848)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php 2012-01-31 18:20:32 UTC (rev 8849)
@@ -1,394 +0,0 @@
-<?php
-/**
-* Module: xNews Import
-* Author: DNPROSSI
-* Licence: GNU
-*/
-
-include_once dirname(__FILE__) . "/header.php";
-include_once '../../../include/cp_header.php';
-include_once XNI_MODULE_PATH . '/include/functions.php';
-include_once XNI_MODULE_PATH . '/admin/functions.php';
-include_once XNI_MODULE_PATH . '/class/class.newstopic.php';
-include_once XNI_MODULE_PATH . '/class/class.newsstory.php';
-include_once XNI_MODULE_PATH . '/class/class.xnewsimport.php';
-
-function NewsImport()
-{
- global $xoopsDB;
- xoops_cp_header();
- $importfrom = 'none';
- $importto = 'none';
-
- adminMenu(0, _AM_XNI_IMPORT);
-
- echo "<h1>" . _AM_XNI_IMPORT_TITLE . "</h1>";
- echo _AM_XNI_IMPORT_INFO . "<br /><br />";
-
- xoops_load('XoopsFormLoader');
-
- // Iterate through installed modules tables for articles, items, category,
- // topics and add them to selectlist
- // This will also find clones
- $news_fieldsearch_array = array(
- 'topic_id',
- 'topic_pid',
- 'banner'
- );
-
- $other_fieldsearch_array = array(
- 'categoryid',
- 'parentid',
- 'moderator'
- );
-
- //Get From Module Data
- $module_handler =& xoops_gethandler('module');
- $installed_mods = $module_handler->getObjects();
- $listed_mods = array();
- $count = 0;
- foreach ( $installed_mods as $module ) {
- if ( $module->getVar('dirname') != 'system' && $module->getVar('isactive') == 1 ) {
- $module->loadInfo($module->getVar('dirname'));
- $modtables = $module->getInfo('tables');
- if ( $modtables != false && is_array($modtables) ) {
- foreach ( $modtables as $table ) {
- $newscount = 0;
- foreach ($news_fieldsearch_array as $field ) {
- if ( xni_fieldexists($field, $xoopsDB->prefix($table)) ) {
- $newscount++;
- }
- }
- if ( $newscount == 2 ) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 1.64)) {
- $importfrom_array["news/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- }
- /*} elseif ($newscount == 3) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 2.0)) {
- $importfrom_array["ams/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- }
- $smartcount = 0;
- foreach ( $other_fieldsearch_array as $field ) {
- if ( xni_fieldexists($field, $xoopsDB->prefix($table)) ) {
- $smartcount++;
- }
- }
- if ( $smartcount == 2 ) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 2.0)) {
- $importfrom_array["smartsection/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- } elseif ($smartcount == 3) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 1.0)) {
- $importfrom_array["publisher/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- }*/
- }
- }
- }
- }
-
- $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_installed = 1");
- $ix = 0;
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- $importto_array[$ix] = $clone['clone_dir'];
- $ix++;
- }
-
- if (isset($importfrom_array) && count($importfrom_array) > 0 && isset($importto_array) && count($importto_array) > 0) {
-
- $sform = new XoopsThemeForm(_AM_XNI_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF'));
- $sform->setExtra('enctype="multipart/form-data"');
-
- // Partners to import from
- $importfrom = new XoopsFormSelect('', 'importfrom', $importfrom);
- $importfrom->addOptionArray($importfrom_array);
- $importfrom_tray = new XoopsFormElementTray(_AM_XNI_IMPORT_FROM , ' ');
- $importfrom_tray->addElement($importfrom);
- $importfrom_tray->setDescription(_AM_XNI_IMPORT_FROM_DSC);
- $sform->addElement($importfrom_tray);
-
- // xNews & clones to import to
- $importto = new XoopsFormSelect('', 'importto', $importto);
- $importto->addOptionArray($importto_array);
- $importto_tray = new XoopsFormElementTray(_AM_XNI_IMPORT_TO , ' ');
- $importto_tray->addElement($importto);
- $importto_tray->setDescription(_AM_XNI_IMPORT_TO_DSC);
- $sform->addElement($importto_tray);
-
- // Buttons
- $button_tray = new XoopsFormElementTray('', '');
- $hidden = new XoopsFormHidden('op', 'topicselect');
- $button_tray->addElement($hidden);
-
- $butt_import = new XoopsFormButton('', '', _AM_XNI_IMPORT, 'submit');
- $butt_import->setExtra('onclick="this.form.elements.op.value=\'topicselect\'"');
- $button_tray->addElement($butt_import);
-
- $butt_cancel = new XoopsFormButton('', '', _AM_XNI_CANCEL, 'button');
- $butt_cancel->setExtra('onclick="history.go(-1)"');
- $button_tray->addElement($butt_cancel);
- $sform->addElement($button_tray);
- $sform->display();
- unset($hidden);
- } else {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_XNI_IMPORT_NO_MODULE . "</span>";
- }
-}
-
-function TopicSelect()
-{
- xoops_cp_header();
- echo '<script type="text/javascript" src="' . XNI_MODULE_URL . '/js/funcs.js"></script>';
- xoops_load('XoopsFormLoader');
-
- adminMenu(0, _AM_XNI_IMPORT);
- global $xoopsDB;
-
- $begin = isset($_GET['begin']) ? intval($_GET['begin']) : 0;
- include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
- include_once XOOPS_ROOT_PATH . '/class/xoopstopic.php';
- include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- include_once XOOPS_ROOT_PATH . '/class/tree.php';
- $myts =& MyTextSanitizer::getInstance();
-
- //Detect in out modules and prepare form
- $from_import = (isset($_POST['importfrom'])) ? $_POST['importfrom'] : 'nonselected';
- $to_import_clone_id = (isset($_POST['importto'])) ? $_POST['importto'] : 'nonselected';
-
- $options = explode('/', $from_import);
-
- $from_import_type = $options[0];
- $from_import_dirname = $options[1];
-
- //Get selected xNews module or clone to import to
- $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_installed = 1");
- $ix = 0;
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- $clone_arr[$ix] = $clone;
- $ix++;
- }
-
- $to_import_dirname = $clone_arr[$to_import_clone_id]['clone_dir'];
- $to_subprefix = $clone_arr[$to_import_clone_id]['clone_subprefix'] . "_";
-
- if ($from_import_dirname == $to_import_dirname)
- {
- //REDIRECT IF SAME
- redirect_header('index.php?op=import', 2, "It's not possible to import the same ".$options[1]." module!");
- }
-
- $from_import_type = $options[0];
- $from_import_dirname = $options[1];
-
- $from_topic_id_type = '';
- $from_topic_pid_type = '';
- $from_topic_title_type = '';
- $from_table_name = '';
-
- //GET ALL MODULE-FROM DATA
- $module_handler = &xoops_gethandler('module');
- $from_module = &$module_handler->getByDirname($from_import_dirname);
- $from_module->loadInfo($from_module->getVar('dirname'));
-
- $from_modtables = $from_module->getInfo('tables');
- if ( $from_modtables != false && is_array($from_modtables) ) {
- foreach ( $from_modtables as $from_table ) {
- $from_table_arr = explode('_', $from_table);
- if ( count($from_table_arr) > 0 ) { //&& $from_import_dirname != 'news') {
- if ($from_import_dirname != 'news') {
- $subprefix = $from_table_arr[0] . "_";
- } else {
- $subprefix = '';
- }
- //trigger_error($subprefix . " NEWS ".$from_table_arr[0], E_USER_WARNING);
- switch ($from_import_type) {
- case 'news':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_gettopics($from_subprefix);
- $from_topic_id = 'topic_id';
- $from_topic_pid = 'topic_pid';
- $from_topic_title = 'topic_title';
- $from_topic_table = $from_subprefix . 'topics';
- $from_story_table = $from_subprefix . 'stories';
- break;
- /*case 'ams':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_gettopics($from_subprefix);
- $from_topic_id = 'topic_id';
- $from_topic_pid = 'topic_pid';
- $from_topic_title = 'topic_title';
- $from_topic_table = $from_subprefix . 'topics';
- $from_story_table = $from_subprefix . 'stories';
- break;
- case 'smartsection':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_getcategories($from_subprefix);
- $from_topic_id = 'categoryid';
- $from_topic_pid = 'parentid';
- $from_topic_title = 'name';
- $from_topic_table = $from_subprefix . 'categories';
- $from_story_table = $from_subprefix . 'items';
- break;
- case 'publisher':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_getcategories($from_subprefix);
- $from_topic_id = 'categoryid';
- $from_topic_pid = 'parentid';
- $from_topic_title = 'name';
- $from_topic_table = $from_subprefix . 'categories';
- $from_story_table = $from_subprefix . 'items';
- break;*/
- }
-
- //trigger_error($from_table_arr[0], E_USER_WARNING);
- }
- }
- }
-
- //------------------------------------------------------------------
-
- $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix($from_topic_table));
- list ($totalCat) = $xoopsDB->fetchRow($result);
-
- if ($totalCat == 0) {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_XNI_IMPORT_NO_CATEGORY . "</span>";
- } else {
-
- $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix($from_story_table));
- list ($totalArticles) = $xoopsDB->fetchRow($result);
-
- if ($totalArticles == 0) {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . sprintf(_AM_XNI_IMPORT_MODULE_FOUND_NO_ITEMS, $from_import_dirname, $totalArticles) . "</span>";
- } else {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . sprintf(_AM_XNI_IMPORT_MODULE_FOUND, $totalArticles, $totalCat, $from_import_dirname) . "</span>";
-
- $form = new XoopsThemeForm(_AM_XNI_IMPORT_SETTINGS, 'import_form', XNI_MODULE_URL . "/admin/index.php");
-
- $table_name = $from_topic_table;
- $topiclist=new XoopsFormSelect(_AM_XNI_IMPORT_FROM_TOPICS, 'from_topics','',5,true);
- $topics_arr=array();
- $xt = new xni_NewsTopic();
- $allTopics = $xt->getAllTopics($table_name, false); // The webmaster can see everything
- $topic_tree = new XoopsObjectTree($allTopics, 'topic_id', 'topic_pid');
- $topics_arr = $topic_tree->getAllChild(0);
- if(count($topics_arr)) {
- foreach ($topics_arr as $onetopic) {
- $topiclist->addOption($onetopic->topic_id(),$onetopic->topic_title());
- }
- }
- $topiclist->setDescription(_AM_XNI_IMPORT_FROM_TOPICS_DSC);
- $form->addElement($topiclist, false);
-
- /*$to_table_name = $to_subprefix . 'topics';
- $to_topiclist=new XoopsFormSelect(_AM_XNI_IMPORT_TO_TOPICS, 'to_topic','',5,false);
- $to_topics_arr=array();
- $to_xt = new xni_NewsTopic();
- $to_allTopics = $to_xt->getAllTopics($to_table_name, false); // The webmaster can see everything
- $to_topic_tree = new XoopsObjectTree($to_allTopics, 'topic_id', 'topic_pid');
- $to_topics_arr = $to_topic_tree->getAllChild(0);
- if(count($to_topics_arr)) {
- foreach ($to_topics_arr as $to_onetopic) {
- $to_topiclist->addOption($to_onetopic->topic_id(),$to_onetopic->topic_title());
- }
- }
- $to_topiclist->setDescription(_AM_XNI_IMPORT_TO_TOPICS_DSC);
- $form->addElement($to_topiclist, false);
- */
- $form->addElement (new XoopsFormHidden('importfromdirname', $from_import_dirname));
- $form->addElement (new XoopsFormHidden('importtodirname', $to_import_dirname));
- $form->addElement (new XoopsFormHidden('importfromsubprefix', $from_subprefix));
- $form->addElement (new XoopsFormHidden('importtosubprefix', $to_subprefix));
-
- $form->addElement (new XoopsFormHidden('op', 'startimport'));
- $form->addElement (new XoopsFormButton ('', 'import', _AM_XNI_IMPORT, 'submit'));
-
- $form->display();
- }
- }
- xoops_cp_footer();
-}
-
-function StartImport()
-{
- global $xoopsDB, $xoopsConfig, $xoopsModule;
-
- xoops_cp_header();
-
- if (isset($_POST['importfromdirname']))
- {
- $from_module_dirname = $_POST['importfromdirname'];
- $from_module_subprefix = $_POST['importfromsubprefix'];
- $to_module_dirname = $_POST['importtodirname'];
- $to_module_subprefix = $_POST['importtosubprefix'];
- }
-
- $module_handler =& xoops_gethandler('module');
- $moduleObj = $module_handler->getByDirname($from_module_dirname);
- $news_module_id = $moduleObj->getVar('mid');
-
- $gperm_handler =& xoops_gethandler('groupperm');
-
- $cnt_imported_cat = 0;
- $cnt_imported_articles = 0;
- $cnt_imported_comments = 0;
- $cnt_imported_files = 0;
-
- // If none selected then import all topics
- if (!isset($_POST['from_topics']))
- {
- $resultCat = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . "topics"));
- include_once('import.php');
- }
- // Import selected topics
- else
- {
- $ftpcs = $_POST['from_topics'];
- $ftpcs = implode("', '", $ftpcs);
- $resultCat = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . "topics") . " WHERE topic_id IN ('".$ftpcs."')");
- include_once('import.php');
- }
-
- xoops_cp_footer();
-}
-
-$op = 'none';
-
-if (isset($_GET['op'])) $op = $_GET['op'];
-if (isset($_POST['op'])) $op = $_POST['op'];
-
-switch ($op) {
- case "startimport":
- StartImport();
- break;
- case "topicselect":
- TopicSelect();
- break;
-
- case "import":
- NewsImport();
- break;
-
- case "default":
- default:
- xoops_cp_header();
- adminmenu(-1);
- echo '<h4>' . _AM_XNI_CONFIG . '</h4>';
- echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td width='59%' class=\"odd\" id=\"xo-newsicons\" >";
- echo "<b><a href='index.php?op=import'><img src='" . XNI_MODULE_URL . "/images/import32.png' alt='' /><br/>" . _AM_XNI_IMPORT_TITLE . "</a></b>";
- echo "<b><a href='" . XOOPS_URL . "/modules/system/admin.php?fct=preferences&op=showmod&mod=" . $xoopsModule -> getVar( 'mid' ) . "'><img src='" . NW_MODULE_URL . "/images/prefs32.png' alt='' /><br/>" . _AM_XNI_PREFERENCES . "</a></b>";
- echo "<br /><br />\n";
- echo"</td><td width='50%' class=\"even\" id=\"xo-newsicons\" >";
- echo _AM_XNI_DESCRIPTION . "<br />";
- echo "</td></tr></table>";
- break;
-}
-
-xoops_cp_footer();
-?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-31 18:19:13
|
Revision: 8848
http://xoops.svn.sourceforge.net/xoops/?rev=8848&view=rev
Author: txmodxoops
Date: 2012-01-31 18:19:00 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
backup files
Removed Paths:
-------------
XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/export.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/import.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/importer.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/index.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/menu.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/newsletter.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/permissions.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/stories.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/topics.php~
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~ 2012-01-31 18:04:15 UTC (rev 8847)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~ 2012-01-31 18:19:00 UTC (rev 8848)
@@ -1,133 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:37 : Timgno Exp $
- * ****************************************************************************
- */
-include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/mainfile.php";
-/*include_once XOOPS_ROOT_PATH."/include/cp_functions.php";
-include_once(XOOPS_ROOT_PATH."/kernel/module.php");
-include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
-include_once XOOPS_ROOT_PATH."/class/tree.php";
-include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
-include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
-include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
-include_once "../include/static_var.php";
-include_once "../include/functions.php";*/
-
-define("NW_SUBPREFIX", "nw");
-define("NW_MODULE_DIR_NAME", "xnews");
-define("NW_MODULE_PATH", XOOPS_ROOT_PATH . "/modules/" . NW_MODULE_DIR_NAME);
-define("NW_MODULE_URL", XOOPS_URL . "/modules/" . NW_MODULE_DIR_NAME);
-define("NW_UPLOADS_NEWS_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME);
-define("NW_TOPICS_FILES_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME . "/topics");
-define("NW_ATTACHED_FILES_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME . "/attached");
-define("NW_TOPICS_FILES_URL", XOOPS_URL . "/uploads/" . NW_MODULE_DIR_NAME . "/topics");
-define("NW_ATTACHED_FILES_URL", XOOPS_URL . "/uploads/" . NW_MODULE_DIR_NAME . "/attached");
-
-include_once XOOPS_ROOT_PATH.'/class/xoopstopic.php';
-include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
-include_once NW_MODULE_PATH . '/config.php';
-include_once NW_MODULE_PATH . '/class/class.newsstory.php';
-include_once NW_MODULE_PATH . '/class/class.newstopic.php';
-include_once NW_MODULE_PATH . '/class/class.sfiles.php';
-include_once NW_MODULE_PATH . '/class/blacklist.php';
-include_once NW_MODULE_PATH . '/class/registryfile.php';
-include_once XOOPS_ROOT_PATH.'/class/uploader.php';
-include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
-include_once NW_MODULE_PATH . '/admin/functions.php';
-include_once NW_MODULE_PATH . '/include/functions.php';
-include_once XOOPS_ROOT_PATH.'/class/tree.php';
-$dateformat=nw_getmoduleoption('dateformat', NW_MODULE_DIR_NAME);
-$myts =& MyTextSanitizer::getInstance();
-$topicscount=0;
-
-$storiesTableName = $xoopsDB->prefix('nw_stories');
-if(!nw_FieldExists('picture', $storiesTableName)) {
- nw_AddField('`picture` VARCHAR( 50 ) NOT NULL', $storiesTableName);
-}
-
-$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
-$globlang = $GLOBALS['xoopsConfig']['language'];
-
-if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
- include_once $pathDir.'/language/'.$globlang.'/main.php';
- }else{
- include_once $pathDir.'/language/english/main.php';
- }
-
-if ( file_exists($pathDir.'/moduleadmin.php')){
- include_once $pathDir.'/moduleadmin.php';
- //return true;
- }else{
- xoops_cp_header();
- echo xoops_error(_AM_ERROR_NOFRAMEWORKS);
- xoops_cp_footer();
- //return false;
- }
-$dirname = basename( dirname( dirname( __FILE__ ) ) );
-$module_handler =& xoops_gethandler("module");
-$xoopsModule =& XoopsModule::getByDirname($dirname);
-$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
-$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
-$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
-
-$topicsHandler=& xoops_getModuleHandler('xnews_topics','xnews');
-$storiesHandler=& xoops_getModuleHandler('xnews_stories','xnews');
-
-$myts =& MyTextSanitizer::getInstance();
-
-if ($xoopsUser) {
- $moduleperm_handler =& xoops_gethandler('groupperm');
- if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
- redirect_header(XOOPS_URL, 1, _NOPERM);
- exit();
- }
-} else {
- redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
- exit();
-}
-
-if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
- include_once(XOOPS_ROOT_PATH."/class/template.php");
- $xoopsTpl = new XoopsTpl();
-}
-
-$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
-$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
-
-//Load languages
-xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
-xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
-xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
\ No newline at end of file
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php~ 2012-01-31 18:04:15 UTC (rev 8847)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php~ 2012-01-31 18:19:00 UTC (rev 8848)
@@ -1,394 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
- * ****************************************************************************
- */
-include "admin_header.php";
-xoops_cp_header();
-
-$op = xnews_CleanVars($_REQUEST, 'op', 'default', 'string');
-$clonerAdmin = new ModuleAdmin();
-switch ($op)
-{
- case 'default':
- default:
- echo $clonerAdmin->addNavigation("clonate.php");
- $clonerAdmin->addItemButton(_AM_XNEWS_ADDCLONE, 'clonate.php?op=add_clone', 'add');
- echo $clonerAdmin->renderButton();
- global $xoopsDB, $xoopsConfig, $xoopsModule, $myts;
- include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
-
- $clone_modulename = '';
-
- $start = isset($_GET['start']) ? intval($_GET['start']) : 0;
-
- $result = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('news_clonerdata'));
- $ix = 0;
- $iy = 0;
- $clone_arr = array();
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- //DNPROSSI - Control if clone dir exists
- if ( is_dir(XOOPS_ROOT_PATH . "/modules/" . $clone['clone_dir']) ) {
- $clone_arr[$ix] = $clone;
- $ix++;
- } else {
- $nonclone_arr[$iy] = $clone;
- $iy++;
- }
- }
- // If cloned dir does not exists because deleted remove from dtb
- if ( isset($nonclone_arr) ) {
- for ($iy = 0; $iy < count($nonclone_arr); $iy++) {
- $result = $xoopsDB->queryF("DELETE FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_dir = '" . $nonclone_arr[$iy]['clone_dir'] . "' ;");
- }
- }
-
- $totalclones = count($clone_arr);
- $class='';
-
- //echo '<h2>' . _AM_XNEWS_CLONER . '</h2>';
- //xnews_collapsableBar('NewsCloner', 'topNewsCloner');
- //echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='topNewsCloner' name='topNewsCloner' src='" . NW_MODULE_URL . "/images/close12.gif' alt='' /></a> " . _AM_XNEWS_CLONER_CLONES . ' (' . $totalclones . ')'."</h4>";
- echo "<div id='NewsCloner'>";
- echo '<br />';
- echo "<div style='text-align: center;'>";
- echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'><tr class='bg5'><th align='center'>" . _AM_XNEWS_CLONER_NAME . "</th><th align='center'>" . _AM_XNEWS_CLONER_DIRFOL . "</th><th align='center'>" . _AM_XNEWS_SUBPREFIX . "</th><th align='center'>" . _AM_XNEWS_CLONER_VERSION . "</th><th align='center'>" . _AM_XNEWS_ACTION . "</th><th align='center'>" . _AM_XNEWS_CLONER_ACTION_INSTALL . "</th></tr>";
- if(is_array($clone_arr) && $totalclones) {
- $cpt=1;
- $tmpcpt=$start;
- $ok=true;
- $output='';
- while($ok) {
- if($tmpcpt < $totalclones) {
- //DNPROSSI - Upgrade if clone version is different from original news version
- //DNPROSSI - Install if cloned
- if ( $clone_arr[$tmpcpt]['clone_dir'] != $clone_arr[0]['clone_dir'] ) {
- if ( $clone_arr[$tmpcpt]['clone_version'] != $clone_arr[0]['clone_version'] )
- {
- $linkupgrade = NW_MODULE_URL . '/admin/clonate.php?op=cloneupgrade&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
- $action = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_UPGRADE);
- if ( $clone_arr[$tmpcpt]['clone_installed'] == 1 )
- {
- $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=uninstall&module=' . $clone_arr[$tmpcpt]['clone_dir'];
- $installaction = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_UNINSTALL);
- } else {
- $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=install&module=' . $clone_arr[$tmpcpt]['clone_dir'];
- $linkdelete = NW_MODULE_URL . '/admin/clonate.php?op=clonedelete&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
- $installaction = sprintf("<a href='%s'>%s</a> - <a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_INSTALL, $linkdelete, _AM_XNEWS_DELETE);
- }
- } else {
- $linkforce = NW_MODULE_URL . '/admin/clonate.php?op=cloneupgrade&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
- $action=sprintf( _AM_XNEWS_CLONER_CLONEUPGRADED . " - <a href='%s'>%s</a>", $linkforce, _AM_XNEWS_CLONER_UPGRADEFORCE);
- if ( $clone_arr[$tmpcpt]['clone_installed'] == 1 )
- {
- $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=uninstall&module=' . $clone_arr[$tmpcpt]['clone_dir'];
- $installaction = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_UNINSTALL);
- } else {
- $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=install&module=' . $clone_arr[$tmpcpt]['clone_dir'];
- $linkdelete = NW_MODULE_URL . '/admin/clonate.php?op=clonedelete&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
- $installaction = sprintf("<a href='%s'>%s</a> - <a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_INSTALL, $linkdelete, _AM_XNEWS_DELETE);
- }
- }
- } else {
- $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=' . $clone_arr[$tmpcpt]['clone_dir'];
- $action = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_UPDATE);
- $installaction = '';
- }
- $class = ($class == 'even') ? 'odd' : 'even';
- $output = $output . "<tr class='" . $class . "'><td align='center'>" . $clone_arr[$tmpcpt]['clone_name'] . "</td><td align='center'>" . $clone_arr[$tmpcpt]['clone_dir'] . "</td><td align='center'>" . $clone_arr[$tmpcpt]['clone_subprefix'] . "</td><td align='center'>" . round($clone_arr[$tmpcpt]['clone_version'] / 100, 2) . "</td><td>" . $action . "</td><td>" . $installaction . "</td></tr>";
- } else {
- $ok=false;
- }
- if($cpt>=xnews_getmoduleoption('storycountadmin', NW_MODULE_DIR_NAME)) {
- $ok=false;
- }
- $tmpcpt++;
- $cpt++;
- }
- echo $output;
- }
- $pagenav = new XoopsPageNav( $totalclones, xnews_getmoduleoption('storycountadmin', NW_MODULE_DIR_NAME), $start, 'start', 'op=clonemanager');
- echo "</table><div align='right'>".$pagenav->renderNav().'</div><br />';
- echo "</div></div><br />\n";
-
- $clone_id = isset($_GET['clone_id']) ? intval($_GET['clone_id']) : 0;
- if($clone_id>0) {
- $xtmod = new xnews_NewsTopic($clone_id);
- $clone_name=$xtmod->clone_name('E');
- $clone_dir=$xtmod->clone_dir('E');
- $clone_version=$xtmod->clone_version('E');
- $op='modClone';
- $btnlabel=_AM_XNEWS_MODIFY;
- $parent=$xtmod->topic_pid();
- $formlabel=_AM_XNEWS_MODIFYTOPIC;
- $oldnewsimport=$xtmod->menu();
- $topic_frontpage=$xtmod->topic_frontpage();
- $topic_color=$xtmod->topic_color();
- unset($xtmod);
- } else {
- $clone_name='';
- $clone_frontpage=1;
- $clone_dir='';
- $op='addTopic';
- $btnlabel=_AM_XNEWS_ADD;
- $parent=-1;
- $oldnewsimport=0;
- $clone_version='';
- $formlabel=_AM_XNEWS_ADD_TOPIC;
- }
- break;
- case 'add_clone':
- echo $clonerAdmin->addNavigation("clonate.php");
- $clonerAdmin->addItemButton(_AM_XNEWS_CLONESLIST, 'clonate.php?op=default', 'list');
- echo $clonerAdmin->renderButton();
- //Draw Form
- include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
- $sform = new XoopsThemeForm(_AM_XNEWS_CLONER_ADD, "clonerform", NW_MODULE_URL . "/admin/clonate.php", "post");
-
- $filedir_tray = new XoopsFormElementTray(_AM_XNEWS_CLONER_NEWNAME, "");
- $label = sprintf(_AM_XNEWS_CLONER_NEWNAMEDESC, $xoopsModule->name());
- $filedir_tray->addElement(new XoopsFormLabel($label), false);
- $filedir_tray->addElement(new XoopsFormText(_AM_XNEWS_CLONER_NEWNAMELABEL, "clone_modulename", 50, 255, $clone_modulename), true);
- $sform->addElement($filedir_tray);
-
- $sform->addElement(new XoopsFormHidden("op", "default"), false);
- $sform->addElement(new XoopsFormHidden("op", "clonerapply"), false);
-
- $button_tray = new XoopsFormElementTray("" ,"");
- $submit_btn = new XoopsFormButton("", "post", _SUBMIT, "submit");
- $button_tray->addElement($submit_btn);
- $sform->addElement($button_tray);
- $sform->display();
-
-
- //recalc original subprefix
- $sub = xnews_remove_numbers(NW_SUBPREFIX);
- $result2 = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($sub.'_stories'));
- $count = $xoopsDB->getRowsNum($result2);
-
- $tmpmodule_handler =& xoops_gethandler('module');
- break;
- case 'clonerapply':
- include_once "cloner.php";
- global $xoopsDB, $xoopsConfig, $xoopsModule;
- if ( !empty($_POST['clone_modulename']) ) {
- $module_version = $xoopsModule->version();
- $old_dirname = $xoopsModule->dirname();
- $old_modulename = $xoopsModule->name();
- $old_subprefix = NW_SUBPREFIX;
-
- $new_modulename = $_POST['clone_modulename'];
-
- $new_dirname = strtolower(str_replace(' ', '', $new_modulename));
- $new_modulename = ucwords(strtolower($new_modulename));
-
- //Select last id for new sub-prefix.
- $result = $xoopsDB->query("SHOW TABLE STATUS LIKE '" . $xoopsDB->prefix("news_clonerdata") . "'");
- $row = $xoopsDB->fetchArray($result);
- $Auto_increment = $row['Auto_increment'];
-
- $new_subprefix = 'nw' . strval($Auto_increment);
- //trigger_error($result. ' ---- ' .$count. ' ---- ' .$new_subprefix , E_USER_WARNING);
-
- $patterns = array(
- $old_dirname => $new_dirname,
- '$modversion["original"] = 1;' => '$modversion["original"] = 0;',
- '$modversion["name"] = "' . 'x' . 'News' . '"' => '$modversion["name"] = "' . $new_modulename . '"',
- $old_subprefix => strtolower($new_subprefix),
- strtoupper($old_subprefix) => strtoupper($new_subprefix)
- );
-
- $patKeys = array_keys($patterns);
- $patValues = array_values($patterns);
-
- $newPath = str_replace($patKeys[0], $patValues[0], NW_MODULE_PATH);
- $oldlogo = $newPath . "/" . $old_dirname . "_logo.png";
- $newlogo = $newPath . "/" . $new_dirname . "_logo.png";
-
- if ( !is_dir($newPath) ) { //&& !$old_subprefix == $new_subprefix ) {
- xnews_cloneFileFolder(NW_MODULE_PATH, $patterns);
- //rename logo.png
- @rename( $oldlogo, $newlogo );
- //trigger_error($oldlogo. ' ---- ' .$newlogo , E_USER_WARNING);
-
- $path_array[0] = $newPath . '/templates/';
- $path_array[1] = $newPath . '/templates/blocks/';
-
- // check all files in dir, and process them
- xnews_clonefilename($path_array, $old_subprefix, $new_subprefix);
-
- //Add cloned module to cloner dtb
- $result = $xoopsDB->query("INSERT INTO " . $xoopsDB->prefix('news_clonerdata') .
- " (clone_name, clone_dir, clone_version, clone_subprefix, clone_installed)" .
- " VALUES ('" . $new_modulename . "', '" . $new_dirname . "', '" . $module_version . "', '" . $new_subprefix . "', 0);");
-
- $label = sprintf(_AM_XNEWS_CLONER_CREATED, $new_modulename);
- redirect_header('clonate.php?op=default', 5, $label);
- } else {
- $label = sprintf(_AM_XNEWS_CLONER_DIREXISTS, $new_dirname);
- redirect_header('clonate.php?op=default', 5, $label);
- }
- }
- break;
-
- case 'cloneupgrade':
- include_once "cloner.php";
- global $xoopsDB, $xoopsConfig, $xoopsModule;
-
- if ( !isset($_GET['clone_id']) ) {
- //trigger_error("Not set", E_USER_WARNING);
- redirect_header('clonate.php?op=default', 5, _AM_XNEWS_CLONER_NOMODULEID);
- } else {
- $cloneid = $_GET['clone_id'];
-
- $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_id = " . $cloneid );
- $ix = 0;
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- $clone_arr[$ix] = $clone;
- $ix++;
- }
-
- $org_modulename = $xoopsModule->name();
- $org_dirname = $xoopsModule->dirname();
- $org_version = $xoopsModule->version();
- $org_subprefix = NW_SUBPREFIX;
-
- $upg_modulename = $clone_arr[0]['clone_name'];
- $upg_dirname = $clone_arr[0]['clone_dir'];
- $upg_version = $clone_arr[0]['clone_version'];
- $upg_subprefix = $clone_arr[0]['clone_subprefix'];
-
- $patterns = array(
- $org_dirname => $upg_dirname,
- '$modversion["original"] = 1;' => '$modversion["original"] = 0;',
- '$modversion["name"] = "' . 'x' . 'News' . '"' => '$modversion["name"] = "' . $upg_modulename . '"',
- $org_subprefix => strtolower($upg_subprefix),
- strtoupper($org_subprefix) => strtoupper($upg_subprefix),
- );
-
- $patKeys = array_keys($patterns);
- $patValues = array_values($patterns);
-
- $newPath = str_replace($patKeys[0], $patValues[0], NW_MODULE_PATH);
- $oldlogo = $newPath . "/" . $org_dirname . "_logo.png";
- $newlogo = $newPath . "/" . $upg_dirname . "_logo.png";
-
- xnews_cloneFileFolder(NW_MODULE_PATH, $patterns);
- //rename logo.png
- @rename( $oldlogo, $newlogo );
-
- $path_array[0] = $newPath . '/templates/';
- $path_array[1] = $newPath . '/templates/blocks/';
-
- xnews_deleteclonefile($path_array, $upg_subprefix);
-
- // check all files in dir, and process them
- xnews_clonefilename($path_array, $org_subprefix, $upg_subprefix);
-
- //Update module dtb
- $xoopsDB->queryF("UPDATE " . $xoopsDB->prefix('news_clonerdata') . " SET clone_version = " . $org_version . " WHERE clone_id = " . $cloneid);
-
- $label = sprintf(_AM_XNEWS_CLONER_UPRADED, $upg_modulename);
- redirect_header('clonate.php?op=default', 5, $label);
- }
- break;
-
- case 'clonedelete':
- include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
- xoops_cp_header();
- global $xoopsDB, $xoopsConfig, $xoopsModule;
-
- if ( !isset($_GET['clone_id']) ) {
-
- redirect_header('clonate.php?op=default', 5, _AM_XNEWS_CLONER_CLONEID);
- } else {
- $cloneid = $_GET['clone_id'];
-
- $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_id = " . $cloneid );
- $ix = 0;
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- $clone_arr[$ix] = $clone;
- $ix++;
- }
-
- $module_dirname = $clone_arr[0]['clone_dir'];
-
- echo "<div id='NewsCloner' style='text-align: center;'>";
- echo "<h2>" . _AM_XNEWS_CLONER_CLONEDELETION . "</h2>";
- echo "</div>";
- //echo "<div style='text-align: center;'>";
- $message = sprintf(_AM_XNEWS_CLONER_SUREDELETE, $module_dirname);
- xoops_confirm(array('op' => 'clonedeleteapply', 'clone_id' => $cloneid, 'ok' => 1, 'module_name' => $module_dirname), 'index.php', $message);
- }
- break;
-
- case 'clonedeleteapply':
- include_once "cloner.php";
- global $xoopsDB, $xoopsConfig, $xoopsModule;
- //trigger_error("Not set", E_USER_WARNING);
- if ( !isset($_POST['clone_id']) ) {
- redirect_header('clonate.php?op=default', 5, _AM_XNEWS_CLONER_CLONEID);
- } else {
-
- $del_dirname = $_POST['module_name'];
-
- $delPath1 = XOOPS_ROOT_PATH . "/modules/" . $del_dirname;
- $delPath2 = XOOPS_ROOT_PATH . "/uploads/" . $del_dirname;
-
- if ( file_exists($delPath2) && is_dir($delPath2) )
- {
- if ( xnews_removewholeclone($delPath1) == TRUE && xnews_removewholeclone($delPath2) == TRUE )
- {
- $label = sprintf(_AM_XNEWS_CLONER_CLONEDELETED, $del_dirname);
- redirect_header('clonate.php?op=default', 5, $label);
- } else {
- $label = sprintf(_AM_XNEWS_CLONER_CLONEDELETEERR, $del_dirname);
- redirect_header('clonate.php?op=default', 5, $label);
- }
- }
- elseif ( xnews_removewholeclone($delPath1) == TRUE )
- {
- $label = sprintf(_AM_XNEWS_CLONER_CLONEDELETED, $del_dirname);
- redirect_header('clonate.php?op=default', 5, $label);
- } else {
- $label = sprintf(_AM_XNEWS_CLONER_CLONEDELETEERR, $del_dirname);
- redirect_header('clonate.php?op=default', 5, $label);
- }
- }
- break;
-}
-
-include "admin_footer.php";
-?>
\ No newline at end of file
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/export.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/export.php~ 2012-01-31 18:04:15 UTC (rev 8847)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/export.php~ 2012-01-31 18:19:00 UTC (rev 8848)
@@ -1,89 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
- * ****************************************************************************
- */
-
-include "admin_header.php";
-xoops_cp_header();
-
- $exportAdmin = new ModuleAdmin();
- echo $exportAdmin->addNavigation("export.php");
-
- global $dateformat;
- $start = isset($_GET['startexp']) ? intval($_GET['startexp']) : 0;
- $expiredcount = $storiesHandler->getAllStoriesCount(1,false);
- $storyarray = $storiesHandler->getAllExpired(xnews_getmoduleoption('storycountadmin', NW_MODULE_DIR_NAME), $start, 0, 1 );
- $pagenav = new XoopsPageNav( $expiredcount, xnews_getmoduleoption('storycountadmin', NW_MODULE_DIR_NAME), $start, 'startexp', 'op=newarticle');
-
- if(count($storyarray) > 0) {
- $class='';
- nw_collapsableBar('expstories', 'topexpstories');
- echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='topexpstories' name='topexpstories' src='" . NW_MODULE_URL . "/images/close12.gif' alt='' /></a> "._AM_NW_EXPARTS."</h4>";
- echo "<div id='expstories'>";
- echo '<br />';
- echo "<div style='text-align: center;'>";
- echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'><tr class='bg3'><td align='center'>" . _AM_NW_STORYID . "</td><td align='center'>" . _AM_NW_TITLE . "</td><td align='center'>" . _AM_NW_TOPIC . "</td><td align='center'>" . _AM_NW_POSTER . "</td><td align='center' class='news'>" . _AM_NW_CREATED . "</td><td align='center' class='news'>" . _AM_NW_EXPIRED . "</td><td align='center'>" . _AM_NW_ACTION . "</td></tr>";
- foreach( $storyarray as $eachstory ) {
- $created = formatTimestamp($eachstory->created(),$dateformat);
- $expired = formatTimestamp($eachstory->expired(),$dateformat);
- $topic = $eachstory -> topic();
- // added exired value field to table
- $class = ($class == 'even') ? 'odd' : 'even';
- echo "<tr class='".$class."'>";
- echo "<td align='center'><b>" . $eachstory -> storyid() . "</b>
- </td><td align='left'><a href='" . NW_MODULE_URL . "/article.php?returnside=1&storyid=" . $eachstory -> storyid() . "'>" . $eachstory -> title() . "</a>
- </td><td align='center'>" . $topic -> topic_title() . "
- </td><td align='center'><a href='" . XOOPS_URL . "/userinfo.php?uid=" . $eachstory -> uid() . "'>" . $eachstory -> uname() . "</a></td><td align='center' class='news'>" . $created . "</td><td align='center' class='news'>" . $expired . "</td><td align='center'><a href='".NW_MODULE_URL . "/submit.php?returnside=1&op=edit&storyid=" . $eachstory -> storyid() . "'>" . _AM_NW_EDIT . "</a>-<a href='".NW_MODULE_URL . "/admin/index.php?op=delete&storyid=" . $eachstory -> storyid() . "'>" . _AM_NW_DELETE . "</a>";
- echo "</td></tr>\n";
- }
- echo '</table><br />';
- echo "<div align='right'>".$pagenav->renderNav().'</div><br />';
- echo "<form action='index.php' method='get'>
- " . _AM_NW_STORYID . " <input type='text' name='storyid' size='10' />
- <select name='op'>
- <option value='edit' selected='selected'>" . _AM_NW_EDIT . "</option>
- <option value='delete'>" . _AM_NW_DELETE . "</option>
- </select>
- <input type='hidden' name='returnside' value='1'>
- <input type='submit' value='" . _AM_NW_GO . "' />
- </form>
- </div>";
- echo '</div><br />';
- }
-
-include "admin_footer.php";
-
-?>
\ No newline at end of file
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/import.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/import.php~ 2012-01-31 18:04:15 UTC (rev 8847)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/import.php~ 2012-01-31 18:19:00 UTC (rev 8848)
@@ -1,401 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
- * ****************************************************************************
- */
-
-include "admin_header.php";
-include_once '../include/functions.php';
-include_once '../class/class.xnewstopic.php';
-include_once '../class/class.xnewsstory.php';
-include_once '../class/class.xnewsimport.php';
-xoops_cp_header();
-
- $importAdmin = new ModuleAdmin();
- echo $importAdmin->addNavigation("import.php");
-
-function NewsImport()
-{
- global $xoopsDB;
- $importfrom = 'none';
- $importto = 'none';
-
- xoops_load('XoopsFormLoader');
-
- // Iterate through installed modules tables for articles, items, category,
- // topics and add them to selectlist
- // This will also find clones
- $news_fieldsearch_array = array(
- 'topic_id',
- 'topic_pid',
- 'banner'
- );
-
- $other_fieldsearch_array = array(
- 'categoryid',
- 'parentid',
- 'moderator'
- );
-
- //Get From Module Data
- $module_handler =& xoops_gethandler('module');
- $installed_mods = $module_handler->getObjects();
- $listed_mods = array();
- $count = 0;
- foreach ( $installed_mods as $module ) {
- if ( $module->getVar('dirname') != 'system' && $module->getVar('isactive') == 1 ) {
- $module->loadInfo($module->getVar('dirname'));
- $modtables = $module->getInfo('tables');
- if ( $modtables != false && is_array($modtables) ) {
- foreach ( $modtables as $table ) {
- $newscount = 0;
- foreach ($news_fieldsearch_array as $field ) {
- if ( xni_fieldexists($field, $xoopsDB->prefix($table)) ) {
- $newscount++;
- }
- }
- if ( $newscount == 2 ) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 1.64)) {
- $importfrom_array["news/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- }
- /*} elseif ($newscount == 3) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 2.0)) {
- $importfrom_array["ams/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- }
- $smartcount = 0;
- foreach ( $other_fieldsearch_array as $field ) {
- if ( xni_fieldexists($field, $xoopsDB->prefix($table)) ) {
- $smartcount++;
- }
- }
- if ( $smartcount == 2 ) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 2.0)) {
- $importfrom_array["smartsection/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- } elseif ($smartcount == 3) {
- $from_module_version = round($module->getVar('version') / 100, 2);
- if (($from_module_version >= 1.0)) {
- $importfrom_array["publisher/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
- }
- }*/
- }
- }
- }
- }
-
- $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_installed = 1");
- $ix = 0;
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- $importto_array[$ix] = $clone['clone_dir'];
- $ix++;
- }
-
- if (isset($importfrom_array) && count($importfrom_array) > 0 && isset($importto_array) && count($importto_array) > 0) {
-
- $sform = new XoopsThemeForm(_AM_XNI_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF'));
- $sform->setExtra('enctype="multipart/form-data"');
-
- // Partners to import from
- $importfrom = new XoopsFormSelect('', 'importfrom', $importfrom);
- $importfrom->addOptionArray($importfrom_array);
- $importfrom_tray = new XoopsFormElementTray(_AM_XNI_IMPORT_FROM , ' ');
- $importfrom_tray->addElement($importfrom);
- $importfrom_tray->setDescription(_AM_XNI_IMPORT_FROM_DSC);
- $sform->addElement($importfrom_tray);
-
- // xNews & clones to import to
- $importto = new XoopsFormSelect('', 'importto', $importto);
- $importto->addOptionArray($importto_array);
- $importto_tray = new XoopsFormElementTray(_AM_XNI_IMPORT_TO_TOPICS , ' ');
- $importto_tray->addElement($importto);
- $importto_tray->setDescription(_AM_XNI_IMPORT_TO_TOPICS_DSC);
- $sform->addElement($importto_tray);
-
- // Buttons
- $button_tray = new XoopsFormElementTray('', '');
- $hidden = new XoopsFormHidden('op', 'topicselect');
- $button_tray->addElement($hidden);
-
- $butt_import = new XoopsFormButton('', '', _AM_XNI_IMPORT, 'submit');
- $butt_import->setExtra('onclick="this.form.elements.op.value=\'topicselect\'"');
- $button_tray->addElement($butt_import);
-
- $butt_cancel = new XoopsFormButton('', '', _AM_XNI_CANCEL, 'button');
- $butt_cancel->setExtra('onclick="this.form.elements.op.value=\'default\'"');
- $button_tray->addElement($butt_cancel);
- $sform->addElement($button_tray);
- $sform->display();
- unset($hidden);
- } else {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_XNI_IMPORT_NO_MODULE . "</span>";
- }
-}
-
-function TopicSelect()
-{
- echo '<script type="text/javascript" src="' . XNI_MODULE_URL . '/js/funcs.js"></script>';
- xoops_load('XoopsFormLoader');
- global $xoopsDB;
-
- $begin = isset($_GET['begin']) ? intval($_GET['begin']) : 0;
- include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
- include_once XOOPS_ROOT_PATH . '/class/xoopstopic.php';
- include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- include_once XOOPS_ROOT_PATH . '/class/tree.php';
- $myts =& MyTextSanitizer::getInstance();
-
- //Detect in out modules and prepare form
- $from_import = (isset($_POST['importfrom'])) ? $_POST['importfrom'] : 'nonselected';
- $to_import_clone_id = (isset($_POST['importto'])) ? $_POST['importto'] : 'nonselected';
-
- $options = explode('/', $from_import);
-
- $from_import_type = $options[0];
- $from_import_dirname = $options[1];
-
- //Get selected xNews module or clone to import to
- $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_installed = 1");
- $ix = 0;
- while ( $clone = $xoopsDB->fetchArray($result) ) {
- $clone_arr[$ix] = $clone;
- $ix++;
- }
-
- $to_import_dirname = $clone_arr[$to_import_clone_id]['clone_dir'];
- $to_subprefix = $clone_arr[$to_import_clone_id]['clone_subprefix'] . "_";
-
- if ($from_import_dirname == $to_import_dirname)
- {
- //REDIRECT IF SAME
- redirect_header('index.php?op=import', 2, "It's not possible to import the same ".$options[1]." module!");
- }
-
- $from_import_type = $options[0];
- $from_import_dirname = $options[1];
-
- $from_topic_id_type = '';
- $from_topic_pid_type = '';
- $from_topic_title_type = '';
- $from_table_name = '';
-
- //GET ALL MODULE-FROM DATA
- $module_handler = &xoops_gethandler('module');
- $from_module = &$module_handler->getByDirname($from_import_dirname);
- $from_module->loadInfo($from_module->getVar('dirname'));
-
- $from_modtables = $from_module->getInfo('tables');
- if ( $from_modtables != false && is_array($from_modtables) ) {
- foreach ( $from_modtables as $from_table ) {
- $from_table_arr = explode('_', $from_table);
- if ( count($from_table_arr) > 0 ) { //&& $from_import_dirname != 'news') {
- if ($from_import_dirname != 'news') {
- $subprefix = $from_table_arr[0] . "_";
- } else {
- $subprefix = '';
- }
- //trigger_error($subprefix . " NEWS ".$from_table_arr[0], E_USER_WARNING);
- switch ($from_import_type) {
- case 'news':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_gettopics($from_subprefix);
- $from_topic_id = 'topic_id';
- $from_topic_pid = 'topic_pid';
- $from_topic_title = 'topic_title';
- $from_topic_table = $from_subprefix . 'topics';
- $from_story_table = $from_subprefix . 'stories';
- break;
- /*case 'ams':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_gettopics($from_subprefix);
- $from_topic_id = 'topic_id';
- $from_topic_pid = 'topic_pid';
- $from_topic_title = 'topic_title';
- $from_topic_table = $from_subprefix . 'topics';
- $from_story_table = $from_subprefix . 'stories';
- break;
- case 'smartsection':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_getcategories($from_subprefix);
- $from_topic_id = 'categoryid';
- $from_topic_pid = 'parentid';
- $from_topic_title = 'name';
- $from_topic_table = $from_subprefix . 'categories';
- $from_story_table = $from_subprefix . 'items';
- break;
- case 'publisher':
- $from_subprefix = $subprefix;
- $from_topics_arr = xni_getcategories($from_subprefix);
- $from_topic_id = 'categoryid';
- $from_topic_pid = 'parentid';
- $from_topic_title = 'name';
- $from_topic_table = $from_subprefix . 'categories';
- $from_story_table = $from_subprefix . 'items';
- break;*/
- }
-
- //trigger_error($from_table_arr[0], E_USER_WARNING);
- }
- }
- }
-
- //------------------------------------------------------------------
-
- $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix($from_topic_table));
- list ($totalCat) = $xoopsDB->fetchRow($result);
-
- if ($totalCat == 0) {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_XNI_IMPORT_NO_CATEGORY . "</span>";
- } else {
-
- $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix($from_story_table));
- list ($totalArticles) = $xoopsDB->fetchRow($result);
-
- if ($totalArticles == 0) {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . sprintf(_AM_XNI_IMPORT_MODULE_FOUND_NO_ITEMS, $from_import_dirname, $totalArticles) . "</span>";
- } else {
- echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . sprintf(_AM_XNI_IMPORT_MODULE_FOUND, $totalArticles, $totalCat, $from_import_dirname) . "</span>";
-
- $form = new XoopsThemeForm(_AM_XNI_IMPORT_SETTINGS, 'import_form', XNI_MODULE_URL . "/admin/import.php");
-
- $table_name = $from_topic_table;
- $topiclist=new XoopsFormSelect(_AM_XNI_IMPORT_FROM_TOPICS, 'from_topics','',5,true);
- $topics_arr=array();
- $xt = new xni_NewsTopic();
- $allTopics = $xt->getAllTopics($table_name, false); // The webmaster can see everything
- $topic_tree = new XoopsObjectTree($allTopics, 'topic_id', 'topic_pid');
- $topics_arr = $topic_tree->getAllChild(0);
- if(count($topics_arr)) {
- foreach ($topics_arr as $onetopic) {
- $topiclist->addOption($onetopic->topic_id(),$onetopic->topic_title());
- }
- }
- $topiclist->setDescription(_AM_XNI_IMPORT_FROM_TOPICS_DSC);
- $form->addElement($topiclist, false);
-
- /*$to_table_name = $to_subprefix . 'topics';
- $to_topiclist=new XoopsFormSelect(_AM_XNI_IMPORT_TO_TOPICS, 'to_topic','',5,false);
- $to_topics_arr=array();
- $to_xt = new xni_NewsTopic();
- $to_allTopics = $to_xt->getAllTopics($to_table_name, false); // The webmaster can see everything
- $to_topic_tree = new XoopsObjectTree($to_allTopics, 'topic_id', 'topic_pid');
- $to_topics_arr = $to_topic_tree->getAllChild(0);
- if(count($to_topics_arr)) {
- foreach ($to_topics_arr as $to_onetopic) {
- $to_topiclist->addOption($to_onetopic->topic_id(),$to_onetopic->topic_title());
- }
- }
- $to_topiclist->setDescription(_AM_XNI_IMPORT_TO_TOPICS_DSC);
- $form->addElement($to_topiclist, false);
- */
- $form->addElement (new XoopsFormHidden('importfromdirname', $from_import_dirname));
- $form->addElement (new XoopsFormHidden('importtodirname', $to_import_dirname));
- $form->addElement (new XoopsFormHidden('importfromsubprefix', $from_subprefix));
- $form->addElement (new XoopsFormHidden('importtosubprefix', $to_subprefix));
-
- $form->addElement (new XoopsFormHidden('op', 'startimport'));
- $form->addElement (new XoopsFormButton ('', 'import', _AM_XNI_IMPORT, 'submit'));
-
- $form->display();
- }
- }
-}
-
-function StartImport()
-{
- global $xoopsDB, $xoopsConfig, $xoopsModule;
-
- if (isset($_POST['importfromdirname']))
- {
- $from_module_dirname = $_POST['importfromdirname'];
- $from_module_subprefix = $_POST['importfromsubprefix'];
- $to_module_dirname = $_POST['importtodirname'];
- $to_module_subprefix = $_POST['importtosubprefix'];
- }
-
- $module_handler =& xoops_gethandler('module');
- $moduleObj = $module_handler->getByDirname($from_module_dirname);
- $news_module_id = $moduleObj->getVar('mid');
-
- $gperm_handler =& xoops_gethandler('groupperm');
-
- $cnt_imported_cat = 0;
- $cnt_imported_articles = 0;
- $cnt_imported_comments = 0;
- $cnt_imported_files = 0;
-
- // If none selected then import all topics
- if (!isset($_POST['from_topics']))
- {
- $resultCat = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . "topics"));
- include_once('importer.php');
- }
- // Import selected topics
- else
- {
- $ftpcs = $_POST['from_topics'];
- $ftpcs = implode("', '", $ftpcs);
- $resultCat = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . "topics") . " WHERE topic_id IN ('".$ftpcs."')");
- include_once('importer.php');
- }
-}
-
-$op = 'none';
-
-if (isset($_GET['op'])) $op = $_GET['op'];
-if (isset($_POST['op'])) $op = $_POST['op'];
-
-switch ($op) {
- case "startimport":
- StartImport();
- break;
- case "topicselect":
- TopicSelect();
- break;
- case "import":
- NewsImport();
- break;
- case "default":
- default:
- NewsImport();
- break;
-}
-include "admin_footer.php";
-?>
\ No newline at end of file
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/importer.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/importer.php~ 2012-01-31 18:04:15 UTC (rev 8847)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/importer.php~ 2012-01-31 18:19:00 UTC (rev 8848)
@@ -1,238 +0,0 @@
-<?php
-/**
-* Module: xNews Import
-* Author: DNPROSSI
-* Licence: GNU
-*/
-
-//DELETE ALL DATA FROM DESTINATION TABLES
-$resultDELETE=$xoopsDB->query("DELETE FROM " . $xoopsDB->prefix($to_module_subprefix . 'topics'));
-$resultDELETE=$xoopsDB->query("DELETE FROM " . $xoopsDB->prefix($to_module_subprefix . 'stories'));
-$resultDELETE=$xoopsDB->query("DELETE FROM " . $xoopsDB->prefix($to_module_subprefix . 'stories_files'));
-$resultDELETE=$xoopsDB->query("DELETE FROM " . $xoopsDB->prefix($to_module_subprefix . 'stories_votedata'));
-//RESET ALL TABLE AUTOINCREMENT VALUES
-$resultALTER=$xoopsDB->query("ALTER TABLE " . $xoopsDB->prefix($to_module_subprefix . 'topics') . " AUTO_INCREMENT = 1");
-$resultALTER=$xoopsDB->query("ALTER TABLE " . $xoopsDB->prefix($to_module_subprefix . 'stories') . " AUTO_INCREMENT = 1");
-$resultALTER=$xoopsDB->query("ALTER TABLE " . $xoopsDB->prefix($to_module_subprefix . 'stories_files') . " AUTO_INCREMENT = 1");
-$resultALTER=$xoopsDB->query("ALTER TABLE " . $xoopsDB->prefix($to_module_subprefix . 'stories_votedata') . " AUTO_INCREMENT = 1");
-
-$newArticleArray = array();
-
-while ($arrCat = $xoopsDB->fetchArray($resultCat))
-{
- $topic = new xni_NewsTopic(0, $to_module_subprefix);
-
- $topic->topic_pid = $arrCat['topic_pid'];
- $topic->topic_title = $arrCat['topic_title'];
- $topic->topic_description = $arrCat['topic_description'];
- $topic->menu = $arrCat['menu'];
- $topic->topic_frontpage = $arrCat['topic_frontpage'];
- $topic->topic_rssurl = $arrCat['topic_rssurl'];
- $topic->topic_color = $arrCat['topic_color'];
- //DNPROSSI - Added for version 1.69
- if ( isset($arrCat['topic_weight'] ) ) { $topic->topic_weight = $arrCat['topic_weigth']; }
-
- if ($from_module_dirname == 'news')
- {
- $sourcepath = XOOPS_ROOT_PATH . '/modules/'.$from_module_dirname.'/images/topics/';
- $destinationpath = XOOPS_ROOT_PATH . '/uploads/'.$to_module_dirname.'/topics/';
- }
- else
- {
- $sourcepath = XOOPS_ROOT_PATH . '/uploads/'.$from_module_dirname.'/topics/';
- $destinationpath = XOOPS_ROOT_PATH . '/uploads/'.$to_module_dirname.'/topics/';
- }
-
- // Category image
- if ( ($arrCat['topic_imgurl'] != 'blank.gif') && ($arrCat['topic_imgurl'] != '') )
- {
- if ($arrCat['topic_imgurl'] == 'xoops.gif')
- {
- $topic->topic_imgurl = $arrCat['topic_imgurl'];
- }
- else
- {
- if ( copy($sourcepath . $arrCat['topic_imgurl'], $destinationpath . $arrCat['topic_imgurl']) )
- {
- $topic->topic_imgurl = $arrCat['topic_imgurl'];
- echo sprintf(_AM_XNI_IMPORTED_FILE, $topic->topic_imgurl()) . "<br />";
- $cnt_imported_files++;
- }
- }
- }
-
- $idresult = $xoopsDB->query("SHOW TABLE STATUS LIKE '" . $xoopsDB->prefix($to_module_subprefix . 'topics') . "'");
- $row = $xoopsDB->fetchArray($idresult);
- $auto_increment = $row['Auto_increment'];
-
- //trigger_error(intval($auto_increment -1) , E_USER_WARNING);
- if (!$topic->store($topic))
- {
- echo sprintf(_AM_XNI_IMPORT_CATEGORY_ERROR, $arrCat['topic_title']) . "<br/>";
- continue;
- }
-
- // Saving topic permissions
- if ($from_module_dirname == 'news')
- {
- $groupsIds = $gperm_handler->getGroupIds('news_approve', $arrCat['topic_id'], $news_module_id);
- xni_savePermissions($to_module_dirname, $groupsIds, $topic->topic_id(), $to_module_subprefix . 'approve');
- $groupsIds = $gperm_handler->getGroupIds('news_view', $arrCat['topic_id'], $news_module_id);
- xni_savePermissions($to_module_dirname, $groupsIds, $topic->topic_id(), $to_module_subprefix . 'view');
- $groupsIds = $gperm_handler->getGroupIds('news_submit', $arrCat['topic_id'], $news_module_id);
- xni_savePermissions($to_module_dirname, $groupsIds, $topic->topic_id(), $to_module_subprefix . 'submit');
- // echo intval($topic->topic_id()) . '<br/>';
- }
- else
- {
- $groupsIds = $gperm_handler->getGroupIds($from_module_subprefix . 'approve', $arrCat['topic_id'], $news_module_id);
- xni_savePermissions($to_module_dirname, $groupsIds, $topic->topic_id(), $to_module_subprefix . 'approve');
- $groupsIds = $gperm_handler->getGroupIds($from_module_subprefix . 'view', $arrCat['topic_id'], $news_module_id);
- xni_savePermissions($to_module_dirname, $groupsIds, $topic->topic_id(), $to_module_subprefix . 'view');
- $groupsIds = $gperm_handler->getGroupIds($from_module_subprefix . 'submit', $arrCat['topic_id'], $news_module_id);
- xni_savePermissions($to_module_dirname, $groupsIds, $topic->topic_id(), $to_module_subprefix . 'submit');
- }
-
- $cnt_imported_cat++;
-
- echo sprintf(_AM_XNI_IMPORT_CATEGORY_SUCCESS, $topic->topic_title());
-
- $sql = "SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . 'stories') . " WHERE topicid=" . $arrCat['topic_id'];
- $resultArticles = $xoopsDB->query($sql);
- while ($arrArticle = $xoopsDB->fetchArray($resultArticles))
- {
- // Insert article
- $story =new xni_NewsStory(-1, $to_module_subprefix);
-
- $story->uid = $arrArticle['uid'];
- $story->title = $arrArticle['title'];
- $story->created = $arrArticle['created'];
- $story->published = $arrArticle['published'];
- $story->expired = $arrArticle['expired'];
- $story->hostname = $arrArticle['hostname'];
- $story->nohtml = $arrArticle['nohtml'];
- $story->nosmiley = $arrArticle['nosmiley'];
- $story->hometext = $arrArticle['hometext'];
- $story->bodytext = $arrArticle['bodytext'];
- $story->keywords = $arrArticle['keywords']; //META
- $story->description = $arrArticle['description']; //META
- $story->counter = $arrArticle['counter'];
- $story->topicid = $auto_increment; //$arrArticle['topicid'];
- $story->ihome = $arrArticle['ihome'];
- $story->notifypub = $arrArticle['notifypub'];
- $story->story_type = $arrArticle['story_type'];
- $story->topicdisplay = $arrArticle['topicdisplay'];
- $story->topicalign = $arrArticle['topicalign'];
- $story->comments = $arrArticle['comments'];
- $story->rating = $arrArticle['rating'];
- $story->votes = $arrArticle['votes'];
- $story->picture = $arrArticle['picture'];
- if ( isset($arrArticle['dobr']) ) { $story->dobr = $arrArticle['dobr']; }
- if ( isset($arrArticle['tags']) ) { $story->tags = $arrArticle['tags']; }
-
- // Picture
- if ( ($arrArticle['picture'] != '') )
- {
- if ( copy($sourcepath . $arrArticle['picture'], $destinationpath . $arrArticle['picture']) )
- {
- $story->picture = $arrArticle['picture'];
- echo sprintf(_AM_XNI_IMPORTED_FILE, $story->picture()) . "<br />";
- $cnt_imported_files++;
- }
- }
-
- // Attached files
- if ($from_module_dirname == 'news')
- {
- $attached_sourcepath = XOOPS_ROOT_PATH . '/uploads/';
- $attached_destinationpath = XOOPS_ROOT_PATH . '/uploads/'.$to_module_dirname.'/attached/';
- }
- else
- {
- $attached_sourcepath = XOOPS_ROOT_PATH . '/uploads/'.$from_module_dirname.'/attached/';
- $attached_destinationpath = XOOPS_ROOT_PATH . '/uploads/'.$to_module_dirname.'/attached/';
- }
-
- $sql = "SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . 'stories_files') . " WHERE storyid=" . $arrArticle['storyid'];
- $resultfiles = $xoopsDB->query($sql);
- while ($arrFiles = $xoopsDB->fetchArray($resultfiles))
- {
- $result = $xoopsDB->query("INSERT INTO " . $xoopsDB->prefix($to_module_subprefix . 'stories_files') .
- " (file_realname, files_storyid, files_date, files_mimetype, files_downloadname, files_counter)" .
- " VALUES ('" . $arrFiles['file_realname'] . "', '" .
- $arrFiles['files_storyid'] . "', '" .
- $arrFiles['files_date'] . "', '" .
- $arrFiles['files_mimetype'] . "', '" .
- $arrFiles['files_downloadname'] . "', '" .
- $arrFiles['files_counter'] . "'); ");
- if ( copy($attached_sourcepath . $arrFiles['files_downloadname'], $attached_destinationpath . $arrFiles['files_downloadname']) )
- {
- echo sprintf(_AM_XNI_IMPORTED_FILE, $arrFiles['files_downloadname']) . "<br />";
- $cnt_imported_files++;
- }
- }
-
- // Vote Data
- $sql = "SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . 'stories_votedata') . " WHERE storyid=" . $arrArticle['storyid'];
- $resultvotes = $xoopsDB->query($sql);
- while ($arrVotes = $xoopsDB->fetchArray($resultvotes))
- {
- $result = $xoopsDB->query("INSERT INTO " . $xoopsDB->prefix($to_module_subprefix . 'stories_votedata') .
- " (votedata_storyid, votedata_ratinguser, votedata_rating, votedata_ratinghostname, votedata_ratingtimestamp)" .
- " VALUES ('" . $arrVotes['votedata_storyid'] . "', '" .
- $arrVotes['votedata_ratinguser'] . "', '" .
- $arrVotes['votedata_rating'] . "', '" .
- $arrVotes['votedata_ratinghostname'] . "', '" .
- $arrVotes['votedata_ratingtimestamp'] . "'); ");
- }
-
- // Save story
- $storyPublished = $arrArticle['published'] != 0 ? $story->setApproved(1) : $story->setApproved(0);
- if ( !$story->store() )
- {
- echo sprintf(" " . _AM_XNI_IMPORT_ARTICLE_ERROR, $arrArticle['title']) . "<br/>";
- continue;
- }
- else
- {
- $newArticleArray[$arrArticle['storyid']] = $story->storyid();
- echo sprintf(_AM_XNI_IMPORTED_ARTICLE, $story->title()) . "<br />";
- $cnt_imported_articles++;
- }
- }
-}
-
-// Looping through the comments to link them to the new articles and module
-//echo _AM_XNI_IMPORT_COMMENTS . "<br />";
-$module_handler =& xoops_gethandler('module');
-$moduleObj = $module_handler->getByDirname($to_module_dirname);
-$module_id = $moduleObj->getVar('mid');
-
-$comment_handler = xoops_gethandler('comment');
-$criteria = new CriteriaCompo();
-$criteria->add(new Criteria('com_modid', $news_module_id));
-$comments = $comment_handler->getObjects($criteria);
-foreach ($comments as $comment)
-{
- $comment->setVar('com_itemid', $newArticleArray[$comment->getVar('com_itemid')]);
- $comment->setVar('com_modid', $module_id);
- $comment->setNew();
- if (!$comment_handler->insert($comment))
- {
- echo sprintf(_AM_XNI_IMPORTED_COMMENT_ERROR, $comment->getVar('com_title')) . "<br />";
- }
- else
- {
- echo sprintf(_AM_XNI_IMPORTED_COMMENT, $comment->getVar('com_title')) . "<br />";
- $cnt_imported_comments++;
- }
-}
-
-echo "<br/><br/>Done.<br/>";
-echo sprintf(_AM_XNI_IMPORTED_CATEGORIES, $cnt_imported_cat) . "<br/>";
-echo sprintf(_AM_XNI_IMPORTED_ARTICLES, $cnt_imported_articles) . "<br/>";
-echo sprintf(_AM_XNI_IMPORTED_FILES, $cnt_imported_files) . "<br/>";
-echo sprintf(_AM_XNI_IMPORTED_COMMENTS, $cnt_imported_comments) . "<br/>";
-echo "<br/><a href='". XOOPS_URL . "/modules/" . $to_module_dirname ."/index.php'>" . _AM_XNI_IMPORT_GOTOMODULE . "</a><br/>";
-
-?>
Deleted: XoopsModules/xnews/trunk/timgno/xnews/admin/index.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/index.php~ 2012-01-31 18:04:15 UTC (rev 8847)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/index.php~ 2012-01-31 18:19:00 UTC (rev 8848)
@@ -1,80 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - Original Copyright (TDM)
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
- * ****************************************************************************
- * XNEWS - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2011
- * TXMod Xoops (http://www.txmodxoops.org)
- *
- * 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.
- *
- * ------------------------------------------------------------------------
- *
- * @copyright TXMod Xoops (http://www.txmodxoops.org)
- * @license GPL see LICENSE
- * @package xnews
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
- * ****************************************************************************
- */
-
-include "admin_header.php";
-xoops_cp_header();
-
- $indexAdmin = new ModuleAdmin();
-
- //compte "total"
- $count_stories = $storiesHandler->getCount();
- //compte "attente"
- $criteria = new CriteriaCompo();
- $criteria->add(new Criteria("stories_online", 1));
- $stories_online = $storiesHandler->getCount($criteria);
-
- //compte "total"
- $count_topics = $topicsHandler->getCount();
- //compte "attente"
- $criteria = new CriteriaCompo();
- $criteria->add(new Criteria("topics_online", 1));
- $topics_online = $topicsHandler->getCount($criteria);
-
- $clr_count_stories = ($count_stories == 0) ? 'red': 'green';
- $clr_count_topics = ($count_topics == 0) ? 'red': 'green';
- $clr_online_stories = ($stories_online == 0) ? 'red': 'green';
- $clr_online_topics = ($topics_online == 0) ? 'red': 'green';
- //$clr_imported_topics = ($imported_online == 0) ? 'red': 'green';
- //$clr_imported_stories = ($imported_online == 0) ? 'red': 'green';
- //$clr_exported_stories = ($exported_online == 0) ? 'red': 'green';
-
- $indexAdmin->addInfoBox(_AM_XNEWS_STATISTICS);
- $indexAdmin->addInfoBoxLine(_AM_XNEWS_STATISTICS,_AM_XNEWS_THEREARE_TOPICS, $count_topics, $clr_count_topics);
- $indexAdmin->a...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 18:04:25
|
Revision: 8847
http://xoops.svn.sourceforge.net/xoops/?rev=8847&view=rev
Author: txmodxoops
Date: 2012-01-31 18:04:15 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Added Paths:
-----------
XoopsModules/xnews/trunk/timgno/xnews/
XoopsModules/xnews/trunk/timgno/xnews/.htaccess
XoopsModules/xnews/trunk/timgno/xnews/admin/
XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php
XoopsModules/xnews/trunk/timgno/xnews/admin/about.php
XoopsModules/xnews/trunk/timgno/xnews/admin/admin_footer.php
XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php
XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php
XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/cloner.php
XoopsModules/xnews/trunk/timgno/xnews/admin/export.php
XoopsModules/xnews/trunk/timgno/xnews/admin/export.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/functions.php
XoopsModules/xnews/trunk/timgno/xnews/admin/header.php
XoopsModules/xnews/trunk/timgno/xnews/admin/import.php
XoopsModules/xnews/trunk/timgno/xnews/admin/import.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/import_ams.php
XoopsModules/xnews/trunk/timgno/xnews/admin/import_news.php
XoopsModules/xnews/trunk/timgno/xnews/admin/import_publisher.php
XoopsModules/xnews/trunk/timgno/xnews/admin/import_smartsection.php
XoopsModules/xnews/trunk/timgno/xnews/admin/import_wfsection.php
XoopsModules/xnews/trunk/timgno/xnews/admin/importer.php
XoopsModules/xnews/trunk/timgno/xnews/admin/importer.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/index.html
XoopsModules/xnews/trunk/timgno/xnews/admin/index.php
XoopsModules/xnews/trunk/timgno/xnews/admin/index.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/menu.php
XoopsModules/xnews/trunk/timgno/xnews/admin/menu.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/metas.php
XoopsModules/xnews/trunk/timgno/xnews/admin/newsletter.php
XoopsModules/xnews/trunk/timgno/xnews/admin/newsletter.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/permissions.php
XoopsModules/xnews/trunk/timgno/xnews/admin/permissions.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/statistics.php
XoopsModules/xnews/trunk/timgno/xnews/admin/stories.php
XoopsModules/xnews/trunk/timgno/xnews/admin/stories.php~
XoopsModules/xnews/trunk/timgno/xnews/admin/stories_files.php
XoopsModules/xnews/trunk/timgno/xnews/admin/stories_votedata.php
XoopsModules/xnews/trunk/timgno/xnews/admin/topics.php
XoopsModules/xnews/trunk/timgno/xnews/admin/topics.php~
XoopsModules/xnews/trunk/timgno/xnews/archive.php
XoopsModules/xnews/trunk/timgno/xnews/article.php
XoopsModules/xnews/trunk/timgno/xnews/backendt.php
XoopsModules/xnews/trunk/timgno/xnews/blocks/
XoopsModules/xnews/trunk/timgno/xnews/blocks/index.html
XoopsModules/xnews/trunk/timgno/xnews/cgi-bin/
XoopsModules/xnews/trunk/timgno/xnews/class/
XoopsModules/xnews/trunk/timgno/xnews/class/blacklist.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.latestnews.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.mimetype.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.newsstory.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.newsstory.php~
XoopsModules/xnews/trunk/timgno/xnews/class/class.newstopic.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.newstopic.php~
XoopsModules/xnews/trunk/timgno/xnews/class/class.objecthandler.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.sfiles.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.sfiles.php~
XoopsModules/xnews/trunk/timgno/xnews/class/class.xnewsimport.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.xnewsstory.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.xnewstopic.php
XoopsModules/xnews/trunk/timgno/xnews/class/class.xnewstopic.php~
XoopsModules/xnews/trunk/timgno/xnews/class/index.html
XoopsModules/xnews/trunk/timgno/xnews/class/keyhighlighter.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/menu.php
XoopsModules/xnews/trunk/timgno/xnews/class/object.php
XoopsModules/xnews/trunk/timgno/xnews/class/registryfile.php
XoopsModules/xnews/trunk/timgno/xnews/class/stories.php~
XoopsModules/xnews/trunk/timgno/xnews/class/stories_files.php~
XoopsModules/xnews/trunk/timgno/xnews/class/topics.php~
XoopsModules/xnews/trunk/timgno/xnews/class/tree.php
XoopsModules/xnews/trunk/timgno/xnews/class/tree.php~
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/Canvas.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/Dimension.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/Exception.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/FileMapperFactory.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/Image.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/OpFactory.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/PaletteImage.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/TrueColorImage.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/WideImage.inc.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/fonts/
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/fonts/Font_GDF.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/fonts/Font_TTF.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/mappers/
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/mappers/ImageFileMapper_GD.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/mappers/ImageFileMapper_GD2.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/mappers/ImageFileMapper_GIF.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/mappers/ImageFileMapper_JPEG.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/mappers/ImageFileMapper_PNG.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/ApplyConvolution.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/ApplyFilter.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/ApplyMask.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/AsGrayscale.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/CopyChannelsPalette.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/CopyChannelsTrueColor.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/CorrectGamma.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Crop.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Flip.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/GetMask.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Merge.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Mirror.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Resize.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Rotate.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/wideimage/operations/Unsharp.class.php
XoopsModules/xnews/trunk/timgno/xnews/class/xnews_stories.php
XoopsModules/xnews/trunk/timgno/xnews/class/xnews_stories.php~
XoopsModules/xnews/trunk/timgno/xnews/class/xnews_stories_files.php
XoopsModules/xnews/trunk/timgno/xnews/class/xnews_stories_votedata.php
XoopsModules/xnews/trunk/timgno/xnews/class/xnews_topics.php
XoopsModules/xnews/trunk/timgno/xnews/comment_delete.php
XoopsModules/xnews/trunk/timgno/xnews/comment_edit.php
XoopsModules/xnews/trunk/timgno/xnews/comment_new.php
XoopsModules/xnews/trunk/timgno/xnews/comment_post.php
XoopsModules/xnews/trunk/timgno/xnews/comment_reply.php
XoopsModules/xnews/trunk/timgno/xnews/config.php
XoopsModules/xnews/trunk/timgno/xnews/css/
XoopsModules/xnews/trunk/timgno/xnews/css/index.html
XoopsModules/xnews/trunk/timgno/xnews/docs/
XoopsModules/xnews/trunk/timgno/xnews/docs/changelog.txt
XoopsModules/xnews/trunk/timgno/xnews/docs/credits.txt
XoopsModules/xnews/trunk/timgno/xnews/docs/index.html
XoopsModules/xnews/trunk/timgno/xnews/docs/install.txt
XoopsModules/xnews/trunk/timgno/xnews/docs/lang_diff.txt
XoopsModules/xnews/trunk/timgno/xnews/docs/licence.txt
XoopsModules/xnews/trunk/timgno/xnews/docs/readme.txt
XoopsModules/xnews/trunk/timgno/xnews/docs/root.htaccess
XoopsModules/xnews/trunk/timgno/xnews/docs/xnews_stories.php
XoopsModules/xnews/trunk/timgno/xnews/docs/xnews_stories_files.php
XoopsModules/xnews/trunk/timgno/xnews/docs/xnews_stories_votedata.php
XoopsModules/xnews/trunk/timgno/xnews/docs/xnews_topics.php
XoopsModules/xnews/trunk/timgno/xnews/header.php
XoopsModules/xnews/trunk/timgno/xnews/images/
XoopsModules/xnews/trunk/timgno/xnews/images/deco/
XoopsModules/xnews/trunk/timgno/xnews/images/deco/about.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/arrow.gif
XoopsModules/xnews/trunk/timgno/xnews/images/deco/blank.gif
XoopsModules/xnews/trunk/timgno/xnews/images/deco/delete.gif
XoopsModules/xnews/trunk/timgno/xnews/images/deco/edit.gif
XoopsModules/xnews/trunk/timgno/xnews/images/deco/index.html
XoopsModules/xnews/trunk/timgno/xnews/images/deco/index.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/off.gif
XoopsModules/xnews/trunk/timgno/xnews/images/deco/on.gif
XoopsModules/xnews/trunk/timgno/xnews/images/deco/permissions.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/pref.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/stories.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/stories_search.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/stories_votedata.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/topics.png
XoopsModules/xnews/trunk/timgno/xnews/images/deco/update.png
XoopsModules/xnews/trunk/timgno/xnews/images/index.html
XoopsModules/xnews/trunk/timgno/xnews/images/menu/
XoopsModules/xnews/trunk/timgno/xnews/images/menu/bg.png
XoopsModules/xnews/trunk/timgno/xnews/images/menu/index.html
XoopsModules/xnews/trunk/timgno/xnews/images/menu/left_both.png
XoopsModules/xnews/trunk/timgno/xnews/images/menu/right_both.png
XoopsModules/xnews/trunk/timgno/xnews/images/xnews_slogo.png
XoopsModules/xnews/trunk/timgno/xnews/include/
XoopsModules/xnews/trunk/timgno/xnews/include/functions.php
XoopsModules/xnews/trunk/timgno/xnews/include/index.html
XoopsModules/xnews/trunk/timgno/xnews/include/install.php
XoopsModules/xnews/trunk/timgno/xnews/include/search.inc.php
XoopsModules/xnews/trunk/timgno/xnews/include/static_var.php
XoopsModules/xnews/trunk/timgno/xnews/include/storyform.inc.php
XoopsModules/xnews/trunk/timgno/xnews/include/storyform.original.php
XoopsModules/xnews/trunk/timgno/xnews/index.php
XoopsModules/xnews/trunk/timgno/xnews/js/
XoopsModules/xnews/trunk/timgno/xnews/js/funcs.js
XoopsModules/xnews/trunk/timgno/xnews/js/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/
XoopsModules/xnews/trunk/timgno/xnews/language/english/
XoopsModules/xnews/trunk/timgno/xnews/language/english/admin.php
XoopsModules/xnews/trunk/timgno/xnews/language/english/blocks.php
XoopsModules/xnews/trunk/timgno/xnews/language/english/help/
XoopsModules/xnews/trunk/timgno/xnews/language/english/help/help.html
XoopsModules/xnews/trunk/timgno/xnews/language/english/help/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/english/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/category_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/global_newcategory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/global_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/global_storysubmit_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/story_approve_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/english/mail_template/topic_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/english/main.php
XoopsModules/xnews/trunk/timgno/xnews/language/english/modinfo.php
XoopsModules/xnews/trunk/timgno/xnews/language/french/
XoopsModules/xnews/trunk/timgno/xnews/language/french/admin.php
XoopsModules/xnews/trunk/timgno/xnews/language/french/blocks.php
XoopsModules/xnews/trunk/timgno/xnews/language/french/help/
XoopsModules/xnews/trunk/timgno/xnews/language/french/help/help.html
XoopsModules/xnews/trunk/timgno/xnews/language/french/help/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/french/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/category_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/global_newcategory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/global_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/global_storysubmit_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/story_approve_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/french/mail_template/topic_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/french/main.php
XoopsModules/xnews/trunk/timgno/xnews/language/french/modinfo.php
XoopsModules/xnews/trunk/timgno/xnews/language/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/italian/
XoopsModules/xnews/trunk/timgno/xnews/language/italian/admin.php
XoopsModules/xnews/trunk/timgno/xnews/language/italian/admin.php~
XoopsModules/xnews/trunk/timgno/xnews/language/italian/blocks.php
XoopsModules/xnews/trunk/timgno/xnews/language/italian/help/
XoopsModules/xnews/trunk/timgno/xnews/language/italian/help/help.html
XoopsModules/xnews/trunk/timgno/xnews/language/italian/help/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/italian/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/category_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/global_newcategory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/global_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/global_storysubmit_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/index.html
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/story_approve_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/italian/mail_template/topic_newstory_notify.tpl
XoopsModules/xnews/trunk/timgno/xnews/language/italian/main.php
XoopsModules/xnews/trunk/timgno/xnews/language/italian/modinfo.php
XoopsModules/xnews/trunk/timgno/xnews/language/italian/modinfo.php~
XoopsModules/xnews/trunk/timgno/xnews/list.tag.php
XoopsModules/xnews/trunk/timgno/xnews/makepdf.php
XoopsModules/xnews/trunk/timgno/xnews/micro_summary.php
XoopsModules/xnews/trunk/timgno/xnews/newsbythisauthor.php
XoopsModules/xnews/trunk/timgno/xnews/notification_update.php
XoopsModules/xnews/trunk/timgno/xnews/print.php
XoopsModules/xnews/trunk/timgno/xnews/ratenews.php
XoopsModules/xnews/trunk/timgno/xnews/seo.php
XoopsModules/xnews/trunk/timgno/xnews/sql/
XoopsModules/xnews/trunk/timgno/xnews/sql/index.html
XoopsModules/xnews/trunk/timgno/xnews/sql/mysql.sql
XoopsModules/xnews/trunk/timgno/xnews/sql/x_mysql.sql
XoopsModules/xnews/trunk/timgno/xnews/submit.php
XoopsModules/xnews/trunk/timgno/xnews/templates/
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/index.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_archives.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_bigstory.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_latestnews.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_moderate.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_randomnews.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_top.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_topicnav.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_block_topics.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_tag_block_cloud.html
XoopsModules/xnews/trunk/timgno/xnews/templates/blocks/xnews_tag_block_top.html
XoopsModules/xnews/trunk/timgno/xnews/templates/index.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_archive.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_article.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_article_pdf.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_by_this_author.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_by_topic.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_index.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_item.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_item_pdf.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_ratenews.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_rss.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_topics_directory.html
XoopsModules/xnews/trunk/timgno/xnews/templates/xnews_whos_who.html
XoopsModules/xnews/trunk/timgno/xnews/topics_directory.php
XoopsModules/xnews/trunk/timgno/xnews/view.tag.php
XoopsModules/xnews/trunk/timgno/xnews/visit.php
XoopsModules/xnews/trunk/timgno/xnews/whoswho.php
XoopsModules/xnews/trunk/timgno/xnews/xoops_version.php
Added: XoopsModules/xnews/trunk/timgno/xnews/.htaccess
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/.htaccess (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/.htaccess 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,10 @@
+## Copy htaccess file to your module root dir and rename to .htaccess
+
+RewriteEngine On
+## xnews - begin ##
+RewriteCond %{request_uri} !^/xnews/([a-z\x2D]+)\.([a-z]+)\.([0-9.]+)
+RewriteRule ^([a-z\x2D]+)\.([a-z]+)\.([0-9.]+)/ ?seoOp=$2&seoArg=$3 [L,NC,QSA]
+
+RewriteCond %{request_uri} !^/xnews/([a-z]+)\.([0-9.]+)
+RewriteRule ^([a-z]+)\.([0-9.]+)/ ?seoOp=$1&seoArg=$2 [L,NC,QSA]
+## xnews - endRewriteCond %{HTTP_REFERER} !^$
\ No newline at end of file
Added: XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/Copia di index.php 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,394 @@
+<?php
+/**
+* Module: xNews Import
+* Author: DNPROSSI
+* Licence: GNU
+*/
+
+include_once dirname(__FILE__) . "/header.php";
+include_once '../../../include/cp_header.php';
+include_once XNI_MODULE_PATH . '/include/functions.php';
+include_once XNI_MODULE_PATH . '/admin/functions.php';
+include_once XNI_MODULE_PATH . '/class/class.newstopic.php';
+include_once XNI_MODULE_PATH . '/class/class.newsstory.php';
+include_once XNI_MODULE_PATH . '/class/class.xnewsimport.php';
+
+function NewsImport()
+{
+ global $xoopsDB;
+ xoops_cp_header();
+ $importfrom = 'none';
+ $importto = 'none';
+
+ adminMenu(0, _AM_XNI_IMPORT);
+
+ echo "<h1>" . _AM_XNI_IMPORT_TITLE . "</h1>";
+ echo _AM_XNI_IMPORT_INFO . "<br /><br />";
+
+ xoops_load('XoopsFormLoader');
+
+ // Iterate through installed modules tables for articles, items, category,
+ // topics and add them to selectlist
+ // This will also find clones
+ $news_fieldsearch_array = array(
+ 'topic_id',
+ 'topic_pid',
+ 'banner'
+ );
+
+ $other_fieldsearch_array = array(
+ 'categoryid',
+ 'parentid',
+ 'moderator'
+ );
+
+ //Get From Module Data
+ $module_handler =& xoops_gethandler('module');
+ $installed_mods = $module_handler->getObjects();
+ $listed_mods = array();
+ $count = 0;
+ foreach ( $installed_mods as $module ) {
+ if ( $module->getVar('dirname') != 'system' && $module->getVar('isactive') == 1 ) {
+ $module->loadInfo($module->getVar('dirname'));
+ $modtables = $module->getInfo('tables');
+ if ( $modtables != false && is_array($modtables) ) {
+ foreach ( $modtables as $table ) {
+ $newscount = 0;
+ foreach ($news_fieldsearch_array as $field ) {
+ if ( xni_fieldexists($field, $xoopsDB->prefix($table)) ) {
+ $newscount++;
+ }
+ }
+ if ( $newscount == 2 ) {
+ $from_module_version = round($module->getVar('version') / 100, 2);
+ if (($from_module_version >= 1.64)) {
+ $importfrom_array["news/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
+ }
+ }
+ /*} elseif ($newscount == 3) {
+ $from_module_version = round($module->getVar('version') / 100, 2);
+ if (($from_module_version >= 2.0)) {
+ $importfrom_array["ams/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
+ }
+ }
+ $smartcount = 0;
+ foreach ( $other_fieldsearch_array as $field ) {
+ if ( xni_fieldexists($field, $xoopsDB->prefix($table)) ) {
+ $smartcount++;
+ }
+ }
+ if ( $smartcount == 2 ) {
+ $from_module_version = round($module->getVar('version') / 100, 2);
+ if (($from_module_version >= 2.0)) {
+ $importfrom_array["smartsection/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
+ }
+ } elseif ($smartcount == 3) {
+ $from_module_version = round($module->getVar('version') / 100, 2);
+ if (($from_module_version >= 1.0)) {
+ $importfrom_array["publisher/" . $module->getVar('dirname')] = $module->getVar('dirname') . " " . $from_module_version;
+ }
+ }*/
+ }
+ }
+ }
+ }
+
+ $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_installed = 1");
+ $ix = 0;
+ while ( $clone = $xoopsDB->fetchArray($result) ) {
+ $importto_array[$ix] = $clone['clone_dir'];
+ $ix++;
+ }
+
+ if (isset($importfrom_array) && count($importfrom_array) > 0 && isset($importto_array) && count($importto_array) > 0) {
+
+ $sform = new XoopsThemeForm(_AM_XNI_IMPORT_SELECTION, "op", xoops_getenv('PHP_SELF'));
+ $sform->setExtra('enctype="multipart/form-data"');
+
+ // Partners to import from
+ $importfrom = new XoopsFormSelect('', 'importfrom', $importfrom);
+ $importfrom->addOptionArray($importfrom_array);
+ $importfrom_tray = new XoopsFormElementTray(_AM_XNI_IMPORT_FROM , ' ');
+ $importfrom_tray->addElement($importfrom);
+ $importfrom_tray->setDescription(_AM_XNI_IMPORT_FROM_DSC);
+ $sform->addElement($importfrom_tray);
+
+ // xNews & clones to import to
+ $importto = new XoopsFormSelect('', 'importto', $importto);
+ $importto->addOptionArray($importto_array);
+ $importto_tray = new XoopsFormElementTray(_AM_XNI_IMPORT_TO , ' ');
+ $importto_tray->addElement($importto);
+ $importto_tray->setDescription(_AM_XNI_IMPORT_TO_DSC);
+ $sform->addElement($importto_tray);
+
+ // Buttons
+ $button_tray = new XoopsFormElementTray('', '');
+ $hidden = new XoopsFormHidden('op', 'topicselect');
+ $button_tray->addElement($hidden);
+
+ $butt_import = new XoopsFormButton('', '', _AM_XNI_IMPORT, 'submit');
+ $butt_import->setExtra('onclick="this.form.elements.op.value=\'topicselect\'"');
+ $button_tray->addElement($butt_import);
+
+ $butt_cancel = new XoopsFormButton('', '', _AM_XNI_CANCEL, 'button');
+ $butt_cancel->setExtra('onclick="history.go(-1)"');
+ $button_tray->addElement($butt_cancel);
+ $sform->addElement($button_tray);
+ $sform->display();
+ unset($hidden);
+ } else {
+ echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_XNI_IMPORT_NO_MODULE . "</span>";
+ }
+}
+
+function TopicSelect()
+{
+ xoops_cp_header();
+ echo '<script type="text/javascript" src="' . XNI_MODULE_URL . '/js/funcs.js"></script>';
+ xoops_load('XoopsFormLoader');
+
+ adminMenu(0, _AM_XNI_IMPORT);
+ global $xoopsDB;
+
+ $begin = isset($_GET['begin']) ? intval($_GET['begin']) : 0;
+ include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
+ include_once XOOPS_ROOT_PATH . '/class/xoopstopic.php';
+ include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ include_once XOOPS_ROOT_PATH . '/class/tree.php';
+ $myts =& MyTextSanitizer::getInstance();
+
+ //Detect in out modules and prepare form
+ $from_import = (isset($_POST['importfrom'])) ? $_POST['importfrom'] : 'nonselected';
+ $to_import_clone_id = (isset($_POST['importto'])) ? $_POST['importto'] : 'nonselected';
+
+ $options = explode('/', $from_import);
+
+ $from_import_type = $options[0];
+ $from_import_dirname = $options[1];
+
+ //Get selected xNews module or clone to import to
+ $result = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_installed = 1");
+ $ix = 0;
+ while ( $clone = $xoopsDB->fetchArray($result) ) {
+ $clone_arr[$ix] = $clone;
+ $ix++;
+ }
+
+ $to_import_dirname = $clone_arr[$to_import_clone_id]['clone_dir'];
+ $to_subprefix = $clone_arr[$to_import_clone_id]['clone_subprefix'] . "_";
+
+ if ($from_import_dirname == $to_import_dirname)
+ {
+ //REDIRECT IF SAME
+ redirect_header('index.php?op=import', 2, "It's not possible to import the same ".$options[1]." module!");
+ }
+
+ $from_import_type = $options[0];
+ $from_import_dirname = $options[1];
+
+ $from_topic_id_type = '';
+ $from_topic_pid_type = '';
+ $from_topic_title_type = '';
+ $from_table_name = '';
+
+ //GET ALL MODULE-FROM DATA
+ $module_handler = &xoops_gethandler('module');
+ $from_module = &$module_handler->getByDirname($from_import_dirname);
+ $from_module->loadInfo($from_module->getVar('dirname'));
+
+ $from_modtables = $from_module->getInfo('tables');
+ if ( $from_modtables != false && is_array($from_modtables) ) {
+ foreach ( $from_modtables as $from_table ) {
+ $from_table_arr = explode('_', $from_table);
+ if ( count($from_table_arr) > 0 ) { //&& $from_import_dirname != 'news') {
+ if ($from_import_dirname != 'news') {
+ $subprefix = $from_table_arr[0] . "_";
+ } else {
+ $subprefix = '';
+ }
+ //trigger_error($subprefix . " NEWS ".$from_table_arr[0], E_USER_WARNING);
+ switch ($from_import_type) {
+ case 'news':
+ $from_subprefix = $subprefix;
+ $from_topics_arr = xni_gettopics($from_subprefix);
+ $from_topic_id = 'topic_id';
+ $from_topic_pid = 'topic_pid';
+ $from_topic_title = 'topic_title';
+ $from_topic_table = $from_subprefix . 'topics';
+ $from_story_table = $from_subprefix . 'stories';
+ break;
+ /*case 'ams':
+ $from_subprefix = $subprefix;
+ $from_topics_arr = xni_gettopics($from_subprefix);
+ $from_topic_id = 'topic_id';
+ $from_topic_pid = 'topic_pid';
+ $from_topic_title = 'topic_title';
+ $from_topic_table = $from_subprefix . 'topics';
+ $from_story_table = $from_subprefix . 'stories';
+ break;
+ case 'smartsection':
+ $from_subprefix = $subprefix;
+ $from_topics_arr = xni_getcategories($from_subprefix);
+ $from_topic_id = 'categoryid';
+ $from_topic_pid = 'parentid';
+ $from_topic_title = 'name';
+ $from_topic_table = $from_subprefix . 'categories';
+ $from_story_table = $from_subprefix . 'items';
+ break;
+ case 'publisher':
+ $from_subprefix = $subprefix;
+ $from_topics_arr = xni_getcategories($from_subprefix);
+ $from_topic_id = 'categoryid';
+ $from_topic_pid = 'parentid';
+ $from_topic_title = 'name';
+ $from_topic_table = $from_subprefix . 'categories';
+ $from_story_table = $from_subprefix . 'items';
+ break;*/
+ }
+
+ //trigger_error($from_table_arr[0], E_USER_WARNING);
+ }
+ }
+ }
+
+ //------------------------------------------------------------------
+
+ $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix($from_topic_table));
+ list ($totalCat) = $xoopsDB->fetchRow($result);
+
+ if ($totalCat == 0) {
+ echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . _AM_XNI_IMPORT_NO_CATEGORY . "</span>";
+ } else {
+
+ $result = $xoopsDB->query("SELECT COUNT(*) FROM " . $xoopsDB->prefix($from_story_table));
+ list ($totalArticles) = $xoopsDB->fetchRow($result);
+
+ if ($totalArticles == 0) {
+ echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . sprintf(_AM_XNI_IMPORT_MODULE_FOUND_NO_ITEMS, $from_import_dirname, $totalArticles) . "</span>";
+ } else {
+ echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-size: small; display: block; \">" . sprintf(_AM_XNI_IMPORT_MODULE_FOUND, $totalArticles, $totalCat, $from_import_dirname) . "</span>";
+
+ $form = new XoopsThemeForm(_AM_XNI_IMPORT_SETTINGS, 'import_form', XNI_MODULE_URL . "/admin/index.php");
+
+ $table_name = $from_topic_table;
+ $topiclist=new XoopsFormSelect(_AM_XNI_IMPORT_FROM_TOPICS, 'from_topics','',5,true);
+ $topics_arr=array();
+ $xt = new xni_NewsTopic();
+ $allTopics = $xt->getAllTopics($table_name, false); // The webmaster can see everything
+ $topic_tree = new XoopsObjectTree($allTopics, 'topic_id', 'topic_pid');
+ $topics_arr = $topic_tree->getAllChild(0);
+ if(count($topics_arr)) {
+ foreach ($topics_arr as $onetopic) {
+ $topiclist->addOption($onetopic->topic_id(),$onetopic->topic_title());
+ }
+ }
+ $topiclist->setDescription(_AM_XNI_IMPORT_FROM_TOPICS_DSC);
+ $form->addElement($topiclist, false);
+
+ /*$to_table_name = $to_subprefix . 'topics';
+ $to_topiclist=new XoopsFormSelect(_AM_XNI_IMPORT_TO_TOPICS, 'to_topic','',5,false);
+ $to_topics_arr=array();
+ $to_xt = new xni_NewsTopic();
+ $to_allTopics = $to_xt->getAllTopics($to_table_name, false); // The webmaster can see everything
+ $to_topic_tree = new XoopsObjectTree($to_allTopics, 'topic_id', 'topic_pid');
+ $to_topics_arr = $to_topic_tree->getAllChild(0);
+ if(count($to_topics_arr)) {
+ foreach ($to_topics_arr as $to_onetopic) {
+ $to_topiclist->addOption($to_onetopic->topic_id(),$to_onetopic->topic_title());
+ }
+ }
+ $to_topiclist->setDescription(_AM_XNI_IMPORT_TO_TOPICS_DSC);
+ $form->addElement($to_topiclist, false);
+ */
+ $form->addElement (new XoopsFormHidden('importfromdirname', $from_import_dirname));
+ $form->addElement (new XoopsFormHidden('importtodirname', $to_import_dirname));
+ $form->addElement (new XoopsFormHidden('importfromsubprefix', $from_subprefix));
+ $form->addElement (new XoopsFormHidden('importtosubprefix', $to_subprefix));
+
+ $form->addElement (new XoopsFormHidden('op', 'startimport'));
+ $form->addElement (new XoopsFormButton ('', 'import', _AM_XNI_IMPORT, 'submit'));
+
+ $form->display();
+ }
+ }
+ xoops_cp_footer();
+}
+
+function StartImport()
+{
+ global $xoopsDB, $xoopsConfig, $xoopsModule;
+
+ xoops_cp_header();
+
+ if (isset($_POST['importfromdirname']))
+ {
+ $from_module_dirname = $_POST['importfromdirname'];
+ $from_module_subprefix = $_POST['importfromsubprefix'];
+ $to_module_dirname = $_POST['importtodirname'];
+ $to_module_subprefix = $_POST['importtosubprefix'];
+ }
+
+ $module_handler =& xoops_gethandler('module');
+ $moduleObj = $module_handler->getByDirname($from_module_dirname);
+ $news_module_id = $moduleObj->getVar('mid');
+
+ $gperm_handler =& xoops_gethandler('groupperm');
+
+ $cnt_imported_cat = 0;
+ $cnt_imported_articles = 0;
+ $cnt_imported_comments = 0;
+ $cnt_imported_files = 0;
+
+ // If none selected then import all topics
+ if (!isset($_POST['from_topics']))
+ {
+ $resultCat = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . "topics"));
+ include_once('import.php');
+ }
+ // Import selected topics
+ else
+ {
+ $ftpcs = $_POST['from_topics'];
+ $ftpcs = implode("', '", $ftpcs);
+ $resultCat = $xoopsDB->query("SELECT * FROM " . $xoopsDB->prefix($from_module_subprefix . "topics") . " WHERE topic_id IN ('".$ftpcs."')");
+ include_once('import.php');
+ }
+
+ xoops_cp_footer();
+}
+
+$op = 'none';
+
+if (isset($_GET['op'])) $op = $_GET['op'];
+if (isset($_POST['op'])) $op = $_POST['op'];
+
+switch ($op) {
+ case "startimport":
+ StartImport();
+ break;
+ case "topicselect":
+ TopicSelect();
+ break;
+
+ case "import":
+ NewsImport();
+ break;
+
+ case "default":
+ default:
+ xoops_cp_header();
+ adminmenu(-1);
+ echo '<h4>' . _AM_XNI_CONFIG . '</h4>';
+ echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td width='59%' class=\"odd\" id=\"xo-newsicons\" >";
+ echo "<b><a href='index.php?op=import'><img src='" . XNI_MODULE_URL . "/images/import32.png' alt='' /><br/>" . _AM_XNI_IMPORT_TITLE . "</a></b>";
+ echo "<b><a href='" . XOOPS_URL . "/modules/system/admin.php?fct=preferences&op=showmod&mod=" . $xoopsModule -> getVar( 'mid' ) . "'><img src='" . NW_MODULE_URL . "/images/prefs32.png' alt='' /><br/>" . _AM_XNI_PREFERENCES . "</a></b>";
+ echo "<br /><br />\n";
+ echo"</td><td width='50%' class=\"even\" id=\"xo-newsicons\" >";
+ echo _AM_XNI_DESCRIPTION . "<br />";
+ echo "</td></tr></table>";
+ break;
+}
+
+xoops_cp_footer();
+?>
Added: XoopsModules/xnews/trunk/timgno/xnews/admin/about.php
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/about.php (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/about.php 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,44 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * ****************************************************************************
+ * XNEWS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2011
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ *
+ * ------------------------------------------------------------------------
+ *
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package xnews
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.72 Tue 2011/12/13 22:29:37 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include "admin_header.php";
+xoops_cp_header();
+$aboutAdmin = new ModuleAdmin();
+echo $aboutAdmin->addNavigation("about.php");
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/xnews/trunk/timgno/xnews/admin/admin_footer.php
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/admin_footer.php (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/admin_footer.php 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,42 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * ****************************************************************************
+ * XNEWS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2011
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ *
+ * ------------------------------------------------------------------------
+ *
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package xnews
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.72 Tue 2011/12/13 22:29:37 : Timgno Exp $
+ * ****************************************************************************
+ */
+ global $pathImageAdmin;
+
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src=" . $pathImageAdmin.'/xoopsmicrobutton.gif'.' '." alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+ xoops_cp_footer();
\ No newline at end of file
Added: XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,130 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * ****************************************************************************
+ * XNEWS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2011
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ *
+ * ------------------------------------------------------------------------
+ *
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package xnews
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.72 Tue 2011/12/13 22:29:37 : Timgno Exp $
+ * ****************************************************************************
+ */
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/mainfile.php";
+include_once XOOPS_ROOT_PATH."/include/cp_functions.php";
+/*include_once(XOOPS_ROOT_PATH."/kernel/module.php");
+include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
+include_once XOOPS_ROOT_PATH."/class/tree.php";
+include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
+include_once "../include/static_var.php";
+include_once "../include/functions.php";*/
+
+define("NW_SUBPREFIX", "nw");
+define("NW_MODULE_DIR_NAME", "xnews");
+define("NW_MODULE_PATH", XOOPS_ROOT_PATH . "/modules/" . NW_MODULE_DIR_NAME);
+define("NW_MODULE_URL", XOOPS_URL . "/modules/" . NW_MODULE_DIR_NAME);
+define("NW_UPLOADS_NEWS_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME);
+define("NW_TOPICS_FILES_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME . "/topics");
+define("NW_ATTACHED_FILES_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME . "/attached");
+define("NW_TOPICS_FILES_URL", XOOPS_URL . "/uploads/" . NW_MODULE_DIR_NAME . "/topics");
+define("NW_ATTACHED_FILES_URL", XOOPS_URL . "/uploads/" . NW_MODULE_DIR_NAME . "/attached");
+
+include_once XOOPS_ROOT_PATH.'/class/xoopstopic.php';
+include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
+include_once NW_MODULE_PATH . '/config.php';
+include_once NW_MODULE_PATH . '/class/class.newsstory.php';
+include_once NW_MODULE_PATH . '/class/class.newstopic.php';
+include_once NW_MODULE_PATH . '/class/class.sfiles.php';
+include_once NW_MODULE_PATH . '/class/blacklist.php';
+include_once NW_MODULE_PATH . '/class/registryfile.php';
+include_once XOOPS_ROOT_PATH.'/class/uploader.php';
+include_once NW_MODULE_PATH . '/admin/functions.php';
+include_once NW_MODULE_PATH . '/include/functions.php';
+include_once XOOPS_ROOT_PATH.'/class/tree.php';
+$dateformat=xnews_getmoduleoption('dateformat', NW_MODULE_DIR_NAME);
+$myts =& MyTextSanitizer::getInstance();
+$topicscount=0;
+
+$storiesTableName = $xoopsDB->prefix('xnews_stories');
+/*if(!nw_FieldExists('picture', $storiesTableName)) {
+ nw_AddField('`picture` VARCHAR( 50 ) NOT NULL', $storiesTableName);
+}*/
+
+$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
+$globlang = $GLOBALS['xoopsConfig']['language'];
+
+if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
+ include_once $pathDir.'/language/'.$globlang.'/main.php';
+ }else{
+ include_once $pathDir.'/language/english/main.php';
+ }
+
+if ( file_exists($pathDir.'/moduleadmin.php')){
+ include_once $pathDir.'/moduleadmin.php';
+ //return true;
+ }else{
+ xoops_cp_header();
+ echo xoops_error(_AM_ERROR_NOFRAMEWORKS);
+ xoops_cp_footer();
+ //return false;
+ }
+$dirname = basename( dirname( dirname( __FILE__ ) ) );
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+
+$topicsHandler=& xoops_getModuleHandler('xnews_topics','xnews');
+$storiesHandler=& xoops_getModuleHandler('xnews_stories','xnews');
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
\ No newline at end of file
Added: XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~ (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/admin_header.php~ 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,133 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * ****************************************************************************
+ * XNEWS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2011
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ *
+ * ------------------------------------------------------------------------
+ *
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package xnews
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.72 Tue 2011/12/13 22:29:37 : Timgno Exp $
+ * ****************************************************************************
+ */
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/mainfile.php";
+/*include_once XOOPS_ROOT_PATH."/include/cp_functions.php";
+include_once(XOOPS_ROOT_PATH."/kernel/module.php");
+include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
+include_once XOOPS_ROOT_PATH."/class/tree.php";
+include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
+include_once "../include/static_var.php";
+include_once "../include/functions.php";*/
+
+define("NW_SUBPREFIX", "nw");
+define("NW_MODULE_DIR_NAME", "xnews");
+define("NW_MODULE_PATH", XOOPS_ROOT_PATH . "/modules/" . NW_MODULE_DIR_NAME);
+define("NW_MODULE_URL", XOOPS_URL . "/modules/" . NW_MODULE_DIR_NAME);
+define("NW_UPLOADS_NEWS_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME);
+define("NW_TOPICS_FILES_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME . "/topics");
+define("NW_ATTACHED_FILES_PATH", XOOPS_ROOT_PATH . "/uploads/" . NW_MODULE_DIR_NAME . "/attached");
+define("NW_TOPICS_FILES_URL", XOOPS_URL . "/uploads/" . NW_MODULE_DIR_NAME . "/topics");
+define("NW_ATTACHED_FILES_URL", XOOPS_URL . "/uploads/" . NW_MODULE_DIR_NAME . "/attached");
+
+include_once XOOPS_ROOT_PATH.'/class/xoopstopic.php';
+include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
+include_once NW_MODULE_PATH . '/config.php';
+include_once NW_MODULE_PATH . '/class/class.newsstory.php';
+include_once NW_MODULE_PATH . '/class/class.newstopic.php';
+include_once NW_MODULE_PATH . '/class/class.sfiles.php';
+include_once NW_MODULE_PATH . '/class/blacklist.php';
+include_once NW_MODULE_PATH . '/class/registryfile.php';
+include_once XOOPS_ROOT_PATH.'/class/uploader.php';
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
+include_once NW_MODULE_PATH . '/admin/functions.php';
+include_once NW_MODULE_PATH . '/include/functions.php';
+include_once XOOPS_ROOT_PATH.'/class/tree.php';
+$dateformat=nw_getmoduleoption('dateformat', NW_MODULE_DIR_NAME);
+$myts =& MyTextSanitizer::getInstance();
+$topicscount=0;
+
+$storiesTableName = $xoopsDB->prefix('nw_stories');
+if(!nw_FieldExists('picture', $storiesTableName)) {
+ nw_AddField('`picture` VARCHAR( 50 ) NOT NULL', $storiesTableName);
+}
+
+$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
+$globlang = $GLOBALS['xoopsConfig']['language'];
+
+if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){
+ include_once $pathDir.'/language/'.$globlang.'/main.php';
+ }else{
+ include_once $pathDir.'/language/english/main.php';
+ }
+
+if ( file_exists($pathDir.'/moduleadmin.php')){
+ include_once $pathDir.'/moduleadmin.php';
+ //return true;
+ }else{
+ xoops_cp_header();
+ echo xoops_error(_AM_ERROR_NOFRAMEWORKS);
+ xoops_cp_footer();
+ //return false;
+ }
+$dirname = basename( dirname( dirname( __FILE__ ) ) );
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+
+$topicsHandler=& xoops_getModuleHandler('xnews_topics','xnews');
+$storiesHandler=& xoops_getModuleHandler('xnews_stories','xnews');
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
\ No newline at end of file
Added: XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php
===================================================================
--- XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php (rev 0)
+++ XoopsModules/xnews/trunk/timgno/xnews/admin/clonate.php 2012-01-31 18:04:15 UTC (rev 8847)
@@ -0,0 +1,394 @@
+<?php
+/**
+ * ****************************************************************************
+ * - Original Copyright (TDM)
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org)
+ * ****************************************************************************
+ * XNEWS - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2011
+ * TXMod Xoops (http://www.txmodxoops.org)
+ *
+ * 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.
+ *
+ * ------------------------------------------------------------------------
+ *
+ * @copyright TXMod Xoops (http://www.txmodxoops.org)
+ * @license GPL see LICENSE
+ * @package xnews
+ * @author TXMod Xoops (in...@tx...)
+ *
+ * Version : 1.72 Tue 2011/12/13 22:29:36 : Timgno Exp $
+ * ****************************************************************************
+ */
+include "admin_header.php";
+xoops_cp_header();
+
+$op = xnews_CleanVars($_REQUEST, 'op', 'default', 'string');
+$clonerAdmin = new ModuleAdmin();
+switch ($op)
+{
+ case 'default':
+ default:
+ echo $clonerAdmin->addNavigation("clonate.php");
+ $clonerAdmin->addItemButton(_AM_XNEWS_ADDCLONE, 'clonate.php?op=add_clone', 'add');
+ echo $clonerAdmin->renderButton();
+ global $xoopsDB, $xoopsConfig, $xoopsModule, $myts;
+ include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
+
+ $clone_modulename = '';
+
+ $start = isset($_GET['start']) ? intval($_GET['start']) : 0;
+
+ $result = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('news_clonerdata'));
+ $ix = 0;
+ $iy = 0;
+ $clone_arr = array();
+ while ( $clone = $xoopsDB->fetchArray($result) ) {
+ //DNPROSSI - Control if clone dir exists
+ if ( is_dir(XOOPS_ROOT_PATH . "/modules/" . $clone['clone_dir']) ) {
+ $clone_arr[$ix] = $clone;
+ $ix++;
+ } else {
+ $nonclone_arr[$iy] = $clone;
+ $iy++;
+ }
+ }
+ // If cloned dir does not exists because deleted remove from dtb
+ if ( isset($nonclone_arr) ) {
+ for ($iy = 0; $iy < count($nonclone_arr); $iy++) {
+ $result = $xoopsDB->queryF("DELETE FROM " . $xoopsDB->prefix('news_clonerdata') . " WHERE clone_dir = '" . $nonclone_arr[$iy]['clone_dir'] . "' ;");
+ }
+ }
+
+ $totalclones = count($clone_arr);
+ $class='';
+
+ //echo '<h2>' . _AM_XNEWS_CLONER . '</h2>';
+ //xnews_collapsableBar('NewsCloner', 'topNewsCloner');
+ //echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='topNewsCloner' name='topNewsCloner' src='" . NW_MODULE_URL . "/images/close12.gif' alt='' /></a> " . _AM_XNEWS_CLONER_CLONES . ' (' . $totalclones . ')'."</h4>";
+ echo "<div id='NewsCloner'>";
+ echo '<br />';
+ echo "<div style='text-align: center;'>";
+ echo "<table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'><tr class='bg5'><th align='center'>" . _AM_XNEWS_CLONER_NAME . "</th><th align='center'>" . _AM_XNEWS_CLONER_DIRFOL . "</th><th align='center'>" . _AM_XNEWS_SUBPREFIX . "</th><th align='center'>" . _AM_XNEWS_CLONER_VERSION . "</th><th align='center'>" . _AM_XNEWS_ACTION . "</th><th align='center'>" . _AM_XNEWS_CLONER_ACTION_INSTALL . "</th></tr>";
+ if(is_array($clone_arr) && $totalclones) {
+ $cpt=1;
+ $tmpcpt=$start;
+ $ok=true;
+ $output='';
+ while($ok) {
+ if($tmpcpt < $totalclones) {
+ //DNPROSSI - Upgrade if clone version is different from original news version
+ //DNPROSSI - Install if cloned
+ if ( $clone_arr[$tmpcpt]['clone_dir'] != $clone_arr[0]['clone_dir'] ) {
+ if ( $clone_arr[$tmpcpt]['clone_version'] != $clone_arr[0]['clone_version'] )
+ {
+ $linkupgrade = NW_MODULE_URL . '/admin/clonate.php?op=cloneupgrade&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
+ $action = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_UPGRADE);
+ if ( $clone_arr[$tmpcpt]['clone_installed'] == 1 )
+ {
+ $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=uninstall&module=' . $clone_arr[$tmpcpt]['clone_dir'];
+ $installaction = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_UNINSTALL);
+ } else {
+ $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=install&module=' . $clone_arr[$tmpcpt]['clone_dir'];
+ $linkdelete = NW_MODULE_URL . '/admin/clonate.php?op=clonedelete&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
+ $installaction = sprintf("<a href='%s'>%s</a> - <a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_INSTALL, $linkdelete, _AM_XNEWS_DELETE);
+ }
+ } else {
+ $linkforce = NW_MODULE_URL . '/admin/clonate.php?op=cloneupgrade&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
+ $action=sprintf( _AM_XNEWS_CLONER_CLONEUPGRADED . " - <a href='%s'>%s</a>", $linkforce, _AM_XNEWS_CLONER_UPGRADEFORCE);
+ if ( $clone_arr[$tmpcpt]['clone_installed'] == 1 )
+ {
+ $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=uninstall&module=' . $clone_arr[$tmpcpt]['clone_dir'];
+ $installaction = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_UNINSTALL);
+ } else {
+ $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=install&module=' . $clone_arr[$tmpcpt]['clone_dir'];
+ $linkdelete = NW_MODULE_URL . '/admin/clonate.php?op=clonedelete&clone_id=' . $clone_arr[$tmpcpt]['clone_id'];
+ $installaction = sprintf("<a href='%s'>%s</a> - <a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_INSTALL, $linkdelete, _AM_XNEWS_DELETE);
+ }
+ }
+ } else {
+ $linkupgrade = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=' . $clone_arr[$tmpcpt]['clone_dir'];
+ $action = sprintf("<a href='%s'>%s</a>", $linkupgrade, _AM_XNEWS_CLONER_UPDATE);
+ $installaction = '';
+ }
+ $class = ($class == 'even') ? 'odd' : 'even';
+ $output = $output . "<tr class='" . $class . "'><td align='center'>" . $clone_arr[$tmpcpt]['clone_name'] . "</td><td align='center'>" . $clone_arr[$tmpcpt]['clone_dir'] . "</td><td align='center'>" . $clone_arr[$tmpcpt]['clone_subprefix'] . "</td><td align='center'>" . round($clone_arr[$tmpcpt]['clone_version'] / 100, 2) . "</td><td>" . $action . "</td><td>" . $installaction . "</td></tr>";
+ } else {
+ $ok=false;
+ }
+ if($cpt>=xnews_getmoduleoption('storycountadmin', NW_MODULE_DIR_NAME)) {
+ $ok=false;
+ }
+ $tmpcpt++;
+ $cpt++;
+ }
+ echo $output;
+ }
+ $pagenav = new XoopsPageNav( $totalclones, xnews_getmoduleoption('storycountadmin', NW_MODULE_DIR_NAME), $start, 'start', 'op=clonemanager');
+ echo "</table><div align='right'>".$pagenav->renderNav().'</div><br />';
+ echo "</div></div><br />\n";
+
+ $clone_id = isset($_GET['clone_id']) ? intval($_GET['clone_id'])...
[truncated message content] |
|
From: <txm...@us...> - 2012-01-31 17:51:39
|
Revision: 8846
http://xoops.svn.sourceforge.net/xoops/?rev=8846&view=rev
Author: txmodxoops
Date: 2012-01-31 17:51:28 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
alpha 2
Added Paths:
-----------
XoopsModules/xnews/trunk/timgno/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-31 15:44:40
|
Revision: 8845
http://xoops.svn.sourceforge.net/xoops/?rev=8845&view=rev
Author: beckmi
Date: 2012-01-31 15:44:25 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Updating to 2.35 Beta 2 (JJDai)
Modified Paths:
--------------
XoopsModules/extcal/branches/jjdai/extcal/admin/about.php
XoopsModules/extcal/branches/jjdai/extcal/admin/admin_footer.php
XoopsModules/extcal/branches/jjdai/extcal/admin/admin_header.php
XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php
XoopsModules/extcal/branches/jjdai/extcal/admin/event.php
XoopsModules/extcal/branches/jjdai/extcal/admin/index.php
XoopsModules/extcal/branches/jjdai/extcal/admin/menu.php
XoopsModules/extcal/branches/jjdai/extcal/admin/perm.php
XoopsModules/extcal/branches/jjdai/extcal/class/ExtcalPersistableObjectHandler.php
XoopsModules/extcal/branches/jjdai/extcal/class/cat.php
XoopsModules/extcal/branches/jjdai/extcal/class/event.php
XoopsModules/extcal/branches/jjdai/extcal/class/eventmember.php
XoopsModules/extcal/branches/jjdai/extcal/class/eventnotmember.php
XoopsModules/extcal/branches/jjdai/extcal/class/file.php
XoopsModules/extcal/branches/jjdai/extcal/class/form/formdatetime.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Calendar.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Day.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Decorator/Textual.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Decorator/Uri.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Decorator/Weekday.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Decorator/Wrapper.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Decorator.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Engine/Interface.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Engine/PearDate.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Engine/UnixTS.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Factory.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Hour.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Minute.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Month/Weekdays.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Month/Weeks.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Month.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Second.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Table/Helper.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Util/Textual.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Util/Uri.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Validator.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Week.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/Year.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/4.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/4.phps
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/docs/examples/index.html
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/tests/helper_test.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/tests/hour_test.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/tests/minute_test.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/tests/peardate_engine_test.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/tests/unixts_engine_test.php
XoopsModules/extcal/branches/jjdai/extcal/class/pear/Calendar/tests/validator_unit_test.php
XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt
XoopsModules/extcal/branches/jjdai/extcal/docs/todo.txt
XoopsModules/extcal/branches/jjdai/extcal/download_attachement.php
XoopsModules/extcal/branches/jjdai/extcal/edit_event.php
XoopsModules/extcal/branches/jjdai/extcal/event.php
XoopsModules/extcal/branches/jjdai/extcal/event_member.php
XoopsModules/extcal/branches/jjdai/extcal/event_notmember.php
XoopsModules/extcal/branches/jjdai/extcal/include/agenda_fnc.php
XoopsModules/extcal/branches/jjdai/extcal/include/constantes.php
XoopsModules/extcal/branches/jjdai/extcal/include/functions.php
XoopsModules/extcal/branches/jjdai/extcal/include/install_function.php
XoopsModules/extcal/branches/jjdai/extcal/include/notification.inc.php
XoopsModules/extcal/branches/jjdai/extcal/include/search.inc.php
XoopsModules/extcal/branches/jjdai/extcal/include/style.css
XoopsModules/extcal/branches/jjdai/extcal/include/update_function.php
XoopsModules/extcal/branches/jjdai/extcal/js/graphics/controlbar-white.gif
XoopsModules/extcal/branches/jjdai/extcal/js/highslide-full.packed.js
XoopsModules/extcal/branches/jjdai/extcal/js/highslide-with-gallery.packed.js
XoopsModules/extcal/branches/jjdai/extcal/js/highslide-with-html.packed.js
XoopsModules/extcal/branches/jjdai/extcal/js/highslide.packed.js
XoopsModules/extcal/branches/jjdai/extcal/language/english/admin.php
XoopsModules/extcal/branches/jjdai/extcal/language/english/blocks.php
XoopsModules/extcal/branches/jjdai/extcal/language/english/help/help.html
XoopsModules/extcal/branches/jjdai/extcal/language/english/main.php
XoopsModules/extcal/branches/jjdai/extcal/language/english/modinfo.php
XoopsModules/extcal/branches/jjdai/extcal/language/french/admin.php
XoopsModules/extcal/branches/jjdai/extcal/language/french/blocks.php
XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt
XoopsModules/extcal/branches/jjdai/extcal/language/french/help/extcal_help.html
XoopsModules/extcal/branches/jjdai/extcal/language/french/help/help.html
XoopsModules/extcal/branches/jjdai/extcal/language/french/main.php
XoopsModules/extcal/branches/jjdai/extcal/language/french/modinfo.php
XoopsModules/extcal/branches/jjdai/extcal/language/spanish/admin.php
XoopsModules/extcal/branches/jjdai/extcal/language/spanish/blocks.php
XoopsModules/extcal/branches/jjdai/extcal/language/spanish/help/help.html
XoopsModules/extcal/branches/jjdai/extcal/language/spanish/main.php
XoopsModules/extcal/branches/jjdai/extcal/language/spanish/modinfo.php
XoopsModules/extcal/branches/jjdai/extcal/new_event.php
XoopsModules/extcal/branches/jjdai/extcal/post.php
XoopsModules/extcal/branches/jjdai/extcal/print.php
XoopsModules/extcal/branches/jjdai/extcal/rss.php
XoopsModules/extcal/branches/jjdai/extcal/sql/mysql.sql
XoopsModules/extcal/branches/jjdai/extcal/templates/blocks/extcal_block_minical.html
XoopsModules/extcal/branches/jjdai/extcal/templates/blocks/extcal_block_upcoming.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_navbar.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_day.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_month.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_search.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_week.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_year.html
XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_15.php
XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_28.php
XoopsModules/extcal/branches/jjdai/extcal/view_agenda-day.php
XoopsModules/extcal/branches/jjdai/extcal/view_agenda-week.php
XoopsModules/extcal/branches/jjdai/extcal/view_calendar-month.php
XoopsModules/extcal/branches/jjdai/extcal/view_calendar-week.php
XoopsModules/extcal/branches/jjdai/extcal/view_day.php
XoopsModules/extcal/branches/jjdai/extcal/view_month.php
XoopsModules/extcal/branches/jjdai/extcal/view_search.php
XoopsModules/extcal/branches/jjdai/extcal/view_week.php
XoopsModules/extcal/branches/jjdai/extcal/view_year.php
XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php
Added Paths:
-----------
XoopsModules/extcal/branches/jjdai/extcal/admin/etablissement.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/catetogy_events.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/day_events.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/minical.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/new_events.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/random_events.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/spotlight_events.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/upcoming.php
XoopsModules/extcal/branches/jjdai/extcal/class/etablissement.php
XoopsModules/extcal/branches/jjdai/extcal/class/extDateTime.php
XoopsModules/extcal/branches/jjdai/extcal/class/tableForm.php
XoopsModules/extcal/branches/jjdai/extcal/etablissement.php
XoopsModules/extcal/branches/jjdai/extcal/header.php
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge01.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge02.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge03.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge04.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge05.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge06.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge08.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge09.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge10.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge11.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge12.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge14.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge15.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge16.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge17.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge18.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge19.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge20.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge21.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge23.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge24.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge27.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge31.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/horloge33.swf
XoopsModules/extcal/branches/jjdai/extcal/images/horloges/index.html
XoopsModules/extcal/branches/jjdai/extcal/images/icons/32/etablissement.png
XoopsModules/extcal/branches/jjdai/extcal/include/mail_fnc.php
XoopsModules/extcal/branches/jjdai/extcal/js/extcal_highslide.js
XoopsModules/extcal/branches/jjdai/extcal/language/english/help/extcal_help.html
XoopsModules/extcal/branches/jjdai/extcal/language/french/mail_inscription.html
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/admin.php
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/blocks.php
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/changelog.txt
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/help/
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/help/extcal_help.html
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/help/help.html
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/help/index.html
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/index.html
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/mail_inscription.html
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/mail_template/
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/mail_template/cat_new_event.tpl
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/mail_template/global_new_event.tpl
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/mail_template/global_new_event_pending.tpl
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/main.php
XoopsModules/extcal/branches/jjdai/extcal/language/french_iso/modinfo.php
XoopsModules/extcal/branches/jjdai/extcal/language/spanish/help/extcal_help.html
XoopsModules/extcal/branches/jjdai/extcal/templates/admin/
XoopsModules/extcal/branches/jjdai/extcal/templates/admin/extcal_admin_cat_list.html
XoopsModules/extcal/branches/jjdai/extcal/templates/admin/index.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_buttons_event.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_etablissement.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_horloge.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_imgXoops.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_mail_invitation.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_mail_member_html.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_mail_member_text.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_multiUploads.html
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_new-event.html
XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_33.php
XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_34.php
XoopsModules/extcal/branches/jjdai/extcal/versions/extcal_2_35.php
XoopsModules/extcal/branches/jjdai/extcal/view_new-event.php
Removed Paths:
-------------
XoopsModules/extcal/branches/jjdai/extcal/_extcal.ppr
XoopsModules/extcal/branches/jjdai/extcal/admin/venue.php
XoopsModules/extcal/branches/jjdai/extcal/blocks/extcal_blocks.php
XoopsModules/extcal/branches/jjdai/extcal/class/venue.php
XoopsModules/extcal/branches/jjdai/extcal/images/icons/32/venue.png
XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_venue.html
XoopsModules/extcal/branches/jjdai/extcal/venue.php
Deleted: XoopsModules/extcal/branches/jjdai/extcal/_extcal.ppr
===================================================================
--- XoopsModules/extcal/branches/jjdai/extcal/_extcal.ppr 2012-01-30 22:48:03 UTC (rev 8844)
+++ XoopsModules/extcal/branches/jjdai/extcal/_extcal.ppr 2012-01-31 15:44:25 UTC (rev 8845)
@@ -1,441 +0,0 @@
-[Config]
-Compilator.SaveAll=0
-Compilator.Capture=0
-Compilator.HideOutput=0
-Compilator.LogType=0
-DefaultDir=F:\wamp\www\x250fra02\modules\extcal
-DefaultCPIndex=0
-LogtoEnd=1
-DontOpen=0
-AbsolutePath=0
-FileFormat=0
-ProjectFilesOnly=0
-[Project tree]
-_extcal
- +extcal
- -admin
- admin\about.php
- admin\admin_footer.php
- admin\admin_header.php
- admin\cat.php
- admin\venue.php
- admin\event.php
- admin\index.html
- admin\index.php
- admin\menu.php
- admin\perm.php
- admin\upgrade.php
- -blocks
- blocks\extcal_blocks.php
- blocks\index.html
- -class
- -form
- class\form\extcalform.php
- class\form\formdatetime.php
- class\form\formfilecheckbox.php
- class\form\formrecurrules.php
- class\form\formrrulecheckbox.php
- class\form\index.html
- -pear
- -Calendar
- -Decorator
- class\pear\Calendar\Decorator\Textual.php
- class\pear\Calendar\Decorator\Uri.php
- class\pear\Calendar\Decorator\Weekday.php
- class\pear\Calendar\Decorator\Wrapper.php
- -docs
- -examples
- class\pear\Calendar\docs\examples\1.php
- class\pear\Calendar\docs\examples\1.phps
- class\pear\Calendar\docs\examples\10.php
- class\pear\Calendar\docs\examples\10.phps
- class\pear\Calendar\docs\examples\11.php
- class\pear\Calendar\docs\examples\11.phps
- class\pear\Calendar\docs\examples\12.php
- class\pear\Calendar\docs\examples\12.phps
- class\pear\Calendar\docs\examples\13.php
- class\pear\Calendar\docs\examples\13.phps
- class\pear\Calendar\docs\examples\14.php
- class\pear\Calendar\docs\examples\14.phps
- class\pear\Calendar\docs\examples\15.php
- class\pear\Calendar\docs\examples\15.phps
- class\pear\Calendar\docs\examples\16.php
- class\pear\Calendar\docs\examples\16.phps
- class\pear\Calendar\docs\examples\17.php
- class\pear\Calendar\docs\examples\17.phps
- class\pear\Calendar\docs\examples\18.php
- class\pear\Calendar\docs\examples\18.phps
- class\pear\Calendar\docs\examples\19.php
- class\pear\Calendar\docs\examples\19.phps
- class\pear\Calendar\docs\examples\2.php
- class\pear\Calendar\docs\examples\2.phps
- class\pear\Calendar\docs\examples\20.php
- class\pear\Calendar\docs\examples\20.phps
- class\pear\Calendar\docs\examples\21.php
- class\pear\Calendar\docs\examples\21.phps
- class\pear\Calendar\docs\examples\22.php
- class\pear\Calendar\docs\examples\22.phps
- class\pear\Calendar\docs\examples\23.php
- class\pear\Calendar\docs\examples\23.phps
- class\pear\Calendar\docs\examples\3.php
- class\pear\Calendar\docs\examples\3.phps
- class\pear\Calendar\docs\examples\4.php
- class\pear\Calendar\docs\examples\4.phps
- class\pear\Calendar\docs\examples\5.php
- class\pear\Calendar\docs\examples\5.phps
- class\pear\Calendar\docs\examples\6.php
- class\pear\Calendar\docs\examples\6.phps
- class\pear\Calendar\docs\examples\7.php
- class\pear\Calendar\docs\examples\7.phps
- class\pear\Calendar\docs\examples\8.php
- class\pear\Calendar\docs\examples\8.phps
- class\pear\Calendar\docs\examples\9.php
- class\pear\Calendar\docs\examples\9.phps
- class\pear\Calendar\docs\examples\index.html
- class\pear\Calendar\docs\Readme
- -Engine
- class\pear\Calendar\Engine\Interface.php
- class\pear\Calendar\Engine\PearDate.php
- class\pear\Calendar\Engine\UnixTS.php
- -Month
- class\pear\Calendar\Month\Weekdays.php
- class\pear\Calendar\Month\Weeks.php
- -Table
- class\pear\Calendar\Table\Helper.php
- -tests
- class\pear\Calendar\tests\all_tests.php
- class\pear\Calendar\tests\calendar_engine_tests.php
- class\pear\Calendar\tests\calendar_include.php
- class\pear\Calendar\tests\calendar_tabular_tests.php
- class\pear\Calendar\tests\calendar_test.php
- class\pear\Calendar\tests\calendar_tests.php
- class\pear\Calendar\tests\day_test.php
- class\pear\Calendar\tests\decorator_test.php
- class\pear\Calendar\tests\decorator_tests.php
- class\pear\Calendar\tests\decorator_textual_test.php
- class\pear\Calendar\tests\decorator_uri_test.php
- class\pear\Calendar\tests\helper_test.php
- class\pear\Calendar\tests\hour_test.php
- class\pear\Calendar\tests\minute_test.php
- class\pear\Calendar\tests\month_test.php
- class\pear\Calendar\tests\month_weekdays_test.php
- class\pear\Calendar\tests\month_weeks_test.php
- class\pear\Calendar\tests\peardate_engine_test.php
- class\pear\Calendar\tests\README
- class\pear\Calendar\tests\second_test.php
- class\pear\Calendar\tests\simple_include.php
- class\pear\Calendar\tests\table_helper_tests.php
- class\pear\Calendar\tests\unixts_engine_test.php
- class\pear\Calendar\tests\util_tests.php
- class\pear\Calendar\tests\util_textual_test.php
- class\pear\Calendar\tests\util_uri_test.php
- class\pear\Calendar\tests\validator_error_test.php
- class\pear\Calendar\tests\validator_tests.php
- class\pear\Calendar\tests\validator_unit_test.php
- class\pear\Calendar\tests\week_firstday_0_test.php
- class\pear\Calendar\tests\week_test.php
- class\pear\Calendar\tests\year_test.php
- -Util
- class\pear\Calendar\Util\Textual.php
- class\pear\Calendar\Util\Uri.php
- class\pear\Calendar\Calendar.php
- class\pear\Calendar\Day.php
- class\pear\Calendar\Decorator.php
- class\pear\Calendar\Factory.php
- class\pear\Calendar\Hour.php
- class\pear\Calendar\Minute.php
- class\pear\Calendar\Month.php
- class\pear\Calendar\Second.php
- class\pear\Calendar\Validator.php
- class\pear\Calendar\Week.php
- class\pear\Calendar\Year.php
- class\cat.php
- class\config.php
- class\venue.php
- class\event.php
- class\eventmember.php
- class\eventnotmember.php
- class\ExtcalPersistableObjectHandler.php
- class\file.php
- class\index.html
- class\pclerror.lib.php
- class\pcltar.lib.php
- class\pcltrace.lib.php
- class\perm.php
- class\time.php
- -css
- css\index.html
- +docs
- docs\changelog.txt
- docs\credits.txt
- docs\index.html
- docs\install.txt
- docs\JJD-todo.txt
- docs\lang_diff.txt
- docs\licence.txt
- docs\readme.txt
- docs\todo.txt
- -images
- -arrows
- images\arrows\next.png
- images\arrows\previous.png
- images\arrows\Thumbs.db
- -icons
- -32
- images\icons\32\venue.png
- images\icons\32\index.html
- images\icons\addevent.gif
- images\icons\event-end.gif
- images\icons\event-middle.gif
- images\icons\event-single.gif
- images\icons\event-start.gif
- images\icons\extcal.gif
- images\icons\index.html
- images\icons\minus.gif
- images\icons\plus.gif
- images\icons\rss.gif
- images\icons\Thumbs.db
- images\bubble.png
- images\extcal_logo.png
- images\index.html
- images\left_both.gif
- images\modadminbg.gif
- images\right_both.gif
- images\Thumbs.db
- images\trame.png
- +include
- include\AC_RunActiveContent.js
- include\admin.js
- include\agenda_fnc.php
- include\constantes.php
- include\functions.php
- include\index.html
- include\install_function.php
- include\notification.inc.php
- include\search.inc.php
- include\SlideShow.swf
- include\style.css
- include\ToolTips.js
- include\update_function.php
- -js
- -graphics
- -outlines
- js\graphics\outlines\beveled.png
- js\graphics\outlines\drop-shadow.png
- js\graphics\outlines\glossy-dark.png
- js\graphics\outlines\outer-glow.png
- js\graphics\outlines\Outlines.psd
- js\graphics\outlines\rounded-black.png
- js\graphics\outlines\rounded-white.png
- js\graphics\close.png
- js\graphics\closeX.png
- js\graphics\controlbar2.gif
- js\graphics\controlbar3.gif
- js\graphics\controlbar4.gif
- js\graphics\controlbar4-hover.gif
- js\graphics\controlbar-black-border.gif
- js\graphics\controlbar-text-buttons.png
- js\graphics\controlbar-white.gif
- js\graphics\controlbar-white-small.gif
- js\graphics\fullexpand.gif
- js\graphics\geckodimmer.png
- js\graphics\icon.gif
- js\graphics\loader.gif
- js\graphics\loader.white.gif
- js\graphics\resize.gif
- js\graphics\scrollarrows.png
- js\graphics\zoomin.cur
- js\graphics\zoomout.cur
- js\highslide.css
- js\highslide.js
- js\highslide.min.js
- js\highslide.packed.js
- js\highslide-full.js
- js\highslide-full.min.js
- js\highslide-full.packed.js
- js\highslide-ie6.css
- js\highslide-with-gallery.js
- js\highslide-with-gallery.min.js
- js\highslide-with-gallery.packed.js
- js\highslide-with-html.js
- js\highslide-with-html.min.js
- js\highslide-with-html.packed.js
- +language
- +english
- -help
- language\english\help\help.html
- language\english\help\index.html
- -mail_template
- language\english\mail_template\cat_new_event.tpl
- language\english\mail_template\global_new_event.tpl
- language\english\mail_template\global_new_event_pending.tpl
- language\english\admin.php
- language\english\blocks.php
- language\english\index.html
- language\english\main.php
- language\english\modinfo.php
- +french
- -help
- language\french\help\extcal_help.html
- language\french\help\help.html
- language\french\help\index.html
- -mail_template
- language\french\mail_template\cat_new_event.tpl
- language\french\mail_template\global_new_event.tpl
- language\french\mail_template\global_new_event_pending.tpl
- language\french\admin.php
- language\french\blocks.php
- language\french\changelog.txt
- language\french\index.html
- language\french\main.php
- language\french\modinfo.php
- +spanish
- -help
- language\spanish\help\help.html
- language\spanish\help\index.html
- -mail_template
- language\spanish\mail_template\cat_new_event.tpl
- language\spanish\mail_template\global_new_event.tpl
- language\spanish\mail_template\global_new_event_pending.tpl
- language\spanish\mail_template\index.html
- language\spanish\admin.php
- language\spanish\blocks.php
- language\spanish\index.html
- language\spanish\main.php
- language\spanish\modinfo.php
- language\index.html
- -sql
- sql\index.html
- sql\mysql.sql
- +templates
- -blocks
- templates\blocks\extcal_block_day.html
- templates\blocks\extcal_block_minical.html
- templates\blocks\extcal_block_new.html
- templates\blocks\extcal_block_random.html
- templates\blocks\extcal_block_spotlight.html
- templates\blocks\extcal_block_upcoming.html
- templates\blocks\extcal_block_upcomingByCategory.html
- templates\blocks\index.html
- templates\extcal_categorie.html
- templates\extcal_venue.html
- templates\extcal_event.html
- templates\extcal_event_list1.html
- templates\extcal_event_nav_btn.html
- templates\extcal_info_bulle.html
- templates\extcal_navbar.html
- templates\extcal_post.html
- templates\extcal_rss.html
- templates\extcal_view_agenda-day.html
- templates\extcal_view_agenda-week.html
- templates\extcal_view_calendar-month.html
- templates\extcal_view_calendar-week.html
- templates\extcal_view_day.html
- templates\extcal_view_month.html
- templates\extcal_view_search.html
- templates\extcal_view_week.html
- templates\extcal_view_year.html
- templates\index.html
- -test
- test\_extCalTestSuite
- test\AddCategory
- test\AddEventByAdmin
- test\AddEventFrontEnd
- test\DeleteEventAdmin
- test\DeleteEventFrontEnd
- test\EditEvent
- test\index.html
- test\readme.txt
- test\ViewEvent
- +versions
- versions\extcal_2_04.php
- versions\extcal_2_15.php
- versions\extcal_2_21.php
- versions\extcal_2_28.php
- versions\extcal_3_00.php
- versions\index.html
- _extcal.ppr
- comment_delete.php
- comment_edit.php
- comment_new.php
- comment_post.php
- comment_reply.php
- download_attachement.php
- edit_event.php
- venue.php
- event.php
- event_member.php
- event_notmember.php
- index.php
- new_event.php
- notification_update.php
- post.php
- print.php
- rss.php
- upgrade.txt
- view_agenda-day.php
- view_agenda-week.php
- view_calendar-month.php
- view_calendar-week.php
- view_day.php
- view_month.php
- view_search.php
- view_week.php
- view_year.php
- xoops_version.php
-[Open project files]
-0=zzzzzzzzzzz.txt
-1=include\update_function.php
-2=class\event.php
-3=view_search.php
-4=templates\extcal_view_search.html
-5=language\french\main.php
-6=templates\extcal_event_list1.html
-7=include\functions.php
-8=include\agenda_fnc.php
-9=..\_temp\xoops.sql\xoops.sql
-10=templates\extcal_categorie.html
-11=docs\changelog.txt
-12=class\perm.php
-[Selected Project Files]
-Main=
-Selected=class\event.php
-[zzzzzzzzzzz.txt]
-TopLine=76
-Caret=1,102
-[include\update_function.php]
-TopLine=10
-Caret=33,24
-[class\event.php]
-TopLine=1878
-Caret=21,1905
-[view_search.php]
-TopLine=70
-Caret=41,95
-[templates\extcal_view_search.html]
-TopLine=41
-Caret=51,62
-[language\french\main.php]
-TopLine=168
-Caret=1,183
-[templates\extcal_event_list1.html]
-TopLine=1
-Caret=1,4
-[include\functions.php]
-TopLine=126
-Caret=1,153
-[include\agenda_fnc.php]
-TopLine=191
-Caret=14,178
-[..\_temp\xoops.sql\xoops.sql]
-TopLine=138
-Caret=1,168
-[templates\extcal_categorie.html]
-TopLine=1
-Caret=58,5
-[docs\changelog.txt]
-TopLine=1
-Caret=1,15
-[class\perm.php]
-TopLine=11
-Caret=37,27
Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/about.php
===================================================================
--- XoopsModules/extcal/branches/jjdai/extcal/admin/about.php 2012-01-30 22:48:03 UTC (rev 8844)
+++ XoopsModules/extcal/branches/jjdai/extcal/admin/about.php 2012-01-31 15:44:25 UTC (rev 8845)
@@ -17,7 +17,9 @@
* @version $Id $
**/
-include_once dirname(__FILE__) . '/admin_header.php';
+include '../../../include/cp_header.php';
+include '../../../class/xoopsformloader.php';
+include 'admin_header.php';
xoops_cp_header();
@@ -25,4 +27,7 @@
echo $aboutAdmin->addNavigation('about.php');
echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
-include 'admin_footer.php';
\ No newline at end of file
+include 'admin_footer.php';
+
+
+?>
Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/admin_footer.php
===================================================================
--- XoopsModules/extcal/branches/jjdai/extcal/admin/admin_footer.php 2012-01-30 22:48:03 UTC (rev 8844)
+++ XoopsModules/extcal/branches/jjdai/extcal/admin/admin_footer.php 2012-01-31 15:44:25 UTC (rev 8845)
@@ -10,7 +10,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
+ * @license:: http://www.fsf.org/copyleft/gpl.html GNU public license
* @package:: extCal
* @subpackage:: admin
* @since: 2.5.0
@@ -18,11 +18,9 @@
* @version:: $Id $
**/
-echo "<div class='adminfooter'>\n"
- ." <div style='text-align: center;'>\n"
- ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
- ." </div>\n"
- ." " . _AM_ADMIN_FOOTER . "\n"
- ."</div>";
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src=" . XOOPS_URL ."/". $moduleInfo->getInfo("icons32")."/xoopsmicrobutton.gif"." alt=\"XOOPS\" title=\"XOOPS\"></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+
xoops_cp_footer();
+?>
Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/admin_header.php
===================================================================
--- XoopsModules/extcal/branches/jjdai/extcal/admin/admin_header.php 2012-01-30 22:48:03 UTC (rev 8844)
+++ XoopsModules/extcal/branches/jjdai/extcal/admin/admin_header.php 2012-01-31 15:44:25 UTC (rev 8845)
@@ -25,29 +25,46 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
-$path = dirname(dirname(dirname(dirname(__FILE__))));
-include_once $path . '/mainfile.php';
-include_once $path . '/include/cp_functions.php';
-require_once $path . '/include/cp_header.php';
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+//include("../../../include/cp_header.php");
-global $xoopsModule;
+if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+ //return true;
+ }else{
+ echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks");
+ //return false;
+ }
-$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
-//if functions.php file exist
-require_once dirname(dirname(__FILE__)) . '/include/functions.php';
+$myts =& MyTextSanitizer::getInstance();
-// Load language files
-xoops_loadLanguage('admin', $thisModuleDir);
-xoops_loadLanguage('modinfo', $thisModuleDir);
-xoops_loadLanguage('main', $thisModuleDir);
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+// redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+// exit();
+}
-$pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
-$pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
-$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
-if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
- include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
- }else{
- redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
- }
\ No newline at end of file
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+
+//xoops_cp_header();
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
+?>
Modified: XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php
===================================================================
--- XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php 2012-01-30 22:48:03 UTC (rev 8844)
+++ XoopsModules/extcal/branches/jjdai/extcal/admin/cat.php 2012-01-31 15:44:25 UTC (rev 8845)
@@ -3,37 +3,44 @@
include '../../../include/cp_header.php';
include '../../../class/xoopsformloader.php';
include 'admin_header.php';
-include 'function.php';
-
-if (isset($_GET['op'])) {
- $op = $_GET['op'];
-} else {
- $op = 'default';
+include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/functions.php') ;
+include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php') ;
+
+$gepeto = array_merge($_GET, $_POST);
+while (list($k,$v) = each ($gepeto)){
+ $$k = $v;
}
+if (!isset($op)) $op = '';
+// $t=print_r($gepeto,true);
+// echo "<pre>{$t}</pre>";
+
+
switch($op) {
case 'enreg':
// Modify cat
- if(isset($_POST['cat_id'])) {
- $catHandler = xoops_getmodulehandler('cat', 'extcal');
+ if(isset($cat_id)) {
+ $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
$varArr = array(
- 'cat_name'=>$_POST['cat_name'],
- 'cat_desc'=>$_POST['cat_desc'],
- 'cat_color'=>substr($_POST['cat_color'],1)
+ 'cat_name'=>$cat_name,
+ 'cat_desc'=>$cat_desc,
+ 'cat_weight'=>$cat_weight,
+ 'cat_color'=>substr($cat_color,1)
);
- $catHandler->modifyCat($_POST['cat_id'], $varArr);
+ $catHandler->modifyCat($cat_id, $varArr);
redirect_header("cat.php", 3, _AM_EXTCAL_CAT_EDITED, false);
// Create new cat
} else {
- $catHandler = xoops_getmodulehandler('cat', 'extcal');
+ $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
$varArr = array(
- 'cat_name'=>$_POST['cat_name'],
- 'cat_desc'=>$_POST['cat_desc'],
- 'cat_color'=>substr($_POST['cat_color'],1)
+ 'cat_name'=>$cat_name,
+ 'cat_desc'=>$cat_desc,
+ 'cat_weight'=>$cat_weight,
+ 'cat_color'=>substr($cat_color,1)
);
$catHandler->createCat($varArr);
redirect_header("cat.php", 3, _AM_EXTCAL_CAT_CREATED, false);
@@ -41,111 +48,186 @@
break;
- case 'modify':
+ case 'new':
- if (isset($_POST['form_modify'])) {
+ xoops_cp_header();
+
+ $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
+ $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255), true);
+ $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', ''), false);
+ $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, 0), false);
+ $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color',"#FF0000"));
+ $form->addElement(new XoopsFormButton("", "form_submit", _SEND, "submit"), false);
+ $form->display();
+
+
+
+ include 'admin_footer.php';
+ break;
+
+ case 'edit':
xoops_cp_header();
-// // @author Gregory Mage (Aka Mage)
-// //***************************************************************************************
-// include_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
-// $categoryAdmin = new ModuleAdmin();
-// echo $categoryAdmin->addNavigation('cat.php');
- //***************************************************************************************
- $catHandler = xoops_getmodulehandler('cat', 'extcal');
- $cat = $catHandler->getCat($_POST['cat_id'], true);
+ $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
+ if ($cat_id <> 0){
+ $cat = $catHandler->getCat($cat_id, true);
+ }else{
+ $cat = $catHandler->getCat($cat_id, true);
+ }
+
echo'<fieldset><legend style="font-weight:bold; color:#990000;">'
. _AM_EXTCAL_EDIT_CATEGORY . '</legend>';
$form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
$form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
$form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc')), false);
+ $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
$form->addElement(
new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color',
'#' . $cat->getVar('cat_color'))
);
$form->addElement(new XoopsFormHidden('cat_id', $cat->getVar('cat_id')), false);
- $form->addElement(new XoopsFormButton("", "form_submit", _SUBMIT, "submit"), false);
+ $form->addElement(new XoopsFormButton("", "form_submit", _SEND, "submit"), false);
$form->display();
echo '</fieldset>';
xoops_cp_footer();
+ break;
+
+ case 'delete':
+ if (!isset($confirm)) {
+ xoops_cp_header();
+ $hiddens = array('cat_id' => $cat_id, 'form_delete' => '', 'confirm' => 1);
+ xoops_confirm($hiddens, 'cat.php?op=delete', _AM_EXTCAL_CONFIRM_DELETE_CAT, _DELETE, 'cat.php');
+
+ xoops_cp_footer();
} else {
- if (isset($_POST['form_delete'])) {
- if (!isset($_POST['confirm'])) {
- xoops_cp_header();
- // @author Gregory Mage (Aka Mage)
- //***************************************************************************************
- include_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
- $categoryAdmin = new ModuleAdmin();
- echo $categoryAdmin->addNavigation('cat.php');
- //***************************************************************************************
-
- $hiddens = array('cat_id' => $_POST['cat_id'], 'form_delete' => '', 'confirm' => 1);
- xoops_confirm($hiddens, 'cat.php?op=modify', _AM_EXTCAL_CONFIRM_DELETE_CAT, _DELETE, 'cat.php');
-
- xoops_cp_footer();
- } else {
- if (isset($_POST['confirm']) && $_POST['confirm'] == 1) {
- $catHandler = xoops_getmodulehandler('cat', 'extcal');
- $catHandler->deleteCat($_POST['cat_id']);
- redirect_header("cat.php", 3, _AM_EXTCAL_CAT_DELETED, false);
- }
- }
+ if (isset($confirm) && $confirm == 1) {
+ $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
+ $catHandler->deleteCat($cat_id);
+ redirect_header("cat.php", 3, _AM_EXTCAL_CAT_DELETED, false);
}
}
-
break;
- case 'default':
+// case 'modify':
+//
+// if (isset($form_modify)) {
+// xoops_cp_header();
+//
+// $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
+// $cat = $catHandler->getCat($cat_id, true);
+//
+// echo'<fieldset><legend style="font-weight:bold; color:#990000;">'
+// . _AM_EXTCAL_EDIT_CATEGORY . '</legend>';
+//
+// $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
+// $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
+// $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc')), false);
+// $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
+// $form->addElement(
+// new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color',
+// '#' . $cat->getVar('cat_color'))
+// );
+// $form->addElement(new XoopsFormHidden('cat_id', $cat->getVar('cat_id')), false);
+// $form->addElement(new XoopsFormButton("", "form_submit", _SEND, "submit"), false);
+// $form->display();
+//
+// echo '</fieldset>';
+//
+// xoops_cp_footer();
+// } else {
+// if (isset($form_delete)) {
+// if (!isset($confirm)) {
+// xoops_cp_header();
+// // @author Gregory Mage (Aka Mage)
+// //***************************************************************************************
+// include_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
+// $categoryAdmin = new ModuleAdmin();
+// echo $categoryAdmin->addNavigation('cat.php');
+// //***************************************************************************************
+//
+// $hiddens = array('cat_id' => $cat_id, 'form_delete' => '', 'confirm' => 1);
+// xoops_confirm($hiddens, 'cat.php?op=modify', _AM_EXTCAL_CONFIRM_DELETE_CAT, _DELETE, 'cat.php');
+//
+// xoops_cp_footer();
+// } else {
+// if (isset($confirm) && $confirm == 1) {
+// $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
+// $catHandler->deleteCat($cat_id);
+// redirect_header("cat.php", 3, _AM_EXTCAL_CAT_DELETED, false);
+// }
+// }
+// }
+// }
+//
+// break;
+//
+//
+// case 'default':
+//
+// xoops_cp_header();
+// // @author Gregory Mage (Aka Mage)
+// //***************************************************************************************
+// $categoryAdmin = new ModuleAdmin();
+// echo $categoryAdmin->addNavigation('cat.php');
+// //***************************************************************************************
+//
+// $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
+// $cats = $catHandler->getAllCat($xoopsUser, 'all');
+//
+//
+// echo'<fieldset><legend style="font-weight:bold; color:#990000;">'
+// . _AM_EXTCAL_EDIT_OR_DELETE_CATEGORY . '</legend>';
+// $form = new XoopsThemeForm(_AM_EXTCAL_EDIT_OR_DELETE_CATEGORY, 'mod_cat', 'cat.php?op=modify', 'post', true);
+// $catSelect = new XoopsFormSelect(_AM_EXTCAL_CATEGORY, 'cat_id');
+//
+// foreach (
+// $cats as $cat
+// ) {
+// $catSelect->addOption($cat->getVar('cat_id'), $cat->getVar('cat_name'));
+// }
+//
+// $form->addElement($catSelect, true);
+// $button = new XoopsFormElementTray('');
+// $button->addElement(new XoopsFormButton("", "form_modify", _EDIT, "submit"), false);
+// $button->addElement(new XoopsFormButton("", "form_delete", _DELETE, "submit"), false);
+// $form->addElement($button, false);
+// $form->display();
+//
+//
+// echo '</fieldset><br />';
+// echo'<fieldset><legend style="font-weight:bold; color:#990000;">'
+// . _AM_EXTCAL_ADD_CATEGORY . '</legend>';
+//
+// $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
+// $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255), true);
+// $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', ''), false);
+// $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
+// $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color'));
+// $form->addElement(new XoopsFormButton("", "form_submit", _SEND, "submit"), false);
+// $form->display();
+//
+// echo '</fieldset><br />';
+//
+// include 'admin_footer.php';
+//
+// break;
+
+
+ case 'list':
default:
-
xoops_cp_header();
- // @author Gregory Mage (Aka Mage)
- //***************************************************************************************
- $categoryAdmin = new ModuleAdmin();
- echo $categoryAdmin->addNavigation('cat.php');
- //***************************************************************************************
+
+ $catHandler = xoops_getmodulehandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
+ $cats =$catHandler->getAllCatById($xoopsUser);
- $catHandler = xoops_getmodulehandler('cat', 'extcal');
- $cats = $catHandler->getAllCat($xoopsUser, 'all');
-
-
- echo'<fieldset><legend style="font-weight:bold; color:#990000;">'
- . _AM_EXTCAL_EDIT_OR_DELETE_CATEGORY . '</legend>';
- $form = new XoopsThemeForm(_AM_EXTCAL_EDIT_OR_DELETE_CATEGORY, 'mod_cat', 'cat.php?op=modify', 'post', true);
- $catSelect = new XoopsFormSelect(_AM_EXTCAL_CATEGORY, 'cat_id');
-
- foreach (
- $cats as $cat
- ) {
- $catSelect->addOption($cat->getVar('cat_id'), $cat->getVar('cat_name'));
- }
-
- $form->addElement($catSelect, true);
- $button = new XoopsFormElementTray('');
- $button->addElement(new XoopsFormButton("", "form_modify", _EDIT, "submit"), false);
- $button->addElement(new XoopsFormButton("", "form_delete", _DELETE, "submit"), false);
- $form->addElement($button, false);
- $form->display();
-
-
- echo '</fieldset><br />';
- echo'<fieldset><legend style="font-weight:bold; color:#990000;">'
- . _AM_EXTCAL_ADD_CATEGORY . '</legend>';
-
- $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
- $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255), true);
- $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', ''), false);
- $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color'));
- $form->addElement(new XoopsFormButton("", "form_submit", _SUBMIT, "submit"), false);
- $form->display();
-
- echo '</fieldset><br />';
-
- include 'admin_footer.php';
-
+ $xoopsTpl->assign("cats", $cats);
+ //$xoopsTpl->assign("module_dirname", $xoopsModule->getVar("dirname") );
+
+ $xoopsTpl->display("db:admin/extcal_admin_cat_list.html");
+ include "admin_footer.php";
break;
}
Added: XoopsModules/extcal/branches/jjdai/extcal/admin/etablissement.php
===================================================================
--- XoopsModules/extcal/branches/jjdai/extcal/admin/etablissement.php (rev 0)
+++ XoopsModules/extcal/branches/jjdai/extcal/admin/etablissement.php 2012-01-31 15:44:25 UTC (rev 8845)
@@ -0,0 +1,251 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMAds By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence PRO Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * 1. Vous devez posséder une permission d'exécuter le logiciel, pour n'importe quel usage.
+ * 2. Vous ne devez pas l' étudier,
+ * 3. Vous ne devez pas le redistribuer ni en faire des copies,
+ * 4. Vous n'avez pas la liberté de l'améliorer et de rendre publiques les modifications
+ *
+ * @license TDMFR PRO license
+ * @author TDMFR ; TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+
+// Include xoops admin header
+include_once '../../../include/cp_header.php';
+include_once XOOPS_ROOT_PATH.'/modules/extcal/class/ExtcalPersistableObjectHandler.php';
+include_once(XOOPS_ROOT_PATH."/kernel/module.php");
+include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
+include_once XOOPS_ROOT_PATH."/class/tree.php";
+include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
+include_once XOOPS_ROOT_PATH."/modules/extcal/class/etablissement.php";
+include_once XOOPS_ROOT_PATH."/modules/extcal/include/constantes.php";
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
+include_once(XOOPS_ROOT_PATH."/class/uploader.php");
+include 'admin_header.php';
+
+//include_once("functions.php");
+//include_once("../include/functions.php");
+
+if ( $xoopsUser ) {
+ $xoopsModule = XoopsModule::getByDirname("extcal");
+ if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) {
+ redirect_header(XOOPS_URL."/",3,_NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL."/",3,_NOPERM);
+ exit();
+}
+
+// Include language file
+xoops_loadLanguage('admin', 'system');
+xoops_loadLanguage('admin', $xoopsModule->getVar('dirname', 'e'));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar('dirname', 'e'));
+$myts =& MyTextSanitizer::getInstance();
+
+//appel des class
+$etablissementHandler = xoops_getmodulehandler(_EXTCAL_CLS_ETABLISSEMENT, _EXTCAL_MODULE);
+
+xoops_cp_header();
+
+if (isset($_REQUEST['op'])) {
+ $op = $_REQUEST['op'];
+} else {
+ $op = 'liste';
+}
+
+//appel du menu admin
+// if ( !is_readable(XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php")) {
+ // adminmenu(4, _MI_EXTCAL_ETABLISSEMENT);
+// } else {
+ // include_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.admin.php';
+ // loadModuleAdminMenu (4, _MI_EXTCAL_ETABLISSEMENT);
+// }
+
+//Les valeurs de op qui vont permettre d'aller dans les differentes parties de la page
+switch ($op)
+{
+ // Vue liste
+ case "liste":
+
+ // @author JJDAI
+ //***************************************************************************************
+ $etablissementAdmin = new ModuleAdmin();
+ echo $etablissementAdmin->addNavigation('etablissement.php');
+ //***************************************************************************************
+
+ $criteria = new CriteriaCompo();
+ if (isset($_REQUEST['limit'])) {
+ $criteria->setLimit($_REQUEST['limit']);
+ $limit = $_REQUEST['limit'];
+ } else {
+ $criteria->setLimit(10);
+ $limit = 10;
+ }
+ if (isset($_REQUEST['start'])) {
+ $criteria->setStart($_REQUEST['start']);
+ $start = $_REQUEST['start'];
+ } else {
+ $criteria->setStart(0);
+ $start = 0;
+ }
+ $criteria->setSort('nom');
+ $criteria->setOrder('ASC');
+ $etablissement_arr = $etablissementHandler->getObjects($criteria);
+ $numrows = $etablissementHandler->getCount($criteria);
+ if ( $numrows > $limit ) {
+ $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit);
+ $pagenav = $pagenav->renderNav(4);
+ } else {
+ $pagenav = '';
+ }
+ //Affichage du tableau des téléchargements brisés
+ if ($numrows > 0) {
+ echo '<table width="100%" cellspacing="1" class="outer">';
+ echo '<tr>';
+ echo '<th align="center">' . _AM_EXTCAL_ETABLISSEMENT_FORM_NOM . '</th>';
+ echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE . '</th>';
+ echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE.'</th>';
+ echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ACTION.'</th>';
+ echo '</tr>';
+ $class = 'odd';
+ foreach (array_keys($etablissement_arr) as $i)
+ {
+ $class = ($class == 'even') ? 'odd' : 'even';
+ $etablissement_id = $etablissement_arr[$i]->getVar('id');
+ $etablissement_nom = $etablissement_arr[$i]->getVar('nom');
+ $etablissement_adresse = $etablissement_arr[$i]->getVar('adresse');
+ $etablissement_telephone = $etablissement_arr[$i]->getVar('telephone');
+ echo '<tr class="'.$class.'">';
+ echo '<td align="left">'
+ . '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '">'
+ . $etablissement_nom
+ . '</a>'
+ . '</td>';
+
+ echo '<td align="center"><b>' . $etablissement_adresse . '</td>';
+ echo '<td align="center"><b>' . $etablissement_telephone . '</td>';
+ echo '<td align="center" width="15%">';
+ echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '"><img src='. $pathImageIcon .'/edit.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '"></a> ';
+ echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id=' . $etablissement_id . '"><img src='. $pathImageIcon .'/delete.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '"></a> ';
+ echo '</td>';
+ }
+ echo '</table><br />';
+ echo '<br /><div align=right>' . $pagenav . '</div><br />';
+ }else{
+ echo '<div class="errorMsg" style="text-align: center;">' . _AM_EXTCAL_ERREUR_NO_ETABLISSEMENT . '</div>';
+ }
+
+ // Affichage du formulaire
+ $obj =& $etablissementHandler->create();
+ $form = $obj->getForm(false);
+ break;
+
+ // permet de suprimmer le rapport de téléchargment brisé
+ case "delete_etablissement":
+ $obj =& $etablissementHandler->get($_REQUEST['etablissement_id']);
+ if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
+ if (!$GLOBALS['xoopsSecurity']->check()) {
+ redirect_header('etablissement.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ if ($etablissementHandler->delete($obj)) {
+ redirect_header('etablissement.php', 1, _AM_EXTCAL_REDIRECT_DELOK);
+ }
+ } else {
+ xoops_confirm(array('ok' => 1, 'etablissement_id' => $_REQUEST['etablissement_id'], 'op' => 'delete_etablissement'), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
+ }
+ break;
+
+
+ case "edit_etablissement":
+ // @author JJDAI
+ //***************************************************************************************
+ $etablissementAdmin = new ModuleAdmin();
+ echo $etablissementAdmin->addNavigation('etablissement.php');
+ //***************************************************************************************
+ //Affichage du formulaire de création des téléchargements
+ $obj = $etablissementHandler->get($_REQUEST['etablissement_id']);
+ $form = $obj->getForm (false);
+ break;
+
+ case "save_etablissement":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("etablissement.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["etablissement_id"])) {
+ $obj =& $etablissementHandler->get($_REQUEST["etablissement_id"]);
+ } else {
+ $obj =& $etablissementHandler->create();
+ }
+
+ $obj->setVar("nom", $_REQUEST["nom"]);
+ $obj->setVar("description", $_REQUEST["description"]);
+ $obj->setVar("categorie", $_REQUEST["categorie"]);
+ $obj->setVar("adresse", $_REQUEST["adresse"]);
+ $obj->setVar("adresse2", $_REQUEST["adresse2"]);
+ $obj->setVar("cp", $_REQUEST["cp"]);
+ $obj->setVar("ville", $_REQUEST["ville"]);
+ $obj->setVar("tel_fixe", $_REQUEST["tel_fixe"]);
+ $obj->setVar("tel_portable", $_REQUEST["tel_portable"]);
+ $obj->setVar("mail", $_REQUEST["mail"]);
+ $obj->setVar("site", $_REQUEST["site"]);
+ $obj->setVar("horaires", $_REQUEST["horaires"]);
+ $obj->setVar("divers", $_REQUEST["divers"]);
+ $obj->setVar("tarifs", $_REQUEST["tarifs"]);
+ $obj->setVar("map", $_REQUEST["map"]);
+
+ //Logo
+ $uploaddir_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/';
+ $uploadurl_etablissement = XOOPS_URL . '/uploads/extcal/etablissement/';
+
+ $delimg = @$_REQUEST['delimg'];
+ $delimg = isset($delimg) ? intval($delimg) : 0;
+ if (!empty($_REQUEST['xoops_upload_file'][0]) && $delimg == 0)
+ {
+ $upload = new XoopsMediaUploader($uploaddir_etablissement, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png'), 3145728, null, null);
+ if ($upload->fetchMedia($_REQUEST['xoops_upload_file'][0]))
+ {
+ $upload->setPrefix('etablissement_') ;
+ $upload->fetchMedia($_REQUEST['xoops_upload_file'][0]);
+ if (!$upload->upload()) {
+ $errors = $upload->getErrors();
+ redirect_header("javascript:history.go(-1)",3, $errors);
+ } else {
+ $logo = $upload->getSavedFileName();
+ }
+ } else if (!empty($_REQUEST['file'])) {
+ $logo = $_REQUEST['file'];
+ }
+ } else {
+ $logo = '';
+ $url_etablissement = XOOPS_ROOT_PATH . "/uploads/extcal/etablissement/". $_REQUEST['file'];
+ if (is_file($url_etablissement)){
+ chmod($url_etablissement, 0777);
+ unlink($url_etablissement);
+ }
+ }
+ $obj->setVar("logo", $logo);
+
+
+ if ($etablissementHandler->insert($obj)) {
+ }
+
+ //include_once("../include/forms.php");
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm(false, 0);
+//echo "<hr>exit <<<<<<<<<<<<<<<<<<<<";exi...
[truncated message content] |
|
From: <ma...@us...> - 2012-01-30 22:48:10
|
Revision: 8844
http://xoops.svn.sourceforge.net/xoops/?rev=8844&view=rev
Author: mageg
Date: 2012-01-30 22:48:03 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
update of the core with the avatars plugin
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php
Added Paths:
-----------
XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/16/avatar_custom.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/16/avatar_system.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar_custom.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar_system.png
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php 2012-01-30 22:46:09 UTC (rev 8843)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php 2012-01-30 22:48:03 UTC (rev 8844)
@@ -241,6 +241,9 @@
}
if ($op == 'avatarform') {
+ if (!$xoops->isActiveModule('avatars')) {
+ $xoops->redirect('index.php', 3, _NOPERM);
+ }
$xoops->header();
echo '<a href="userinfo.php?uid=' . $xoops->user->getVar('uid') . '">' . _US_PROFILE . '</a> <span class="bold">»»</span> ' . _US_UPLOADMYAVATAR . '<br /><br />';
$oldavatar = $xoops->user->getVar('user_avatar');
@@ -248,12 +251,12 @@
echo '<div class="pad10 txtcenter floatcenter0"><h4 class="red bold">' . _US_OLDDELETED . '</h4>';
echo '<img src="' . XOOPS_UPLOAD_URL . '/' . $oldavatar . '" alt="" /></div>';
}
- if ($xoopsConfigUser['avatar_allow_upload'] == 1 && $xoops->user->getVar('posts') >= $xoopsConfigUser['avatar_minposts']) {
+ if ($xoops->getModuleConfig('avatars_allowupload', 'avatars') == 1 && $xoops->user->getVar('posts') >= $xoops->getModuleConfig('avatars_postsrequired', 'avatars')) {
$form = new XoopsThemeForm(_US_UPLOADMYAVATAR, 'uploadavatar', 'edituser.php', 'post', true);
$form->setExtra('enctype="multipart/form-data"');
- $form->addElement(new XoopsFormLabel(_US_MAXPIXEL, $xoopsConfigUser['avatar_width'] . ' x ' . $xoopsConfigUser['avatar_height']));
- $form->addElement(new XoopsFormLabel(_US_MAXIMGSZ, $xoopsConfigUser['avatar_maxsize']));
- $form->addElement(new XoopsFormFile(_US_SELFILE, 'avatarfile', $xoopsConfigUser['avatar_maxsize']), true);
+ $form->addElement(new XoopsFormLabel(_US_MAXPIXEL, $xoops->getModuleConfig('avatars_imagewidth', 'avatars') . ' x ' . $xoops->getModuleConfig('avatars_imageheight', 'avatars')));
+ $form->addElement(new XoopsFormLabel(_US_MAXIMGSZ, $xoops->getModuleConfig('avatars_imagefilesize', 'avatars')));
+ $form->addElement(new XoopsFormFile(_US_SELFILE, 'avatarfile', $xoops->getModuleConfig('avatars_imagefilesize', 'avatars')), true);
$form->addElement(new XoopsFormHidden('op', 'avatarupload'));
$form->addElement(new XoopsFormHidden('uid', $xoops->user->getVar('uid')));
$form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
@@ -280,6 +283,9 @@
}
if ($op == 'avatarupload') {
+ if (!$xoops->isActiveModule('avatars')) {
+ $xoops->redirect('index.php', 3, _NOPERM);
+ }
if (!$xoops->security->check()) {
$xoops->redirect('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', $xoops->security->getErrors()));
exit();
@@ -302,7 +308,7 @@
'image/jpeg' ,
'image/pjpeg' ,
'image/x-png' ,
- 'image/png'), $xoopsConfigUser['avatar_maxsize'], $xoopsConfigUser['avatar_width'], $xoopsConfigUser['avatar_height']);
+ 'image/png'), $xoops->getModuleConfig('avatars_imagefilesize', 'avatars'), $xoops->getModuleConfig('avatars_imagewidth', 'avatars'), $xoops->getModuleConfig('avatars_imageheight', 'avatars'));
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
$uploader->setPrefix('cavt');
if ($uploader->upload()) {
@@ -339,6 +345,9 @@
}
if ($op == 'avatarchoose') {
+ if (!$xoops->isActiveModule('avatars')) {
+ $xoops->redirect('index.php', 3, _NOPERM);
+ }
if (!$xoops->security->check()) {
$xoops->redirect('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', $xoops->security->getErrors()));
exit();
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2012-01-30 22:46:09 UTC (rev 8843)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2012-01-30 22:48:03 UTC (rev 8844)
@@ -173,10 +173,6 @@
$dbm->insert('config', " VALUES (21, 0, 2, 'activation_type', '_MD_AM_ACTVTYPE', '0', '_MD_AM_ACTVTYPEDSC', 'select', 'int', 8)");
$dbm->insert('config', " VALUES (22, 0, 2, 'activation_group', '_MD_AM_ACTVGROUP', " . $gruops['XOOPS_GROUP_ADMIN'] . ", '_MD_AM_ACTVGROUPDSC', 'group', 'int', 10)");
$dbm->insert('config', " VALUES (23, 0, 2, 'uname_test_level', '_MD_AM_UNAMELVL', '0', '_MD_AM_UNAMELVLDSC', 'select', 'int', 12)");
- $dbm->insert('config', " VALUES (24, 0, 2, 'avatar_allow_upload', '_MD_AM_AVATARALLOW', '0', '_MD_AM_AVATARALWDSC', 'yesno', 'int', 14)");
- $dbm->insert('config', " VALUES (27, 0, 2, 'avatar_width', '_MD_AM_AVATARW', '120', '_MD_AM_AVATARWDSC', 'textbox', 'int', 16)");
- $dbm->insert('config', " VALUES (28, 0, 2, 'avatar_height', '_MD_AM_AVATARH', '120', '_MD_AM_AVATARHDSC', 'textbox', 'int', 18)");
- $dbm->insert('config', " VALUES (29, 0, 2, 'avatar_maxsize', '_MD_AM_AVATARMAX', '35000', '_MD_AM_AVATARMAXDSC', 'textbox', 'int', 20)");
$dbm->insert('config', " VALUES (30, 0, 1, 'adminmail', '_MD_AM_ADMINML', '" . addslashes($adminmail) . "', '_MD_AM_ADMINMLDSC', 'textbox', 'text', 3)");
$dbm->insert('config', " VALUES (31, 0, 2, 'self_delete', '_MD_AM_SELFDELETE', '0', '_MD_AM_SELFDELETEDSC', 'yesno', 'int', 22)");
$dbm->insert('config', " VALUES (32, 0, 1, 'com_mode', '_MD_AM_COMMODE', 'flat', '_MD_AM_COMMODEDSC', 'select', 'text', 34)");
@@ -193,7 +189,6 @@
$dbm->insert('config', " VALUES (43, 0, 3, 'meta_robots', '_MD_AM_METAROBOTS', 'index,follow', '_MD_AM_METAROBOTSDSC', 'select', 'text', 2)");
$dbm->insert('config', " VALUES (44, 0, 5, 'enable_search', '_MD_AM_DOSEARCH', '1', '_MD_AM_DOSEARCHDSC', 'yesno', 'int', 0)");
$dbm->insert('config', " VALUES (45, 0, 5, 'keyword_min', '_MD_AM_MINSEARCH', '5', '_MD_AM_MINSEARCHDSC', 'textbox', 'int', 1)");
- $dbm->insert('config', " VALUES (46, 0, 2, 'avatar_minposts', '_MD_AM_AVATARMP', '0', '_MD_AM_AVATARMPDSC', 'textbox', 'int', 15)");
$dbm->insert('config', " VALUES (47, 0, 1, 'enable_badips', '_MD_AM_DOBADIPS', '0', '_MD_AM_DOBADIPSDSC', 'yesno', 'int', 40)");
$dbm->insert('config', " VALUES (48, 0, 3, 'meta_rating', '_MD_AM_METARATING', 'general', '_MD_AM_METARATINGDSC', 'select', 'text', 4)");
$dbm->insert('config', " VALUES (49, 0, 3, 'meta_author', '_MD_AM_METAAUTHOR', 'XOOPS', '_MD_AM_METAAUTHORDSC', 'textbox', 'text', 6)");
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/16/avatar_custom.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/16/avatar_custom.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/16/avatar_system.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/16/avatar_system.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar_custom.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar_custom.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar_system.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/media/xoops/images/icons/32/avatar_system.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php 2012-01-30 22:46:09 UTC (rev 8843)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/preferences.php 2012-01-30 22:48:03 UTC (rev 8844)
@@ -96,17 +96,6 @@
define("_MD_AM_ALLOWHTML", "Allow HTML tags in user comments?");
define("_MD_AM_DEBUGMODE", "Debug mode");
define("_MD_AM_DEBUGMODEDSC", "Several debug options. A running website should have this turned off.");
-define("_MD_AM_AVATARALLOW", "Allow custom avatar upload?");
-define("_MD_AM_AVATARALWDSC", "");
-define("_MD_AM_AVATARMP", "Minimum posts required");
-define("_MD_AM_AVATARMPDSC", "Enter the minimum number of posts required to upload a custom avatar");
-define("_MD_AM_AVATARW", "Avatar image max width (pixel)");
-define("_MD_AM_AVATARWDSC", "");
-define("_MD_AM_AVATARH", "Avatar image max height (pixel)");
-define("_MD_AM_AVATARHDSC", "");
-define("_MD_AM_AVATARMAX", "Avatar image max filesize (byte)");
-define("_MD_AM_AVATARMAXDSC", "");
-define("_MD_AM_AVATARCONF", "Custom avatar settings");
define("_MD_AM_CHNGUTHEME", "Change all users' theme");
define("_MD_AM_NOTIFYTO", "Select group to which new user notification mail will be sent");
define("_MD_AM_NOTIFYTODSC", "");
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html 2012-01-30 22:46:09 UTC (rev 8843)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html 2012-01-30 22:48:03 UTC (rev 8844)
@@ -7,7 +7,9 @@
<table class="width70 aligncenter bnone">
<tr class="txtcenter">
<td><input type="button" value="<{$lang_editprofile}>" onclick="location='edituser.php'" />
+ <{if $avatars == true}>
<input type="button" value="<{$lang_avatar}>" onclick="location='edituser.php?op=avatarform'" />
+ <{/if}>
<input type="button" value="<{$lang_inbox}>" onclick="location='viewpmsg.php'" />
<{if $user_candelete == true}>
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php 2012-01-30 22:46:09 UTC (rev 8843)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php 2012-01-30 22:48:03 UTC (rev 8844)
@@ -78,6 +78,12 @@
$xoops->tpl->assign('user_uid', $thisUser->getVar('uid'));
}
+if ($xoops->isActiveModule('avatars')) {
+ $xoops->tpl->assign('avatars', true);
+}else{
+ $xoops->tpl->assign('avatars', false);
+}
+
$xoops->tpl->assign('xoops_pagetitle', sprintf(_US_ALLABOUT, $thisUser->getVar('uname')));
$xoops->tpl->assign('lang_allaboutuser', sprintf(_US_ALLABOUT, $thisUser->getVar('uname')));
$xoops->tpl->assign('lang_avatar', _US_AVATAR);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2012-01-30 22:46:15
|
Revision: 8843
http://xoops.svn.sourceforge.net/xoops/?rev=8843&view=rev
Author: mageg
Date: 2012-01-30 22:46:09 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
small error in protector
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php 2012-01-30 22:45:48 UTC (rev 8842)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/index.php 2012-01-30 22:46:09 UTC (rev 8843)
@@ -32,10 +32,9 @@
$indexAdmin = new XoopsModuleAdmin();
$indexAdmin->renderNavigation('index.php');
-$indexAdmin->addInfoBox(_MI_AVATARS_SYSTEM, 'off');
+$indexAdmin->addInfoBox(_MI_PROTECTOR_ADMININDEX, 'off');
$indexAdmin->addInfoBoxLine(sprintf(_AM_PROTECTOR_NBALERT, '<span class="red">' . $numrows . '</span>'), 'off');
-
$indexAdmin->renderIndex();
$xoops->footer();
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2012-01-30 22:45:54
|
Revision: 8842
http://xoops.svn.sourceforge.net/xoops/?rev=8842&view=rev
Author: mageg
Date: 2012-01-30 22:45:48 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
update the module with the avatars plugin
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/edituser.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/templates/profile_userinfo.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/edituser.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/edituser.php 2012-01-30 22:41:20 UTC (rev 8841)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/edituser.php 2012-01-30 22:45:48 UTC (rev 8842)
@@ -103,6 +103,9 @@
}
if ($op == 'avatarform') {
+ if (!$xoops->isActiveModule('avatars')) {
+ $xoops->redirect('index.php', 3, _NOPERM);
+ }
$xoops->header('profile_avatar.html');
$xoops->appendConfig('profile_breadcrumbs', array('title' => _US_MYAVATAR));
@@ -110,12 +113,12 @@
if (!empty($oldavatar) && $oldavatar != 'blank.gif') {
$xoops->tpl->assign('old_avatar', XOOPS_UPLOAD_URL . '/' . $oldavatar);
}
- if ($xoops->getConfig('avatar_allow_upload') == 1 && $xoops->user->getVar('posts') >= $xoops->getConfig('avatar_minposts')) {
+ if ($xoops->getModuleConfig('avatars_allowupload', 'avatars') == 1 && $xoops->user->getVar('posts') >= $xoops->getModuleConfig('avatars_postsrequired', 'avatars')) {
$form = new XoopsThemeForm(_US_UPLOADMYAVATAR, 'uploadavatar', XOOPS_URL . '/modules/' . $xoops->module->getVar('dirname', 'n') . '/edituser.php', 'post', true);
$form->setExtra('enctype="multipart/form-data"');
- $form->addElement(new XoopsFormLabel(_US_MAXPIXEL, $xoops->getConfig('avatar_width') . ' x ' . $xoops->getConfig('avatar_height')));
- $form->addElement(new XoopsFormLabel(_US_MAXIMGSZ, $xoops->getConfig('avatar_maxsize')));
- $form->addElement(new XoopsFormFile(_US_SELFILE, 'avatarfile', $xoops->getConfig('avatar_maxsize')), true);
+ $form->addElement(new XoopsFormLabel(_US_MAXPIXEL, $xoops->getModuleConfig('avatars_imagewidth', 'avatars') . ' x ' . $xoops->getModuleConfig('avatars_imageheight', 'avatars')));
+ $form->addElement(new XoopsFormLabel(_US_MAXIMGSZ, $xoops->getModuleConfig('avatars_imagefilesize', 'avatars')));
+ $form->addElement(new XoopsFormFile(_US_SELFILE, 'avatarfile', $xoops->getModuleConfig('avatars_imagefilesize', 'avatars')), true);
$form->addElement(new XoopsFormHidden('op', 'avatarupload'));
$form->addElement(new XoopsFormHidden('uid', $xoops->user->getVar('uid')));
$form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
@@ -141,6 +144,9 @@
}
if ($op == 'avatarupload') {
+ if (!$xoops->isActiveModule('avatars')) {
+ $xoops->redirect('index.php', 3, _NOPERM);
+ }
if (!$xoops->security->check()) {
$xoops->redirect('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', $xoops->security->getErrors()));
}
@@ -160,7 +166,7 @@
'image/gif', 'image/jpeg',
'image/pjpeg', 'image/x-png',
'image/png'
- ), $xoops->getConfig('avatar_maxsize'), $xoops->getConfig('avatar_width'), $xoops->getConfig('avatar_height'));
+ ), $xoops->getModuleConfig('avatars_imagefilesize', 'avatars'), $xoops->getModuleConfig('avatars_imagewidth', 'avatars'), $xoops->getModuleConfig('avatars_imageheight', 'avatars'));
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
$uploader->setPrefix('cavt');
if ($uploader->upload()) {
@@ -197,6 +203,9 @@
}
if ($op == 'avatarchoose') {
+ if (!$xoops->isActiveModule('avatars')) {
+ $xoops->redirect('index.php', 3, _NOPERM);
+ }
if (!$xoops->security->check()) {
$xoops->redirect('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', $xoops->security->getErrors()));
}
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/templates/profile_userinfo.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/templates/profile_userinfo.html 2012-01-30 22:41:20 UTC (rev 8841)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/templates/profile_userinfo.html 2012-01-30 22:45:48 UTC (rev 8842)
@@ -36,8 +36,9 @@
<input type="button" value="<{$lang_deleteaccount}>" onclick="submit();" />
</form>
<{/if}>
-
+ <{if $avatars == true}>
<input type="button" value="<{$lang_avatar}>" onclick="location='edituser.php?op=avatarform'" />
+ <{/if}>
<input type="button" value="<{$lang_inbox}>" onclick="location='<{$xoops_url}>/viewpmsg.php'" />
<input type="button" value="<{$lang_logout}>" onclick="location='<{$xoops_url}>/modules/<{$xoops_dirname}>/user.php?op=logout'" />
</form>
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php 2012-01-30 22:41:20 UTC (rev 8841)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php 2012-01-30 22:45:48 UTC (rev 8842)
@@ -118,6 +118,12 @@
$xoops->tpl->assign('userlevel', $thisUser->isActive());
}
+if ($xoops->isActiveModule('avatars')) {
+ $xoops->tpl->assign('avatars', true);
+}else{
+ $xoops->tpl->assign('avatars', false);
+}
+
$xoops->tpl->assign('xoops_pagetitle', sprintf(_US_ALLABOUT, $thisUser->getVar('uname')));
// Dynamic User Profiles
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|