|
From: <be...@us...> - 2013-08-25 20:45:28
|
Revision: 11979
http://sourceforge.net/p/xoops/svn/11979
Author: beckmi
Date: 2013-08-25 20:45:24 +0000 (Sun, 25 Aug 2013)
Log Message:
-----------
Converting to XOOPS 2.5.6 Admin GUI
Modified Paths:
--------------
XoopsModules/weblog/trunk/weblog/admin/catmanager.php
XoopsModules/weblog/trunk/weblog/admin/dbmanager.php
XoopsModules/weblog/trunk/weblog/admin/groupperm_global.php
XoopsModules/weblog/trunk/weblog/admin/index.php
XoopsModules/weblog/trunk/weblog/admin/menu.php
XoopsModules/weblog/trunk/weblog/admin/privmanager.php
XoopsModules/weblog/trunk/weblog/archive.php
XoopsModules/weblog/trunk/weblog/backend_weblog.php
XoopsModules/weblog/trunk/weblog/blocks/weblog_recent.php
XoopsModules/weblog/trunk/weblog/class/category.php
XoopsModules/weblog/trunk/weblog/class/class.weblog.php
XoopsModules/weblog/trunk/weblog/class/class.weblogtrackback.php
XoopsModules/weblog/trunk/weblog/class/entry.php
XoopsModules/weblog/trunk/weblog/class/priv.php
XoopsModules/weblog/trunk/weblog/class/trackback.php
XoopsModules/weblog/trunk/weblog/details.php
XoopsModules/weblog/trunk/weblog/header.php
XoopsModules/weblog/trunk/weblog/images/weblog0_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog1_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog2_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog3_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog4_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog5_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog6_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog7_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog8_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog9_slogo.png
XoopsModules/weblog/trunk/weblog/images/weblog_slogo.png
XoopsModules/weblog/trunk/weblog/include/PEAR/HTTP/Request.php
XoopsModules/weblog/trunk/weblog/include/PEAR/Net/TrackBack.php
XoopsModules/weblog/trunk/weblog/include/PEAR/PEAR.php
XoopsModules/weblog/trunk/weblog/include/PEAR/XML/Parser.php
XoopsModules/weblog/trunk/weblog/include/PEAR/XML/Unserializer.php
XoopsModules/weblog/trunk/weblog/include/myalbum_imagemanager/class/myalbum.textsanitizer.php
XoopsModules/weblog/trunk/weblog/include/myalbum_imagemanager/include/draw_functions.php
XoopsModules/weblog/trunk/weblog/include/myalbum_imagemanager/include/functions.php
XoopsModules/weblog/trunk/weblog/include/myformtextdateselect.php
XoopsModules/weblog/trunk/weblog/include/privilege.inc.php
XoopsModules/weblog/trunk/weblog/index.php
XoopsModules/weblog/trunk/weblog/language/english/admin.php
XoopsModules/weblog/trunk/weblog/language/english/modinfo.php
XoopsModules/weblog/trunk/weblog/language/german/admin.php
XoopsModules/weblog/trunk/weblog/language/german/main.php
XoopsModules/weblog/trunk/weblog/language/german/modinfo.php
XoopsModules/weblog/trunk/weblog/language/german/myalbum_constants.php
XoopsModules/weblog/trunk/weblog/language/japanese/admin.php
XoopsModules/weblog/trunk/weblog/language/japanese/blocks.php
XoopsModules/weblog/trunk/weblog/language/japanese/main.php
XoopsModules/weblog/trunk/weblog/language/japanese/modinfo.php
XoopsModules/weblog/trunk/weblog/language/japanese/myalbum_constants.php
XoopsModules/weblog/trunk/weblog/post.php
XoopsModules/weblog/trunk/weblog/post.php.KOIVI
XoopsModules/weblog/trunk/weblog/sql/mysql.sql
XoopsModules/weblog/trunk/weblog/weblog-imagemanager.php
XoopsModules/weblog/trunk/weblog/weblog-imagemanager_post.php
XoopsModules/weblog/trunk/weblog/weblog-rdf.php
XoopsModules/weblog/trunk/weblog/xoops_version.php
Added Paths:
-----------
XoopsModules/weblog/trunk/weblog/admin/about.php
XoopsModules/weblog/trunk/weblog/admin/admin_footer.php
XoopsModules/weblog/trunk/weblog/admin/admin_header.php
XoopsModules/weblog/trunk/weblog/admin/main.php
XoopsModules/weblog/trunk/weblog/class/class.weblogtree.php
XoopsModules/weblog/trunk/weblog/docs/
XoopsModules/weblog/trunk/weblog/docs/changelog.txt
XoopsModules/weblog/trunk/weblog/docs/credits.txt
XoopsModules/weblog/trunk/weblog/docs/index.html
XoopsModules/weblog/trunk/weblog/docs/install.txt
XoopsModules/weblog/trunk/weblog/docs/lang_diff.txt
XoopsModules/weblog/trunk/weblog/docs/license.txt
XoopsModules/weblog/trunk/weblog/docs/readme.txt
XoopsModules/weblog/trunk/weblog/docs/zzz.php
XoopsModules/weblog/trunk/weblog/include/directorychecker.php
XoopsModules/weblog/trunk/weblog/language/english/help/
XoopsModules/weblog/trunk/weblog/language/english/help/help.html
XoopsModules/weblog/trunk/weblog/language/english/help/index.html
XoopsModules/weblog/trunk/weblog/language/index.html
Removed Paths:
-------------
XoopsModules/weblog/trunk/weblog/INSTALL.txt
XoopsModules/weblog/trunk/weblog/README_UTF8.TXT
Deleted: XoopsModules/weblog/trunk/weblog/INSTALL.txt
===================================================================
--- XoopsModules/weblog/trunk/weblog/INSTALL.txt 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/INSTALL.txt 2013-08-25 20:45:24 UTC (rev 11979)
@@ -1,36 +0,0 @@
-$Id: INSTALL.txt,v 1.5 2003/10/26 08:28:42 wellwine Exp $
-
-Quick installation instructions:
-
-1. Unzip/Untar the downloaded file to the xoops module directory
-2. Add styles.css to your theme .css file or /xoops.css
-3. Install as a normal module.
-
-Quick update instructions:
-1. Unzip/Untar the downloaded file to the xoops module directory
-2. Update as a normal module.
-3. Go to weBLog Admin page and click 'Database'
-4. Check database clicking 'Check database structure'
-5. Create tables or columns in database if there are buttons to do it
-6. do not forget register groups you want to allow to post in Privilege page
-
-For more information for installation and updating the module, visit the website
-http://wellwin.net/ and jump to Projects page. You could find user's manual, it
-is always under development though, in which there is more instructions.
-
-From v1.10, You do not have to copy or move backend_weblog.php.
-You can just specify at Admin menu whether or not RSS icon is showed in list page.
-Also templates were changed and added, therefore when you upgrade the module,
-you have to do module update in Admin menu or edit your templates if you use your
-own templates set instead of default.
-
-Caution:
-Please use this module on your own risk.
-
-If you have questions, comments or suggestions, please visit
-http://wellwine.net/ and post in forum. It would be appreciated any comments or
-encouragement :-)
-
-Thanks for trying the module!
-
-wellwine
Deleted: XoopsModules/weblog/trunk/weblog/README_UTF8.TXT
===================================================================
--- XoopsModules/weblog/trunk/weblog/README_UTF8.TXT 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/README_UTF8.TXT 2013-08-25 20:45:24 UTC (rev 11979)
@@ -1,249 +0,0 @@
-/**************************************************************
-* If you find bugs or you have requests, please tell me.
-* Fixed Language package is most wellcome.
-* web...@to...
-* http://xoopsdevelopment.tohokuaiki.jp
-**************************************************************/
-
-Main new function is trackback system which many Blog system are already equipped .
-Sending update ping function is also able.
-
-And .....
-- You can syndicate weBLogs through not only RSS2.0 but also RSS1.0(RDF).
-- You can set default option setting when you post weblog .
- (Options are invalidate HTML tag/Private mode/Send update Ping.)
-- weBlog module's peculiar style sheet which is located in /weblog/styles.css is automatically included .
-- Some bugs fix.
-
-
-2 cautions I have to mention about language files.
-( english / espanol / french / german / italian / japanese / spanish / x_brazilian_portuguese)
-There is only 2 languages english and japanese , since I have no another linguistic knowledges.
-Ver.1.3 seems including many languages. So, if you localize them , please teach me.
-I'll include them when I release (and after release).
-
-For sending update ping , /weblog/language/******/commonping_servers.inc.php file is required.
-This file is only common update ping servers terminated by new line.
-As I don't know common update ping servers in the sphere of French , Spanish.... etc ,
-/weblog/language/*******/commonping_servers.inc.php is blank.
-
-
-How to Update (1.3 to 1.4)
-
-0. At first expand tarball file.
-1. Change your old weblog directory to expanded one.
-2. At SYSTEM ADMIN->Modules in Administration menu , you can update weBLog module.
-3. At SYSTEM ADMIN->Templates , you can update weBlog templates set.
- ( you have to update only weblog_entries.html and weblog_details.html)
-4. At DATABASE in weBLog module admin menu, you can check database tables structure.Click Go!.
-5. You will find these messages "Column trackbacks not found ......" and "Create table 'weblog_trackback'" . Please create a column and a table.
-
-
-
-
-How to duplicate and change install directory name.
-
-This module can duplicate. But install directory name is required weblog+number. For example weblog / weblog0 / weblog1 .....
-number must be unique.
-I prepare for weblog0 and weblog1 . If you want to weblog 1 as second blog module , only you have to do is
-copy weblog directory and rename weblog1 and install as you do usually.
-
- If you want to use weblog3 or weblog 4 and so on, You have to change some of files. See below.
-1. copy all files and rename as weblog3.
-2. rename like this
-/weblog3/sql/mysql1.sql -> /weblog/sql/mysql3.sql
-/weblog3/templates/weblog1_archive.html -> /weblog3/templates/weblog3_archive.html
-/weblog3/templates/weblog1_calblock.css.html -> /weblog3/templates/weblog3_calblock.css.html
-/weblog3/templates/weblog1_details.html -> /weblog3/templates/weblog3_details.html
-/weblog3/templates/weblog1_entries.html -> /weblog3/templates/weblog3_entries.html
-/weblog3/templates/weblog1_imagemanager.html -> /weblog3/templates/weblog3_imagemanager.html
-/weblog3/templates/weblog1_post.html -> /weblog3/templates/weblog3_post.html
-/weblog3/templates/weblog1_print.html -> /weblog3/templates/weblog3_print.html
-/weblog3/templates/weblog1_rss.html -> /weblog3/templates/weblog3_rss.html
-/weblog3/templates/blocks/weblog1_block_archive.html -> /weblog3/templates/blocks/weblog3_block_archive.html
-/weblog3/templates/blocks/weblog1_block_calendar.html -> /weblog3/templates/blocks/weblog3_block_calendar.html
-/weblog3/templates/blocks/weblog1_block_category_list.html -> /weblog3/templates/blocks/weblog3_block_category_list.html
-/weblog3/templates/blocks/weblog1_block_links.html -> /weblog3/templates/blocks/weblog3_block_links.html
-/weblog3/templates/blocks/weblog1_block_recent_com.html -> /weblog3/templates/blocks/weblog3_block_recent_com.html
-/weblog3/templates/blocks/weblog1_block_recent_image.html -> /weblog3/templates/blocks/weblog3_block_recent_image.html
-/weblog3/templates/blocks/weblog1_block_recent_tb.html -> /weblog3/templates/blocks/weblog3_block_recent_tb.html
-/weblog3/templates/blocks/weblog1_block_recent.html -> /weblog3/templates/blocks/weblog3_block_recent.html
-/weblog3/templates/blocks/weblog1_block_top_weblogs.html -> /weblog3/templates/blocks/weblog3_block_top_weblogs.html
-/weblog3/templates/blocks/weblog1_block_users_weblogs.html -> /weblog3/templates/blocks/weblog3_block_users_weblogs.html
-3. change mysql3.sql file. All 'weblog1' to 'weblog3'.
-4. install.
-
-And you can change weblog directory name with some efforts.
-if you want to install as "myblog", all you have to do is change mysql.sql.
-please change string "weblog" to myblog.
-
-Combination these method , you can create hisblog1 , herblog3 ..etc.
-
-
-
-
-
-CHANGES
-version 1.41 -- 04/08/2005
- 1. Include ticket system when blogger post , edit or delete entries. ( Special thanks to GIJOE )
- 2. 4 Blocks add . Link module integrated , Recent entries group by Bloggers , Recent comment of weBLog , Recent Trackback
- 3. Function which divide Entry first half and latter half
- 4. Function which makes member only readable part
- 5. Some bugs fix.
- 6. Test mode --- image manager added. It is based on GIJOE's myalbum-P Xoops core imagemanager integration fucntion.
- If you want to use this function , you have to create new DB table "weblogmyalbum_photos" via weBLog module admin menu "Database".
-
-version 1.42 -- 05/06/2005
- At First :: You have to check your database via Admin menu -> weblog -> database . New column "permission_group" exists in 'weblog' table.
- Mainly add privilege functions
- 1. Entry permission to every group : You can add permission which make some groups not to read the entry.You can also set show only title mode.
- 2. Category permission to bloggers : You can adjust which group is able to post a entry to the category or not.
- Attention :: If a group is forbidden to post a category , they also can't post its child ones.
- 3. Change category navigation.
- 4. XOOPS standard privilege system is added. You can choose which privilege system to use XOOPS standard system or weBLog simple one.
- 5. Module duplicate function . You can install 2 or more weBLog module. Copy weblog directory to weblog0 , weblog1 ....
- ( Sorry, I only prepare only weblog0/weblog1. )
- 6. Category list block is added. (thx hodaka)
- -- 06/18/2005
- 7. add mini-calendar block.(thx hodaka)
- 8. add archive block.(thx hodaka)
- 9. renewal archive page.(thx hodaka)
- 10.Recent entries block and Recent users entries block can display contents of entry.
- 11.sort next|prev navigation in details.php from blog_id to created time.
- -- 08/15/2005
- 12.consider user's timezone.
- 13.able to set "HTML FORBIDDEN MODE"
- 14.able to set "BLOG NAME" when transmit trackback to another blog.
- 15.able to set whether count up XOOPS user posts or not when user post entry.
- 16. PHP5 ready
- 17.some bugs fix.
- 18.Add Spanish language pack.(thanks lunallena)
- Thanks for all users who tell me bugs or requests at http://xoopsdevelopment.tohokuaiki.jp
-
------------ Japanese UTF-8 ------------
- 1.3からの新機能は、
-
-・トラックバック機能
-トラックバックは、エントリの詳細表示時に送受信のどちらともサマリが表示されます。投稿後やトラックバック受信後の削除は、エントリの編集画面から行えます。
-送信したトラックバックを削除する時は、トラックバックURL記入欄から当該URLを消して投稿すれば削除できます。もちろん、相手側のサーバから消せるという訳ではありません。
-受信したトラックバックを削除する時は、削除したいトラックバックをチェックして投稿すれば削除できます。
-更新Pingは、Pingサーバ一覧を/weblog/language/japanese/commonping_servers.inc.phpにありますので、ご希望に合わせて増減させてください。なお、このファイル内では#でコメントアウトできます。
-
-
-・RDF形式でのエントリ配信
-RSSに加えてRDF形式でもエントリを配信できます
-
-
-・投稿時のオプションのデフォルト設定
-HTMLタグを無効/プライベート/更新pingを送るについて、投稿時に最初からチェックが入っているかどうかの設定ができます。
-
-・スタイルシートの自動読み込み
-従来は、手でtheme.htmlなどにコピーしなければならなかったのを、自動で/weblog/styles.cssを読み込むようにしています。
-
-バグや要望などは、
-http://xoopsdevelopment.tohokuaiki.jp/
-
-
-なお、うぇブログ 1.3から1.4へのアップデート方法です。
-(うぇブログ+Trackbackからでもアップデートできます)
-
-0. ダウンロードしたファイルを展開してweblogディレクトリを取り出す。
-1. 既存の/modules/weblogディレクトリを、先ほど展開したweblogディレクトリと入れ替え
-2. 管理画面の「SYSTEM ADMIN」→「モジュール管理」でうぇブログのアップデート操作
-3. 管理画面の「SYSTEM ADMIN」→「テンプレートセット・マネジャー」でうぇブログのテンプレートセット作成
- weblog_details.htmlとweblog_entries.htmlのみアップデートすればO.Kです
-4. 管理画面の「うぇブログ」→「データベース管理」から「テーブル構成確認」を行う
-5. テーブル: 'weblog'にて、'trackbacks'カラムが見つかりません というのと、
- テーブル: 'weblog_trackback'にて、'weblog_trackback'テーブルを作成する というのが出るので作成
-
-これで、使えるようになります。
-
-
-注意:トラックバックを受けるには、ゲストに対してモジュールのアクセス権限を解放する必要があります。
-
-
-
-
-・うぇブログモジュールの複製法方法とインストールディレクトリ名の変更
-
-このモジュールはGIJOEさんのPEAKシリーズのように複製ができます。また、インストールディレクトリ名も
-変更できますが、PEAKシリーズよりちょっとだけ手間を必要とします。
-複製する時には、"半角英数"+数字という形で、数字が重ならなければいくつでも行けるはずです。
-weblogというのは、数字無しというたった一つのケースと言えます。
-
-weblog0とweblog1は用意しておきましたので、weblogディレクトリを丸ごとコピーして、
-weblog0と名前を付け替えて、普通にモジュールインストールを行えば大丈夫です。
-
-もし、weblog3とかweblog4とかを作りたくなった場合は、以下のようにしてください。
-1. まず、weblogディレクトリのまるごとコピーをして、weblog3と名称をつけます.
-2. 次のファイルを右のように名前を付け替えます。
-/weblog3/sql/mysql1.sql -> /weblog/sql/mysql3.sql
-/weblog3/templates/weblog1_archive.html -> /weblog3/templates/weblog3_archive.html
-/weblog3/templates/weblog1_calblock.css.html -> /weblog3/templates/weblog3_calblock.css.html
-/weblog3/templates/weblog1_details.html -> /weblog3/templates/weblog3_details.html
-/weblog3/templates/weblog1_entries.html -> /weblog3/templates/weblog3_entries.html
-/weblog3/templates/weblog1_imagemanager.html -> /weblog3/templates/weblog3_imagemanager.html
-/weblog3/templates/weblog1_post.html -> /weblog3/templates/weblog3_post.html
-/weblog3/templates/weblog1_print.html -> /weblog3/templates/weblog3_print.html
-/weblog3/templates/weblog1_rss.html -> /weblog3/templates/weblog3_rss.html
-/weblog3/templates/blocks/weblog1_block_archive.html -> /weblog3/templates/blocks/weblog3_block_archive.html
-/weblog3/templates/blocks/weblog1_block_calendar.html -> /weblog3/templates/blocks/weblog3_block_calendar.html
-/weblog3/templates/blocks/weblog1_block_category_list.html -> /weblog3/templates/blocks/weblog3_block_category_list.html
-/weblog3/templates/blocks/weblog1_block_links.html -> /weblog3/templates/blocks/weblog3_block_links.html
-/weblog3/templates/blocks/weblog1_block_recent_com.html -> /weblog3/templates/blocks/weblog3_block_recent_com.html
-/weblog3/templates/blocks/weblog1_block_recent_image.html -> /weblog3/templates/blocks/weblog3_block_recent_image.html
-/weblog3/templates/blocks/weblog1_block_recent_tb.html -> /weblog3/templates/blocks/weblog3_block_recent_tb.html
-/weblog3/templates/blocks/weblog1_block_recent.html -> /weblog3/templates/blocks/weblog3_block_recent.html
-/weblog3/templates/blocks/weblog1_block_top_weblogs.html -> /weblog3/templates/blocks/weblog3_block_top_weblogs.html
-/weblog3/templates/blocks/weblog1_block_users_weblogs.html -> /weblog3/templates/blocks/weblog3_block_users_weblogs.html
-3. mysql3.sqlファイルにある 'weblog1'という部分を全て'weblog3'にします。
-4. 普通にインストールします。
-
-もし、weblogというディレクトリ名を変えたい場合は、英数半角でお好きなものに変えてください。
-そこ後、もし"myblog"という名前にしたら、/myblog/sql/mysql.sqlにあるweblogという文字列を
-myblogにすればオッケーです。その後、インストールしてください。
-
-この二つの方法を組み合わせることで、hisblog1 , herblog3 ..といった複数インストールも出来ます。
-
-
-
-
-
-変更履歴
-version 1.41 -- 2005/04/08
-バージョンアップする為には、モジュールアップデートを行ってください。
- 1. GIJOEさんが作ったチケットシステムをブログ投稿/編集/削除の所に導入
- 2. 4つの新しいブロックを追加(リンクモジュール統合ブロック・ユーザごとの最新の投稿一覧・最近のweBLogへのコメント・最近のトラックバック)
- 3. エントリの前半と後半を分ける機能
- 4. エントリの一部を登録ユーザのみが読めるような機能
- 5. 試験的にイメージマネージャを付けています。myalbum-Pモジュールのイメージマネージャ統合機能を移植したものです。
- 6. これを使う為には、weBLogの管理画面から「データベース管理」を開いて、「weblogmyalbum_photos」テーブルを作る必要があります。
-
-version 1.42 -- 2005/05/06
-バージョンアップする為には、モジュールアップデートを行ってください。また、今回のバージョンアップで
-'weblog'テーブルにpermission_groupというフィールドが増えましたので、うぇブログの「データベース管理」から当該フィールドを増やしてください。
-今回は、主に権限管理について強化を行いました。
- 1. エントリの投稿時にこのエントリを閲覧できるグループを設定できます。タイトルだけ見せて本文を見せないモードにすることもできます。
- 2. グループ毎に「どのカテゴリに投稿することができるか」という設定をすることができます。
- ご注意:あるカテゴリを投稿禁止にした場合は、そのカテゴリに属する全てのサブカテゴリに投稿できなくなります。
- 3. カテゴリのナビゲーション表示を変えました。
- 4. 投稿権限や閲覧権限をXOOPSの標準の権限管理方法といままでのうぇブログの権限管理方法のどちらにするかを選べます。
- 5. モジュール複製機能が使えます。weblog0・weblog1・・・とできます。weblog0/1は用意しましたが、それ以上は逐次お願いします。
- 6. カテゴリリストのブロックを加えました。(thx hodaka)
- -- 2005/06/18
- 7. ミニカレンダーブロックを加えました。(thx hodaka)
- 8. アーカイブブロックを加えました。(thx hodaka)
- 9. アーカイブページを改良しました。(thx hodaka)
- 10. 最近の投稿 / 最近のユーザ毎の投稿のブロックでエントリの内容を表示できるようにしました。
- 11. details.phpの「次のエントリ」「前のエントリ」をブログIDから時系列でソートするようにしました。
- -- 2005/08/15
- 12. タイムゾーンの設定がきちんと効くようにしました。
- 13. HTMLタグを全面禁止に出来るようにしました。
- 14.トラックバック送信時のブログ名の設定が出来るようにしました。
- 15.XOOPSの「投稿数」に反映するかどうか設定できるようにしました。
- 16.PHP5対応
- 17.その他もろもろのバグフィックス
- 18.スペイン語対応(lunallenaさんありがとうございます)
- http://xoopsdevelopment.tohokuaiki.jpで様々なバグやリクエストをくださった全てのユーザに感謝します。
-
-
\ No newline at end of file
Added: XoopsModules/weblog/trunk/weblog/admin/about.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/about.php (rev 0)
+++ XoopsModules/weblog/trunk/weblog/admin/about.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -0,0 +1,30 @@
+<?php
+/*
+ * 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+include_once dirname(__FILE__) . '/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
Property changes on: XoopsModules/weblog/trunk/weblog/admin/about.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/weblog/trunk/weblog/admin/admin_footer.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/admin_footer.php (rev 0)
+++ XoopsModules/weblog/trunk/weblog/admin/admin_footer.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -0,0 +1,28 @@
+<?php
+/*
+ * 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+echo "<div class='adminfooter'>\n"
+ ." <div style='text-align: center;'>\n"
+ ." <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
+ ." </div>\n"
+ ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
+ ."</div>";
+
+xoops_cp_footer();
\ No newline at end of file
Property changes on: XoopsModules/weblog/trunk/weblog/admin/admin_footer.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/weblog/trunk/weblog/admin/admin_header.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/admin_header.php (rev 0)
+++ XoopsModules/weblog/trunk/weblog/admin/admin_header.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -0,0 +1,42 @@
+<?php
+/*
+ * 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 The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
+
+$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';
+
+global $xoopsModule;
+
+$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+
+//if functions.php file exist
+//require_once dirname(dirname(__FILE__)) . '/include/functions.php';
+
+// Load language files
+xoops_loadLanguage('admin', $thisModuleDir);
+xoops_loadLanguage('modinfo', $thisModuleDir);
+xoops_loadLanguage('main', $thisModuleDir);
+
+$pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
+$pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
+
+include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
\ No newline at end of file
Property changes on: XoopsModules/weblog/trunk/weblog/admin/admin_header.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: XoopsModules/weblog/trunk/weblog/admin/catmanager.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/catmanager.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/admin/catmanager.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -26,10 +26,12 @@
include(sprintf('%s/include/cp_header.php', XOOPS_ROOT_PATH));
include_once(sprintf('%s/modules/%s/header.php', XOOPS_ROOT_PATH, $xoopsModule->dirname()));
include('admin.inc.php');
-include_once(sprintf('%s/class/xoopstree.php', XOOPS_ROOT_PATH));
+include_once(sprintf('%s/modules/%s/class/class.weblogtree.php', XOOPS_ROOT_PATH));
+include_once dirname(__FILE__) . '/admin_header.php';
+
$myts =& MyTextSanitizer::getInstance();
-$mytree = new XoopsTree($xoopsDB->prefix($mydirname . '_category'), 'cat_id', 'cat_pid');
+$mytree = new WeblogTree($xoopsDB->prefix($mydirname . '_category'), 'cat_id', 'cat_pid');
$action = (isset($_POST['action']))? $_POST['action'] : "" ;
$action = (isset($_GET['action']))? $_GET['action'] : $action ;
@@ -98,13 +100,16 @@
include_once(sprintf('%s/modules/%s/include/gtickets.php', XOOPS_ROOT_PATH, $xoopsModule->dirname())) ;
xoops_cp_header();
- echo sprintf('<h4>%s »» %s</h4>', indexLink(), _AM_WEBLOG_CATMANAGER);
+// echo sprintf('<h4>%s »» %s</h4>', indexLink(), _AM_WEBLOG_CATMANAGER);
$gperm_handler =& xoops_gethandler('groupperm');
$weblogcats =& WeblogCategories::getInstance();
// $mytree->makeMySelBox('cat_title', 'cat_title');
-
+ $indexAdmin = new ModuleAdmin();
+ echo $indexAdmin->addNavigation('catmanager.php');
+
+
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
$form_add = new XoopsThemeForm(_AM_WEBLOG_ADDCAT, 'weblog_cat_form', 'catmanager.php');
$form_add->addElement(new XoopsFormText(_AM_WEBLOG_TITLE, 'cat_title', 50, 255, ''), true);
@@ -129,7 +134,7 @@
$global_perms_array = array();
foreach( $wb_cat_array as $category_data ){
$global_perms_array[$category_data['cat_id']] = $category_data['cat_title'] ;
-
+
}
$form_catgperm = new MyXoopsGroupPermForm( '' , $xoopsModule->mid() , 'weblog_cat_post' , "<br /><hr /><br /><h4>"._AM_WEBLOG_CAT_SETALL."</h4>" ) ;
foreach( $global_perms_array as $perm_id => $perm_name ) {
@@ -237,7 +242,7 @@
$ret = $cat_handler->insert($cat); // insert category to weblog_category
if( $ret ){ // insert group_permission
$cat_id = $cat_handler->db->getInsertId();
- $postgroup = $cat->vars['postgroup']['value'] ;
+ $postgroup = $cat->vars['postgroup']['value'] ;
$ret_gperm = true ;
if( is_array($postgroup) && ! empty($postgroup) ){
$gperm_handler =& xoops_gethandler('groupperm');
@@ -284,7 +289,7 @@
$ret = $handler->insert($cat);
if( $ret ){ // insert group_permission
- $postgroup = $cat->vars['postgroup']['value'] ;
+ $postgroup = $cat->vars['postgroup']['value'] ;
$ret_gperm = true ;
if( is_array($postgroup) && ! empty($postgroup) ){
$gperm_handler = xoops_gethandler('groupperm');
@@ -354,6 +359,5 @@
$form_add->display();
- xoops_cp_footer();
+ include_once dirname(__FILE__) . '/admin_footer.php';
}
-?>
\ No newline at end of file
Modified: XoopsModules/weblog/trunk/weblog/admin/dbmanager.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/dbmanager.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/admin/dbmanager.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -26,6 +26,7 @@
include(sprintf('%s/include/cp_header.php', XOOPS_ROOT_PATH));
include_once(sprintf('%s/modules/%s/header.php', XOOPS_ROOT_PATH, $xoopsModule->dirname()));
include('admin.inc.php');
+include_once dirname(__FILE__) . '/admin_header.php';
$action = '';
if (isset($_POST)) {
@@ -44,9 +45,12 @@
function dbManager() {
global $mydirname ;
xoops_cp_header();
- echo sprintf('<h4>%s »» %s</h4>',
- indexLink(), _AM_WEBLOG_DBMANAGER);
+// echo sprintf('<h4>%s »» %s</h4>',
+// indexLink(), _AM_WEBLOG_DBMANAGER);
+$indexAdmin = new ModuleAdmin();
+ echo $indexAdmin->addNavigation('dbmanager.php');
+
echo "<table width='100%' class='outer' cellspacing='1'>\r\n";
echo sprintf("<tr><th colspan='2'>%s</th></tr>", _AM_WEBLOG_DBMANAGER);
@@ -182,9 +186,12 @@
function checkTables() {
global $mydirname ;
xoops_cp_header();
- echo sprintf('<h4>%s »» %s »» %s</h4>',
- indexLink(), dbManagerLink(), _AM_WEBLOG_CHECKTABLE);
+// echo sprintf('<h4>%s »» %s »» %s</h4>',
+// indexLink(), dbManagerLink(), _AM_WEBLOG_CHECKTABLE);
+ $indexAdmin = new ModuleAdmin();
+ echo $indexAdmin->addNavigation('dbmanager.php');
+
// checking table 'weblog'
$columns = array('blog_id', 'user_id', 'cat_id', 'created', 'title',
'contents', 'private', 'comments', 'reads', 'trackbacks', 'permission_group', 'dohtml' , 'dobr');
@@ -222,7 +229,7 @@
$table_exist = ($result) ? true : false;
if ($table_exist) {
list($count) = $xoopsDB->fetchRow($result);
- $row_exist = ($count['count'] > 0) ? true : false;
+ $row_exist = (isset($count['count']) && $count['count'] > 0) ? true : false;
}
echo "<table width='100%' class='outer' cellspacing='1'>\r\n";
@@ -295,4 +302,4 @@
dbManager();
break;
}
-?>
\ No newline at end of file
+?>
Modified: XoopsModules/weblog/trunk/weblog/admin/groupperm_global.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/groupperm_global.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/admin/groupperm_global.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -11,6 +11,7 @@
include_once "../include/gtickets.php" ;
include_once "../header.php" ;
//include_once( '../include/read_configs.php' ) ;
+include_once dirname(__FILE__) . '/admin_header.php';
// check $xoopsModule
if( ! is_object( $xoopsModule ) ) redirect_header( "$mod_url/" , 1 , _NOPERM ) ;
@@ -23,7 +24,7 @@
function list_groups()
{
global $xoopsModule ;
-
+
$global_perms_array = array(
// GPERM_POSTABLE => _AM_WEBLOG_PRIV_POST ,
WEBLOG_PERMIT_EDIT => _AM_WEBLOG_PRIV_EDIT ,
@@ -60,12 +61,14 @@
}
xoops_cp_header() ;
-include( './mymenu.php' ) ;
+//include( './mymenu.php' ) ;
echo "" ;
-echo "<h3 style='text-align:left;'>".$xoopsModule->name()."</h3>\n" ;
+//echo "<h3 style='text-align:left;'>".$xoopsModule->name()."</h3>\n" ;
+$indexAdmin = new ModuleAdmin();
+ echo $indexAdmin->addNavigation('groupperm_global.php');
echo "<h4 style='text-align:left;'>"._AM_WEBLOG_GROUPPERM_GLOBAL."</h4>\n" ;
echo _AM_WEBLOG_PRIVMANAGER_XOOPS_CAUTION . "<br />";
list_groups() ;
xoops_cp_footer() ;
-?>
\ No newline at end of file
+?>
Modified: XoopsModules/weblog/trunk/weblog/admin/index.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/index.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/admin/index.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -1,101 +1,76 @@
<?php
/*
- * $Id$
- * Copyright (c) 2003 by Hiro SAKAI (http://wellwine.zive.net/)
- *
- * 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.
+ * 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
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-include('../../../mainfile.php');
-include(sprintf('%s/include/cp_header.php', XOOPS_ROOT_PATH));
-$op = '';
+/**
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package
+ * @since
+ * @author XOOPS Development Team
+ * @version $Id $
+ */
-if (isset($HTTP_POST_VARS)) {
- foreach ($HTTP_POST_VARS as $k => $v) {
- ${$k} = $v;
- }
-}
-if (isset($HTTP_GET_VARS['op'])) {
- $op = $HTTP_GET_VARS['op'];
- if (isset($HTTP_GET_VARS['storyid'])) {
- $storyid = intval($HTTP_GET_VARS['storyid']);
- }
-}
+require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
+include_once dirname(__FILE__) . '/admin_header.php';
-function adminItem($url, $title, $desc='') {
- $item = "<tr align='left'>\r\n";
- $item .= "<td class='odd' align='left'>\r\n";
- $item .= sprintf("<a href='%s'>%s</a>\r\n", $url, $title);
- $item .= "</td>\r\n";
- $item .= sprintf("<td class='odd' align='left'>%s</td>\r\n", $desc);
- $item .= "</tr>\r\n";
+xoops_cp_header();
- return $item;
-}
+ $indexAdmin = new ModuleAdmin();
-switch($op){
+//------ check directories ---------------
+include_once dirname(dirname(__FILE__)) . '/include/directorychecker.php';
+$indexAdmin->addConfigBoxLine('');
+$redirectFile = $_SERVER['PHP_SELF'];
- case 'templates' :
- header('Location: '.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&op=listtpl&tplset='.$xoopsConfig['template_set'].'&moddir='.$xoopsModule->dirname().'');
- exit();
- break ;
- default:
- xoops_cp_header();
- echo sprintf('<h4>%s</h4>', _AM_WEBLOG_CONFIG);
+$languageConstants = array(_AM_WEBLOG_AVAILABLE2,_AM_WEBLOG_NOTAVAILABLE2, _AM_WEBLOG_CREATETHEDIR2, _AM_WEBLOG_NOTWRITABLE2, _AM_WEBLOG_SETMPERM2, _AM_WEBLOG_DIRCREATED2,_AM_WEBLOG_DIRNOTCREATED2,_AM_WEBLOG_PERMSET2,_AM_WEBLOG_PERMNOTSET2);
- echo "<table width='100%' border='0' cellspacing='1' class='outer'>";
- echo "<tr><td class='odd'><table width='100%' border='0' cellspacing='0'>";
+// foreach (array_keys($folder) as $i) {
+// $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($folder[$i],0755,$languageConstants,$redirectFile));
+// }
- echo adminItem(sprintf("%s/modules/system/admin.php?fct=preferences&op=showmod&mod=%d",
- XOOPS_URL, $xoopsModule->getVar('mid')),
- _AM_WEBLOG_PREFERENCES, _AM_WEBLOG_PREFERENCESDSC);
- echo adminItem(sprintf("%s/modules/%s/admin/catmanager.php",
- XOOPS_URL, $xoopsModule->dirname()),
- _AM_WEBLOG_CATMANAGER, _AM_WEBLOG_CATMANAGERDSC);
- echo adminItem(sprintf("%s/modules/%s/admin/privmanager.php",
- XOOPS_URL, $xoopsModule->dirname()),
- _AM_WEBLOG_PRIVMANAGER_WEBLOG, _AM_WEBLOG_PRIVMANAGER_WEBLOG_DSC);
+$path = XOOPS_ROOT_PATH . $xoopsModuleConfig['weblog_myalbum_photospath'] . '/';
+$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($path ,0777,$languageConstants,$redirectFile));
- echo adminItem(sprintf("%s/modules/%s/admin/groupperm_global.php",
- XOOPS_URL, $xoopsModule->dirname()),
- _AM_WEBLOG_PRIVMANAGER_XOOPS, _AM_WEBLOG_PRIVMANAGER_XOOPS_DSC);
+$path = XOOPS_ROOT_PATH . $xoopsModuleConfig['weblog_myalbum_thumbspath'] . '/';
+$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus($path ,0777,$languageConstants,$redirectFile));
- echo adminItem(sprintf("%s/modules/%s/admin/dbmanager.php",
- XOOPS_URL, $xoopsModule->dirname()),
- _AM_WEBLOG_DBMANAGER, _AM_WEBLOG_DBMANAGERDSC);
- echo adminItem(sprintf("%s/modules/%s/admin/myblocksadmin.php",
- XOOPS_URL, $xoopsModule->dirname()),
- _AM_WEBLOG_MYBLOCKSADMIN, _AM_WEBLOG_MYBLOCKSADMINDSC);
+/*
+//$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/';
+$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(WEBLOG_PICTURES_PATH,0777,$languageConstants,$redirectFile));
- echo adminItem(sprintf("%s/modules/system/admin.php?fct=tplsets&op=listtpl&tplset=%s&moddir=%s",
- XOOPS_URL, $xoopsConfig['template_set'] , $xoopsModule->dirname()),
- _AM_WEBLOG_TEMPLATE_MANEGER, _AM_WEBLOG_TEMPLATE_MANEGERDSC);
- echo "</table></td></tr>";
- echo "</table>";
+//$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/';
+$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(WEBLOG_CSV_PATH,0775,$languageConstants,$redirectFile));
- xoops_cp_footer();
- break;
-}
-?>
\ No newline at end of file
+//$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/';
+$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(WEBLOG_CACHE_PATH,0777,$languageConstants,$redirectFile));
+
+
+//$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/';
+$indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(WEBLOG_TEXT_PATH,0777,$languageConstants,$redirectFile));
+
+//echo $indexAdmin->addNavigation('index.php');
+//echo $indexAdmin->renderIndex();
+//echo wfd_serverstats();
+//---------------------------
+*/
+
+
+ echo $indexAdmin->addNavigation('index.php');
+ echo $indexAdmin->renderIndex();
+
+
+
+include "admin_footer.php";
Added: XoopsModules/weblog/trunk/weblog/admin/main.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/main.php (rev 0)
+++ XoopsModules/weblog/trunk/weblog/admin/main.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -0,0 +1,101 @@
+<?php
+/*
+ * $Id$
+ * Copyright (c) 2003 by Hiro SAKAI (http://wellwine.zive.net/)
+ *
+ * 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
+ */
+include('../../../mainfile.php');
+include(sprintf('%s/include/cp_header.php', XOOPS_ROOT_PATH));
+
+$op = '';
+
+if (isset($HTTP_POST_VARS)) {
+ foreach ($HTTP_POST_VARS as $k => $v) {
+ ${$k} = $v;
+ }
+}
+
+if (isset($HTTP_GET_VARS['op'])) {
+ $op = $HTTP_GET_VARS['op'];
+ if (isset($HTTP_GET_VARS['storyid'])) {
+ $storyid = intval($HTTP_GET_VARS['storyid']);
+ }
+}
+
+function adminItem($url, $title, $desc='') {
+ $item = "<tr align='left'>\r\n";
+ $item .= "<td class='odd' align='left'>\r\n";
+ $item .= sprintf("<a href='%s'>%s</a>\r\n", $url, $title);
+ $item .= "</td>\r\n";
+ $item .= sprintf("<td class='odd' align='left'>%s</td>\r\n", $desc);
+ $item .= "</tr>\r\n";
+
+ return $item;
+}
+
+switch($op){
+
+ case 'templates' :
+ header('Location: '.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&op=listtpl&tplset='.$xoopsConfig['template_set'].'&moddir='.$xoopsModule->dirname().'');
+ exit();
+ break ;
+ default:
+ xoops_cp_header();
+ echo sprintf('<h4>%s</h4>', _AM_WEBLOG_CONFIG);
+
+ echo "<table width='100%' border='0' cellspacing='1' class='outer'>";
+ echo "<tr><td class='odd'><table width='100%' border='0' cellspacing='0'>";
+
+ echo adminItem(sprintf("%s/modules/system/admin.php?fct=preferences&op=showmod&mod=%d",
+ XOOPS_URL, $xoopsModule->getVar('mid')),
+ _AM_WEBLOG_PREFERENCES, _AM_WEBLOG_PREFERENCESDSC);
+
+ echo adminItem(sprintf("%s/modules/%s/admin/catmanager.php",
+ XOOPS_URL, $xoopsModule->dirname()),
+ _AM_WEBLOG_CATMANAGER, _AM_WEBLOG_CATMANAGERDSC);
+
+ echo adminItem(sprintf("%s/modules/%s/admin/privmanager.php",
+ XOOPS_URL, $xoopsModule->dirname()),
+ _AM_WEBLOG_PRIVMANAGER_WEBLOG, _AM_WEBLOG_PRIVMANAGER_WEBLOG_DSC);
+
+ echo adminItem(sprintf("%s/modules/%s/admin/groupperm_global.php",
+ XOOPS_URL, $xoopsModule->dirname()),
+ _AM_WEBLOG_PRIVMANAGER_XOOPS, _AM_WEBLOG_PRIVMANAGER_XOOPS_DSC);
+
+ echo adminItem(sprintf("%s/modules/%s/admin/dbmanager.php",
+ XOOPS_URL, $xoopsModule->dirname()),
+ _AM_WEBLOG_DBMANAGER, _AM_WEBLOG_DBMANAGERDSC);
+
+ echo adminItem(sprintf("%s/modules/%s/admin/myblocksadmin.php",
+ XOOPS_URL, $xoopsModule->dirname()),
+ _AM_WEBLOG_MYBLOCKSADMIN, _AM_WEBLOG_MYBLOCKSADMINDSC);
+
+ echo adminItem(sprintf("%s/modules/system/admin.php?fct=tplsets&op=listtpl&tplset=%s&moddir=%s",
+ XOOPS_URL, $xoopsConfig['template_set'] , $xoopsModule->dirname()),
+ _AM_WEBLOG_TEMPLATE_MANEGER, _AM_WEBLOG_TEMPLATE_MANEGERDSC);
+
+ echo "</table></td></tr>";
+ echo "</table>";
+
+ xoops_cp_footer();
+ break;
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/weblog/trunk/weblog/admin/main.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: XoopsModules/weblog/trunk/weblog/admin/menu.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/menu.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/admin/menu.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -22,16 +22,56 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-$adminmenu[1]['title'] = _MI_WEBLOG_CATMANAGER;
-$adminmenu[1]['link'] = "admin/catmanager.php";
-$adminmenu[2]['title'] = _MI_WEBLOG_PRIVMANAGER;
-$adminmenu[2]['link'] = "admin/privmanager.php";
-$adminmenu[3]['title'] = _MI_WEBLOG_MYGROUPSADMIN ;
-$adminmenu[3]['link'] = "admin/groupperm_global.php" ;
-$adminmenu[4]['title'] = _MI_WEBLOG_DBMANAGER;
-$adminmenu[4]['link'] = "admin/dbmanager.php";
-$adminmenu[5]['title'] = _MI_WEBLOG_MYBLOCKSADMIN ;
-$adminmenu[5]['link'] = "admin/myblocksadmin.php" ;
-$adminmenu[6]['title'] = _MI_WEBLOG_TEMPLATE_MANEGER ;
-$adminmenu[6]['link'] = "admin/index.php?op=templates" ;
-?>
\ No newline at end of file
+
+defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined");
+
+$path = dirname(dirname(dirname(dirname(__FILE__))));
+include_once $path . '/mainfile.php';
+
+$dirname = basename(dirname(dirname(__FILE__)));
+$module_handler = xoops_gethandler('module');
+$module = $module_handler->getByDirname($dirname);
+$pathIcon32 = $module->getInfo('icons32');
+$pathModuleAdmin = $module->getInfo('dirmoduleadmin');
+$pathLanguage = $path . $pathModuleAdmin;
+
+
+if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) {
+ $fileinc = $pathLanguage . '/language/english/main.php';
+}
+
+include_once $fileinc;
+
+$adminmenu = array();
+$i=0;
+$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME;
+$adminmenu[$i]['link'] = "admin/index.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . '/home.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_WEBLOG_CATMANAGER;
+$adminmenu[$i]['link'] = "admin/catmanager.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . '/category.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_WEBLOG_PRIVMANAGER;
+$adminmenu[$i]['link'] = "admin/privmanager.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . '/manage.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_WEBLOG_MYGROUPSADMIN ;
+$adminmenu[$i]['link'] = "admin/groupperm_global.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . '/permissions.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_WEBLOG_DBMANAGER;
+$adminmenu[$i]['link'] = "admin/dbmanager.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . '/list.png';
+//$i++;
+//$adminmenu[$i]['title'] = _MI_WEBLOG_MYBLOCKSADMIN ;
+//$adminmenu[$i]['link'] = "admin/myblocksadmin.php" ;
+//$adminmenu[$i]["icon"] = $pathIcon32 . '/block.png';
+//$i++;
+//$adminmenu[$i]['title'] = _MI_WEBLOG_TEMPLATE_MANEGER ;
+//$adminmenu[$i]['link'] = "admin/index.php?op=templates" ;
+//$adminmenu[$i]["icon"] = $pathIcon32 . '/watermark.png';
+$i++;
+$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT;
+$adminmenu[$i]["link"] = "admin/about.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . '/about.png';
Modified: XoopsModules/weblog/trunk/weblog/admin/privmanager.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/admin/privmanager.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/admin/privmanager.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -26,6 +26,7 @@
include(sprintf('%s/include/cp_header.php', XOOPS_ROOT_PATH));
include_once(sprintf('%s/modules/%s/header.php', XOOPS_ROOT_PATH, $xoopsModule->dirname()));
include('admin.inc.php');
+include_once dirname(__FILE__) . '/admin_header.php';
$action = '';
if (isset($_POST)) {
@@ -59,8 +60,10 @@
$non_groups =& array_diff($group_ids, $priv_group_ids);
xoops_cp_header();
- echo sprintf('<h4>%s »» %s</h4>',
- indexLink(), _AM_WEBLOG_PRIVMANAGER_WEBLOG);
+// echo sprintf('<h4>%s »» %s</h4>',
+// indexLink(), _AM_WEBLOG_PRIVMANAGER_WEBLOG);
+ $indexAdmin = new ModuleAdmin();
+ echo $indexAdmin->addNavigation('privmanager.php');
echo _AM_WEBLOG_PRIVMANAGER_WEBLOG_CAUTION . "<br /><br />";
echo "<table width='100%' class='outer' cellspacing='1'>\r\n";
@@ -115,7 +118,7 @@
if (isset($post['gid'])) {
$group_handler =& xoops_getmodulehandler('priv');
foreach ($post['gid'] as $gid) {
- $criteria =& new Criteria('priv_gid', $gid);
+ $criteria = new Criteria('priv_gid', $gid);
$group =& $group_handler->getObjects($criteria);
if (is_object($group[0])) {
$group_handler->delete($group[0]);
@@ -139,4 +142,4 @@
privmanager();
break;
}
-?>
\ No newline at end of file
+?>
Modified: XoopsModules/weblog/trunk/weblog/archive.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/archive.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/archive.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -99,11 +99,11 @@
$myts =& MyTextSanitizer::getInstance();
foreach ( $cat_array as $cat ) {
$catselbox[$i]['prefix'] = substr(str_replace(".","--",$cat['prefix']), 2);
- $catselbox[$i]['cat_id'] = $myts->makeTboxData4Show($cat['cat_id']);
- $catselbox[$i]['cat_title'] = $myts->makeTboxData4Show($cat['cat_id']) == 0 ? "_BL_SELECT_ALLCATEGORY" : $myts->makeTboxData4Show($cat['cat_title']);
+ $catselbox[$i]['cat_id'] = $myts->htmlSpecialChars($cat['cat_id']);
+ $catselbox[$i]['cat_title'] = $myts->htmlSpecialChars($cat['cat_id']) == 0 ? "_BL_SELECT_ALLCATEGORY" : $myts->htmlSpecialChars($cat['cat_title']);
$catselbox[$i]['selected'] = ($cat_id == $cat['cat_id'] )? " selected" : "";
$i++;
- $catbox[$cat['cat_id']] = $myts->makeTboxData4Show($cat['cat_title']);
+ $catbox[$cat['cat_id']] = $myts->htmlSpecialChars($cat['cat_title']);
}
$xoopsTpl->assign("catselbox", $catselbox);
@@ -169,12 +169,12 @@
$xoopsTpl->assign('xoops_weblogdir', $xoopsModule->dirname());
include XOOPS_ROOT_PATH."/footer.php";
-
+
function makeTplVars() {
global $results, $count, $numperpage, $start;
global $user_id, $cat_id, $mode, $catbox, $date, $useroffset;
global $xoopsModuleConfig;
-
+
$blog['show_blogs'] = true;
$blog['lang_title'] = _BL_TITLE;
$blog['lang_date'] = _BL_POSTED;
@@ -207,7 +207,7 @@
$blog['entries'][] = $entry;
}
$blog['lang_blogtotal'] = sprintf(_BL_THEREAREINTOTAL, $count);
-
+
// add page navigator if entries > per page
if ( $count > $numperpage ) {
$uri='';
@@ -225,10 +225,10 @@
$blog['pagenavi'] = $nav->renderNav();
} else {
$blog['pagenavi'] = '';
- }
-
+ }
+
return $blog;
}
-?>
\ No newline at end of file
+?>
Modified: XoopsModules/weblog/trunk/weblog/backend_weblog.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/backend_weblog.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/backend_weblog.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -104,7 +104,7 @@
$results = $weblog->getEntries(0, $user_id, 0, $max);
foreach($results as $entryObject) {
- $item['title'] = $myts->makeTboxData4Show(encoding_set($entryObject->getVar('title', 'e') , 'UTF-8'));
+ $item['title'] = $myts->htmlSpecialChars(encoding_set($entryObject->getVar('title', 'e') , 'UTF-8'));
$item['link'] = sprintf('%s/modules/%s/details.php?blog_id=%d', XOOPS_URL, $xoopsModule->dirname(), $entryObject->getVar('blog_id'));
$item['guid'] = sprintf('%s/modules/%s/details.php?blog_id=%d', XOOPS_URL, $xoopsModule->dirname(), $entryObject->getVar('blog_id'));
$item['pubdate'] = date($format_timestamp , $entryObject->getVar('created')) . " " . $timezone ;
Modified: XoopsModules/weblog/trunk/weblog/blocks/weblog_recent.php
===================================================================
--- XoopsModules/weblog/trunk/weblog/blocks/weblog_recent.php 2013-08-25 20:44:25 UTC (rev 11978)
+++ XoopsModules/weblog/trunk/weblog/blocks/weblog_recent.php 2013-08-25 20:45:24 UTC (rev 11979)
@@ -42,7 +42,7 @@
$max_results = $options[1];
$use_avatars = $options[2];
$link_entries = $options[3];
-
+
$currentuid = !empty($xoopsUser) ? $xoopsUser->getVar('uid','E') : 0;
$block = array();
@@ -113,7 +113,7 @@
* $options[7] = show entry content or not
* $options[8] = max size of entry.(if this value is zero , not show )
*/
-
+
function b_weblog_recent_show($options) {
global $xoopsDB, $xoopsUser, $xoopsConfig;
@@ -136,7 +136,7 @@
$useroffset = $xoopsConfig['default_TZ'] - $xoopsConfig['server_TZ'] ; ;
}
-
+
$myts =& MyTextSanitizer::getInstance();
$block = array();
@@ -160,7 +160,7 @@
$alart = false ;
while ($myrow=$xoopsDB->fetchArray($result)) {
$entry = array();
- $title = $myts->makeTboxData4Show($myrow['title']);
+ $title = $myts->htmlSpecialChars($myrow['title']);
if ( $block_size != 3) {
if (strlen($title) >= $max_size) {
$title = xoops_substr($title, 0, ($max_size -1)) ;
@@ -188,7 +188,7 @@
}
}
- $entry['uname'] = $myts->makeTboxData4Show($myrow['uname']);
+ $entry['uname'] = $myts->htmlSpecialChars($myrow['uname']);
if ($link_entries==1) {
$entry['profile_uri'] = sprintf('%s/modules/%s/index.php?user_id=%d',
XOOPS_URL, $mydirname, $myrow['user_id']);
@@ -290,7 +290,7 @@
$max_size_contents = intval($options[9]);
$currentuid = !empty($xoopsUser) ? $xoopsUser->getVar('uid','E') : 0;
-
+
$myts =& MyTextSanitizer::getInstance();
$block = array();
@@ -301,11 +301,11 @@
}
if( $order_by == 0 ){ // last entry time
- $user_sql = sprintf('select user_id,uname,user_avatar,max(created)+%d as sort_value from %s as bl , %s as u where bl.user_id=u.uid ',
+ $user_sql = sprintf('select user_id,uname,user_avatar,max(created)+%d as sort_value from %s as bl , %s as u where bl.user_id=u.uid ',
$useroffset*3600, $xoopsDB->prefix( $mydirname ) , $xoopsDB->prefix('users') );
$sort_value = _MB_WEBLOG_USERS_SORT_UPDATE ;
}else{ // order by most reads user
- $user_sql = sprintf('select user_id,uname,user_avatar,sum(`reads`) as sort_value from %s as bl , %s as u where bl.user_id=u.uid ',
+ $user_sql = sprintf('select user_id,uname,user_avatar,sum(`reads`) as sort_value from %s as bl , %s as u where bl.user_id=u.uid ',
$xoopsDB->prefix( $mydirname ) , $xoopsDB->prefix('users') );
$sort_value = _MB_WEBLOG_USERS_SORT_READS ;
}
@@ -321,16 +321,16 @@
$users = array() ;
$alart = false ;
while ($userrow=$xoopsDB->fetchArray($result_user)) {
- $user_id = $myts->makeTboxData4Show($userrow['user_id']) ;
- $user_sortvalue = ( $order_by == 0 ) ? date( $date_format , $myts->makeTboxData4Show($userrow['sort_value']) ) : $myts->makeTboxData4Show($userrow['sort_value']) ;
+ $user_id = $myts->htmlSpecialChars($userrow['user_id']) ;
+ $user_sortvalue = ( $order_by == 0 ) ? date( $date_format , $myts->htmlSpecialChars($userrow['sort_value']) ) : $myts->htmlSpecialChars($userrow['sort_value']) ;
$users[$user_id] = array(
- 'uname' => $myts->makeTboxData4Show($userrow['uname']) ,
- 'avatar_img' => sprintf( '%s/uploads/%s', XOOPS_URL, $myts->makeTboxData4Show($userrow['user_avatar']) ) ,
+ 'uname' => $myts->htmlSpecialChars($userrow['uname']) ,
+ 'avatar_img' => sprintf( '%s/uploads/%s', XOOPS_URL, $myts->htmlSpecialChars($userrow['user_avatar']) ) ,
'sort_value' => $user_sortvalue ,
'profile_uri' => sprintf('%s/userinfo.php?uid=%d', XOOPS_URL, $user_id) ,
'user_blog_uri' => sprintf('%s/modules/%s/index.php?user_id=%d', XOOPS_URL, $mydirname , $user_id) ,
'entries' => array() ) ;
- // get user's entries
+ // get user's entries
$entry_sql = sprintf('select blog_id,user_id,created+%d as created,title,%s as contents,`reads`,comments,trackbacks from %s as bl where user_id=%d and (private=\'N\' or user_id=\'%d\') %s order by created desc ',
$useroffset*3600, $bl_contents_field , $xoopsDB->prefix( $mydirname ) , $user_id , $currentuid , $permission_group_sql);
$result_entry = $xoopsDB->query($entry_sql , $max_entries , 0) ;
@@ -348,14 +348,14 @@
$contents = "" ;
}
$users[$user_id]['entries'][] = array(
- 'created' => date( $date_format , $myts->makeTboxData4Show($entryrow['created']) ) ,
- 'title' => xoops_substr($myts->makeTboxData4Show($entryrow['title']) , 0 , $max_size),
+ 'created' => date( $date_format , $myts->htmlSpecialChars($entryrow['created']) ) ,
+ 'title' => xoops_substr($myts->htmlSpecialChars($entryrow['title']) , 0 , $max_size),
'contents' => $contents ,
'entry_url' => $entry_url ,
- 'reads' => $myts->makeTboxData4Show($entryrow['reads']) ,
- 'comments' => $myts->makeTboxData4Show($entryrow['comments']) ,
- 'trackbacks' => $myts->makeTboxData4Show($entryrow['trackbacks']) ,
- 'permission' => bl_permission_alart($entryrow['contents'])
+ 'reads' => $myts->htmlSpecialChars($entryrow['reads']) ,
+ 'comments' => $myts->htmlSpecialChars($entryrow['comments']) ,
+ 'trackbacks' => $myts->htmlSpecialChars($entryrow['trackbacks']) ,
+ 'permission' => bl_permission_alart($entryrow['contents'])
) ;
if( bl_permission_alart($entryrow['contents']) ) $alart = true ;
}
@@ -421,7 +421,7 @@
$currentuid = !empty($xoopsUser) ? $xoopsUser->getVar('uid','E') : 0;
$user_id = !empty($_GET['user_id']) ? intval($_GET['user_id']) : 0;
-
+
if (is_object($xoopsUser)) {
$useroffset = $xoopsUser->timezone() - $xoopsConfig['server_TZ'] ;
} else {
@@ -450,20 +450,20 @@
$alart = false ;
while ($myrow=$xoopsDB->fetchArray($result)) {
$trackback = array();
- $tb_title = $myts->makeTboxData4Show($myrow['tb_title']);
+ $tb_title = $myts->htmlSpecialChars($myrow['tb_title']);
if ( $block_size != 3) {
if (strlen($tb_title) >= $max_size) {
$tb_title = xoops_substr($tb_title, 0, ($max_size -1)) ;
}
}
- $trackback['blog_name'] = $myts->makeTboxData4Show($myrow['blog_name']);
- $trackback['link'] = $myts->makeTboxData4Show($myrow['link']);
+ $trackback['blog_name'] = $myts->htmlSpecialChars($myrow['blog_name']);
+ $trackback['link'] = $myts->htmlSpecialChars($myrow['link']);
$trackback['tb_title'] = $tb_title;
$trackback['entry_url'] = sprintf('%s/modules/%s/details.php?blog_id=%d',
XOOPS_URL, $mydirname, $myrow['blog_id']);
$trackback['date'] = formatTimestamp($myrow['trackback_created'], $date_format, $xoopsConfig['default_TZ']);
- $trackback['entry_title'] = $myts->makeTboxData4Show($myrow['entry_title']);
+ $trackback['entry_title'] = $myts->htmlSpecialChars($myrow['entry_title']);
$trackback['permission'] = bl_permission_alart($myrow['contents']) ;
if( $trackback['permission'] ) $alart = true ;
$block['trackbacks'][] = $trackback;
@@ -513,7 +513,7 @@
$currentuid = !empty($xoopsUser) ? $xoopsUser->getVar('uid','E') : 0;
$user_id = !empty($_GET['user_id']) ? intval($_GET['user_id']) : 0;
-
+
if (is_object($xoopsUser)) {
$useroffset = $xoopsUser->timezone() - $xoopsConfig['server_TZ'] ;
} else {
@@ -527,7 +527,7 @@
$myts =& MyTextSanitizer::getInstance();
$block = array();
$block['comments'] = array() ;
- $sql = sprintf('SELECT com_modified+%d as com_modified, com_uid, com_title, com_itemid, title,%s as contents, uname FROM %s as xc , %s as m , %s as bl , %s as u' ,
+ $sql = sprintf('SELECT com_modified+%d as com_modified, com_uid, com_title, com_itemid, title,%s as contents, uname FROM %s as xc , %s as m , %s as bl , %s as u' ,
$useroffset*3600, $bl_contents_field , $xoopsDB->prefix('xoopscomments') , $xoopsDB->prefix('modules') ,$xoopsDB->prefix($mydirname) ,$xoopsDB->prefix('users') );
$sql = sprintf('%s WHERE com_modid=mid and dirname=\'%s\' and (bl.private = \'N\' OR bl.user_id=\'%d\') and blog_id=com_it...
[truncated message content] |