From: <txm...@us...> - 2012-03-17 11:57:34
|
Revision: 9147 http://xoops.svn.sourceforge.net/xoops/?rev=9147&view=rev Author: txmodxoops Date: 2012-03-17 11:57:26 +0000 (Sat, 17 Mar 2012) Log Message: ----------- Updated mach files Modified and added Font Function in XoopsList class Added Selector Font in Document Modified Paths: -------------- XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/categories.php XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/documents.php XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_cat.php XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_doc.php XoopsModules/xpdf/releases/1.01/modules/xpdf/language/english/modinfo.php XoopsModules/xpdf/releases/1.01/modules/xpdf/language/italian/modinfo.php XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql XoopsModules/xpdf/releases/1.01/modules/xpdf/xoops_version.php Added Paths: ----------- XoopsModules/xpdf/releases/1.01/class/ XoopsModules/xpdf/releases/1.01/class/xoopslists.php XoopsModules/xpdf/releases/1.01/modules/xpdf/include/update.php Property Changed: ---------------- XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/ Added: XoopsModules/xpdf/releases/1.01/class/xoopslists.php =================================================================== --- XoopsModules/xpdf/releases/1.01/class/xoopslists.php (rev 0) +++ XoopsModules/xpdf/releases/1.01/class/xoopslists.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -0,0 +1,640 @@ +<?php +/** + * XOOPS listing utilities + * + * 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 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @since 2.0.0 + * @version $Id: xoopslists.php 8066 2011-11-06 05:09:33Z beckmi $ + * @version $Id: xoopslists.php 9146 2012-03-16 12:09:53Z timgno $ + */ + + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +if (!defined('XOOPS_LISTS_INCLUDED')) { + define('XOOPS_LISTS_INCLUDED', 1); + + /** + * XoopsLists + * + * @author John Neill <cat...@xo...> + * @copyright copyright (c) XOOPS.org + * @package kernel + * @subpackage form + * @access public + */ + class XoopsLists + { + function getTimeZoneList() + { + xoops_loadLanguage('timezone'); + + $time_zone_list = array( + '-12' => _TZ_GMTM12 , + '-11' => _TZ_GMTM11 , + '-10' => _TZ_GMTM10 , + '-9' => _TZ_GMTM9 , + '-8' => _TZ_GMTM8 , + '-7' => _TZ_GMTM7 , + '-6' => _TZ_GMTM6 , + '-5' => _TZ_GMTM5 , + '-4' => _TZ_GMTM4 , + '-3.5' => _TZ_GMTM35 , + '-3' => _TZ_GMTM3 , + '-2' => _TZ_GMTM2 , + '-1' => _TZ_GMTM1 , + '0' => _TZ_GMT0 , + '1' => _TZ_GMTP1 , + '2' => _TZ_GMTP2 , + '3' => _TZ_GMTP3 , + '3.5' => _TZ_GMTP35 , + '4' => _TZ_GMTP4 , + '4.5' => _TZ_GMTP45 , + '5' => _TZ_GMTP5 , + '5.5' => _TZ_GMTP55 , + '6' => _TZ_GMTP6 , + '7' => _TZ_GMTP7 , + '8' => _TZ_GMTP8 , + '9' => _TZ_GMTP9 , + '9.5' => _TZ_GMTP95 , + '10' => _TZ_GMTP10 , + '11' => _TZ_GMTP11 , + '12' => _TZ_GMTP12); + + return $time_zone_list; + } + + /** + * gets list of themes folder from themes directory + */ + function getThemesList() + { + return XoopsLists::getDirListAsArray(XOOPS_THEME_PATH . '/'); + } + + /** + * gets a list of module folders from the modules directory + */ + function getModulesList() + { + return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/modules/'); + } + + /** + * gets list of editors folder from xoopseditor directory + */ + function getEditorList() + { + return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/class/xoopseditor/'); + } + + /** + * gets list of fonts folder from Frameworks/tcpdf/fonts directory + * @author TXMod Xoops <in...@tx...> + */ + function getFontList() + { + return XoopsLists::getFontListAsArray(XOOPS_ROOT_PATH . '/Frameworks/tcpdf/fonts/'); + } + + /** + * gets list of name of directories inside a directory + */ + function getDirListAsArray($dirname) + { + $ignored = array( + 'cvs' , + '_darcs'); + $list = array(); + if (substr($dirname, - 1) != '/') { + $dirname .= '/'; + } + if ($handle = opendir($dirname)) { + while ($file = readdir($handle)) { + if (substr($file, 0, 1) == '.' || in_array(strtolower($file), $ignored)) + continue; + if (is_dir($dirname . $file)) { + $list[$file] = $file; + } + } + closedir($handle); + asort($list); + reset($list); + } + return $list; + } + + /** + * gets list of all files in a directory + */ + function getFileListAsArray($dirname, $prefix = '') + { + $filelist = array(); + if (substr($dirname, - 1) == '/') { + $dirname = substr($dirname, 0, - 1); + } + if (is_dir($dirname) && $handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (! preg_match('/^[\.]{1,2}$/', $file) && is_file($dirname . '/' . $file)) { + $file = $prefix . $file; + $filelist[$file] = $file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /** + * gets list of image file names in a directory + */ + function getImgListAsArray($dirname, $prefix = '') + { + $filelist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (preg_match('/(\.gif|\.jpg|\.png)$/i', $file)) { + $file = $prefix . $file; + $filelist[$file] = $file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /** + * gets list of font file names in a directory + * @author TXMod Xoops <in...@tx...> + */ + function getFontListAsArray($dirname, $prefix = '') + { + $fontlist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($font = readdir($handle))) { + if (preg_match('/(\.php)$/i', $font)) { + $font = $prefix . $font; + $fontlist[$font] = substr($font, 0, strpos($font, '.')); + } + } + closedir($handle); + asort($fontlist); + reset($fontlist); + } + return $fontlist; + } + + /** + * gets list of html file names in a certain directory + */ + function getHtmlListAsArray($dirname, $prefix = '') + { + $filelist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if ((preg_match('/(\.htm|\.html|\.xhtml)$/i', $file) && ! is_dir($file))) { + $file = $prefix . $file; + $filelist[$file] = $prefix . $file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /** + * gets list of avatar file names in a certain directory + * if directory is not specified, default directory will be searched + */ + function getAvatarsList($avatar_dir = '') + { + $avatars = array(); + if ($avatar_dir != '') { + $avatars = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/' . $avatar_dir . '/', $avatar_dir . '/'); + } else { + $avatars = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/'); + } + return $avatars; + } + + /** + * gets list of all avatar image files inside default avatars directory + */ + function getAllAvatarsList() + { + $avatars = array(); + $dirlist = array(); + $dirlist = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/images/avatar/'); + if (count($dirlist) > 0) { + foreach($dirlist as $dir) { + $avatars[$dir] = &XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/' . $dir . '/', $dir . '/'); + } + } else { + return false; + } + return $avatars; + } + + /** + * gets list of subject icon image file names in a certain directory + * if directory is not specified, default directory will be searched + */ + function getSubjectsList($sub_dir = '') + { + $subjects = array(); + if ($sub_dir != '') { + $subjects = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/subject/' . $sub_dir, $sub_dir . '/'); + } else { + $subjects = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/subject/'); + } + return $subjects; + } + + /** + * gets list of language folders inside default language directory + */ + function getLangList() + { + $lang_list = array(); + $lang_list = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/language/'); + return $lang_list; + } + + /** + * XoopsLists::getCountryList() + * + * @return + */ + function getCountryList() + { + xoops_loadLanguage('countries'); + $country_list = array ( + "" => "-", + "AD" => _COUNTRY_AD, + "AE" => _COUNTRY_AE, + "AF" => _COUNTRY_AF, + "AG" => _COUNTRY_AG, + "AI" => _COUNTRY_AI, + "AL" => _COUNTRY_AL, + "AM" => _COUNTRY_AM, + "AN" => _COUNTRY_AN, + "AO" => _COUNTRY_AO, + "AQ" => _COUNTRY_AQ, + "AR" => _COUNTRY_AR, + "AS" => _COUNTRY_AS, + "AT" => _COUNTRY_AT, + "AU" => _COUNTRY_AU, + "AW" => _COUNTRY_AW, + "AX" => _COUNTRY_AX, + "AZ" => _COUNTRY_AZ, + "BA" => _COUNTRY_BA, + "BB" => _COUNTRY_BB, + "BD" => _COUNTRY_BD, + "BE" => _COUNTRY_BE, + "BF" => _COUNTRY_BF, + "BG" => _COUNTRY_BG, + "BH" => _COUNTRY_BH, + "BI" => _COUNTRY_BI, + "BJ" => _COUNTRY_BJ, + "BL" => _COUNTRY_BL, + "BM" => _COUNTRY_BM, + "BN" => _COUNTRY_BN, + "BO" => _COUNTRY_BO, + "BR" => _COUNTRY_BR, + "BS" => _COUNTRY_BS, + "BT" => _COUNTRY_BT, + "BV" => _COUNTRY_BV, + "BW" => _COUNTRY_BW, + "BY" => _COUNTRY_BY, + "BZ" => _COUNTRY_BZ, + "CA" => _COUNTRY_CA, + "CC" => _COUNTRY_CC, + "CD" => _COUNTRY_CD, + "CF" => _COUNTRY_CF, + "CG" => _COUNTRY_CG, + "CH" => _COUNTRY_CH, + "CI" => _COUNTRY_CI, + "CK" => _COUNTRY_CK, + "CL" => _COUNTRY_CL, + "CM" => _COUNTRY_CM, + "CN" => _COUNTRY_CN, + "CO" => _COUNTRY_CO, + "CR" => _COUNTRY_CR, + "CS" => _COUNTRY_CS, // Not listed in ISO 3166 + "CU" => _COUNTRY_CU, + "CV" => _COUNTRY_CV, + "CX" => _COUNTRY_CX, + "CY" => _COUNTRY_CY, + "CZ" => _COUNTRY_CZ, + "DE" => _COUNTRY_DE, + "DJ" => _COUNTRY_DJ, + "DK" => _COUNTRY_DK, + "DM" => _COUNTRY_DM, + "DO" => _COUNTRY_DO, + "DZ" => _COUNTRY_DZ, + "EC" => _COUNTRY_EC, + "EE" => _COUNTRY_EE, + "EG" => _COUNTRY_EG, + "EH" => _COUNTRY_EH, + "ER" => _COUNTRY_ER, + "ES" => _COUNTRY_ES, + "ET" => _COUNTRY_ET, + "FI" => _COUNTRY_FI, + "FJ" => _COUNTRY_FJ, + "FK" => _COUNTRY_FK, + "FM" => _COUNTRY_FM, + "FO" => _COUNTRY_FO, + "FR" => _COUNTRY_FR, + "FX" => _COUNTRY_FX, // Not listed in ISO 3166 + "GA" => _COUNTRY_GA, + "GB" => _COUNTRY_GB, + "GD" => _COUNTRY_GD, + "GE" => _COUNTRY_GE, + "GF" => _COUNTRY_GF, + "GG" => _COUNTRY_GG, + "GH" => _COUNTRY_GH, + "GI" => _COUNTRY_GI, + "GL" => _COUNTRY_GL, + "GM" => _COUNTRY_GM, + "GN" => _COUNTRY_GN, + "GP" => _COUNTRY_GP, + "GQ" => _COUNTRY_GQ, + "GR" => _COUNTRY_GR, + "GS" => _COUNTRY_GS, + "GT" => _COUNTRY_GT, + "GU" => _COUNTRY_GU, + "GW" => _COUNTRY_GW, + "GY" => _COUNTRY_GY, + "HK" => _COUNTRY_HK, + "HM" => _COUNTRY_HM, + "HN" => _COUNTRY_HN, + "HR" => _COUNTRY_HR, + "HT" => _COUNTRY_HT, + "HU" => _COUNTRY_HU, + "ID" => _COUNTRY_ID, + "IE" => _COUNTRY_IE, + "IL" => _COUNTRY_IL, + "IM" => _COUNTRY_IM, + "IN" => _COUNTRY_IN, + "IO" => _COUNTRY_IO, + "IQ" => _COUNTRY_IQ, + "IR" => _COUNTRY_IR, + "IS" => _COUNTRY_IS, + "IT" => _COUNTRY_IT, + "JM" => _COUNTRY_JM, + "JO" => _COUNTRY_JO, + "JP" => _COUNTRY_JP, + "KE" => _COUNTRY_KE, + "KG" => _COUNTRY_KG, + "KH" => _COUNTRY_KH, + "KI" => _COUNTRY_KI, + "KM" => _COUNTRY_KM, + "KN" => _COUNTRY_KN, + "KP" => _COUNTRY_KP, + "KR" => _COUNTRY_KR, + "KW" => _COUNTRY_KW, + "KY" => _COUNTRY_KY, + "KZ" => _COUNTRY_KZ, + "LA" => _COUNTRY_LA, + "LB" => _COUNTRY_LB, + "LC" => _COUNTRY_LC, + "LI" => _COUNTRY_LI, + "LK" => _COUNTRY_LK, + "LR" => _COUNTRY_LR, + "LS" => _COUNTRY_LS, + "LT" => _COUNTRY_LT, + "LU" => _COUNTRY_LU, + "LV" => _COUNTRY_LV, + "LY" => _COUNTRY_LY, + "MA" => _COUNTRY_MA, + "MC" => _COUNTRY_MC, + "MD" => _COUNTRY_MD, + "ME" => _COUNTRY_ME, + "MF" => _COUNTRY_MF, + "MG" => _COUNTRY_MG, + "MH" => _COUNTRY_MH, + "MK" => _COUNTRY_MK, + "ML" => _COUNTRY_ML, + "MM" => _COUNTRY_MM, + "MN" => _COUNTRY_MN, + "MO" => _COUNTRY_MO, + "MP" => _COUNTRY_MP, + "MQ" => _COUNTRY_MQ, + "MR" => _COUNTRY_MR, + "MS" => _COUNTRY_MS, + "MT" => _COUNTRY_MT, + "MU" => _COUNTRY_MU, + "MV" => _COUNTRY_MV, + "MW" => _COUNTRY_MW, + "MX" => _COUNTRY_MX, + "MY" => _COUNTRY_MY, + "MZ" => _COUNTRY_MZ, + "NA" => _COUNTRY_NA, + "NC" => _COUNTRY_NC, + "NE" => _COUNTRY_NE, + "NF" => _COUNTRY_NF, + "NG" => _COUNTRY_NG, + "NI" => _COUNTRY_NI, + "NL" => _COUNTRY_NL, + "NO" => _COUNTRY_NO, + "NP" => _COUNTRY_NP, + "NR" => _COUNTRY_NR, + "NT" => _COUNTRY_NT, // Not listed in ISO 3166 + "NU" => _COUNTRY_NU, + "NZ" => _COUNTRY_NZ, + "OM" => _COUNTRY_OM, + "PA" => _COUNTRY_PA, + "PE" => _COUNTRY_PE, + "PF" => _COUNTRY_PF, + "PG" => _COUNTRY_PG, + "PH" => _COUNTRY_PH, + "PK" => _COUNTRY_PK, + "PL" => _COUNTRY_PL, + "PM" => _COUNTRY_PM, + "PN" => _COUNTRY_PN, + "PR" => _COUNTRY_PR, + "PS" => _COUNTRY_PS, + "PT" => _COUNTRY_PT, + "PW" => _COUNTRY_PW, + "PY" => _COUNTRY_PY, + "QA" => _COUNTRY_QA, + "RE" => _COUNTRY_RE, + "RO" => _COUNTRY_RO, + "RS" => _COUNTRY_RS, + "RU" => _COUNTRY_RU, + "RW" => _COUNTRY_RW, + "SA" => _COUNTRY_SA, + "SB" => _COUNTRY_SB, + "SC" => _COUNTRY_SC, + "SD" => _COUNTRY_SD, + "SE" => _COUNTRY_SE, + "SG" => _COUNTRY_SG, + "SH" => _COUNTRY_SH, + "SI" => _COUNTRY_SI, + "SJ" => _COUNTRY_SJ, + "SK" => _COUNTRY_SK, + "SL" => _COUNTRY_SL, + "SM" => _COUNTRY_SM, + "SN" => _COUNTRY_SN, + "SO" => _COUNTRY_SO, + "SR" => _COUNTRY_SR, + "ST" => _COUNTRY_ST, + "SU" => _COUNTRY_SU, // Not listed in ISO 3166 + "SV" => _COUNTRY_SV, + "SY" => _COUNTRY_SY, + "SZ" => _COUNTRY_SZ, + "TC" => _COUNTRY_TC, + "TD" => _COUNTRY_TD, + "TF" => _COUNTRY_TF, + "TG" => _COUNTRY_TG, + "TH" => _COUNTRY_TH, + "TJ" => _COUNTRY_TJ, + "TK" => _COUNTRY_TK, + "TL" => _COUNTRY_TL, + "TM" => _COUNTRY_TM, + "TN" => _COUNTRY_TN, + "TO" => _COUNTRY_TO, + "TP" => _COUNTRY_TP, // Not listed in ISO 3166 + "TR" => _COUNTRY_TR, + "TT" => _COUNTRY_TT, + "TV" => _COUNTRY_TV, + "TW" => _COUNTRY_TW, + "TZ" => _COUNTRY_TZ, + "UA" => _COUNTRY_UA, + "UG" => _COUNTRY_UG, + "UK" => _COUNTRY_UK, // Not listed in ISO 3166 + "UM" => _COUNTRY_UM, + "US" => _COUNTRY_US, + "UY" => _COUNTRY_UY, + "UZ" => _COUNTRY_UZ, + "VA" => _COUNTRY_VA, + "VC" => _COUNTRY_VC, + "VE" => _COUNTRY_VE, + "VG" => _COUNTRY_VG, + "VI" => _COUNTRY_VI, + "VN" => _COUNTRY_VN, + "VU" => _COUNTRY_VU, + "WF" => _COUNTRY_WF, + "WS" => _COUNTRY_WS, + "YE" => _COUNTRY_YE, + "YT" => _COUNTRY_YT, + "YU" => _COUNTRY_YU, // Not listed in ISO 3166 + "ZA" => _COUNTRY_ZA, + "ZM" => _COUNTRY_ZM, + "ZR" => _COUNTRY_ZR, // Not listed in ISO 3166 + "ZW" => _COUNTRY_ZW + ); + asort($country_list); + reset($country_list); + return $country_list; + } + + /** + * XoopsLists::getHtmlList() + * + * This Function is no longer being used by the core + * + * @return + */ + function getHtmlList() + { + $html_list = array( + 'a' => '<a>', + 'abbr' => '<abbr>', + 'acronym' => '<acronym>', + 'address' => '<address>', + 'b' => '<b>', + 'bdo' => '<bdo>', + 'big' => '<big>', + 'blockquote' => '<blockquote>', + 'br' => '<br>', + 'caption' => '<caption>', + 'cite' => '<cite>', + 'code' => '<code>', + 'col' => '<col>', + 'colgroup' => '<colgroup>', + 'dd' => '<dd>', + 'del' => '<del>', + 'dfn' => '<dfn>', + 'div' => '<div>', + 'dl' => '<dl>', + 'dt' => '<dt>', + 'em' => '<em>', + 'font' => '<font>', + 'h1' => '<h1>', + 'h2' => '<h2>', + 'h3' => '<h3>', + 'h4' => '<h4>', + 'h5' => '<h5>', + 'h6' => '<h6>', + 'hr' => '<hr>', + 'i' => '<i>', + 'img' => '<img>', + 'ins' => '<ins>', + 'kbd' => '<kbd>', + 'li' => '<li>', + 'map' => '<map>', + 'object' => '<object>', + 'ol' => '<ol>', + 'p' => '<p>', + 'pre' => '<pre>', + 's' => '<s>', + 'samp' => '<samp>', + 'small' => '<small>', + 'span' => '<span>', + 'strike' => '<strike>', + 'strong' => '<strong>', + 'sub' => '<sub>', + 'sup' => '<sup>', + 'table' => '<table>', + 'tbody' => '<tbody>', + 'td' => '<td>', + 'tfoot' => '<tfoot>', + 'th' => '<th>', + 'thead' => '<thead>', + 'tr' => '<tr>', + 'tt' => '<tt>', + 'u' => '<u>', + 'ul' => '<ul>', + 'var' => '<var>'); + asort($html_list); + reset($html_list); + return $html_list; + } + + /** + * XoopsLists::getUserRankList() + * + * @return + */ + function getUserRankList() + { + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + $myts =& MyTextSanitizer::getInstance(); + $sql = sprintf('SELECT rank_id, rank_title FROM ' . $db->prefix('ranks') . ' WHERE rank_special = %u', 1); + $ret = array(); + $result = $db->query($sql); + while ($myrow = $db->fetchArray($result)) { + $ret[$myrow['rank_id']] = $myts->htmlspecialchars($myrow['rank_title']); + } + return $ret; + } + } +} + +?> \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/categories.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/categories.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/categories.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -71,9 +71,11 @@ $cat =& $catHandler->get($cat_arr[$i]->getVar("cat_pid")); $cat_cat = $cat->getVar("cat_pid"); + $cat_img = $cat_arr[$i]->getVar("cat_imgurl"); + $cat_img_name = substr($cat_img, 0, strpos($cat_img, '.')); echo "<td class='center'>".$cat_arr[$i]->getVar("cat_id")."</td>"; echo "<td class='center'>".$cat_arr[$i]->getVar("cat_title")."</td>"; - echo "<td class='center'><img src='".XOOPS_UPLOAD_URL."/xpdf/images/cat/".$cat_arr[$i]->getVar("cat_imgurl")."' height='10px' title='cat_imgurl' alt='cat_imgurl'></td>"; + echo "<td class='center'><img src='".XOOPS_UPLOAD_URL."/xpdf/images/cat/".$cat_img."' height='10px' title='".$cat_img_name."' alt='".$cat_img_name."'></td>"; echo "<td class='center'>".$cat_arr[$i]->getVar("cat_description")."</td>"; echo "<td class='center'>".$cat_arr[$i]->getVar("cat_weight")."</td>"; Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/documents.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/documents.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/admin/documents.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -25,11 +25,8 @@ include "admin_header.php"; xoops_cp_header(); global $pathImageIcon; - -//On recupere la valeur de l argument op dans l URL$ $op = xpdf_CleanVars($_REQUEST, 'op', 'list_doc', 'string'); -$status_menu = xpdf_CleanVars($_REQUEST, 'status_display', 1, 'int'); - +$status_menu = xpdf_CleanVars($_REQUEST, 'doc_status', 1, 'int'); $docAdmin = new ModuleAdmin(); switch ($op) { @@ -44,7 +41,7 @@ } echo $docAdmin->renderButton(); $criteria = new CriteriaCompo(); - $criteria->setSort("doc_id"); + $criteria->setSort("doc_id ASC, doc_title"); $criteria->setOrder("ASC"); $numrows = $docHandler->getCount(); $doc_arr = $docHandler->getall($criteria); @@ -60,10 +57,10 @@ <th class='center'>"._SUBJECT."</th> <th class='center'>"._SUBMITTER."</th> <th class='center'>"._CREATED."</th> - <th class='center'>"._PUBLISHED."</th> - <th class='center'>"._WEIGHT."</th> + <th class='center'>"._PUBLISHED."</th> <th class='center'>"._STATUS."</th> <th class='center'>"._WAITING."</th> + <th class='center'>"._WEIGHT."</th> <th class='center'>"._ONLINE."</th> <th class='center'>"._FORMACTION."</th> </tr>"; @@ -83,8 +80,7 @@ echo "<td class='center'>".$doc_arr[$i]->getVar("doc_subject")."</td>"; echo "<td class='center'>".XoopsUser::getUnameFromId($doc_arr[$i]->getVar("doc_submitter"),"S")."</td>"; echo "<td class='center'>".formatTimeStamp($doc_arr[$i]->getVar("doc_created"),"S")."</td>"; - echo "<td class='center'>".formatTimeStamp($doc_arr[$i]->getVar("doc_published"),"S")."</td>"; - echo "<td class='center'>".$doc_arr[$i]->getVar("doc_weight")."</td>"; + echo "<td class='center'>".formatTimeStamp($doc_arr[$i]->getVar("doc_published"),"S")."</td>"; if ( $doc_arr[$i]->getVar("doc_status") == 1 ) { echo "<td class='center'><a href='./documents.php?op=delete_pdf_file&doc_id='".$doc_arr[$i]->getVar("doc_id")."&doc_status=0' title='"._AM_XPDF_DELETEPDF."'><img src=".$pathImageIcon."/green_ball.png border='0' alt='"._AM_XPDF_DELETEPDF."' /></a></td>"; @@ -97,7 +93,7 @@ } else { echo "<td class='center'><img src=".$pathImageIcon."/grey_ball.png border='0' alt='' /></td>"; } - + echo "<td class='center'>".$doc_arr[$i]->getVar("doc_weight")."</td>"; if ( $doc_arr[$i]->getVar("doc_online") == 1 ) { echo "<td class='center'><a href='./documents.php?op=update_online_doc&doc_id=".$doc_arr[$i]->getVar("doc_id")."&doc_online=0'><img src=".$pathImageIcon."/on.png border='0' alt='"._ONLINE."' title='"._ONLINE."'></a></td>"; } else { @@ -147,6 +143,8 @@ $obj->setVar("doc_image", $_REQUEST["doc_image"]); //Form doc_subject $obj->setVar("doc_subject", $_REQUEST["doc_subject"]); + //Form doc_subject + $obj->setVar("doc_font", $_REQUEST["doc_font"]); //Form doc_description $obj->setVar("doc_keywords", $_REQUEST["doc_keywords"]); //Form doc_submitter Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_cat.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_cat.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_cat.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -39,10 +39,6 @@ die("XOOPS root path not defined"); } -if (!class_exists("XoopsPersistableObjectHandler")) { - include_once XOOPS_ROOT_PATH."/modules/xpdf/class/object.php"; -} - class xpdf_cat extends XoopsObject { //Constructor @@ -73,8 +69,10 @@ include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); $form = new XoopsThemeForm($title, "form", $action, "post", true); - $form->setExtra('enctype="multipart/form-data"'); - + $form->setExtra('enctype="multipart/form-data"'); + // Title + $form->addElement(new XoopsFormText(_TITLE, "cat_title", 50, 255, $this->getVar("cat_title")), true); + // Subcategories include_once(XOOPS_ROOT_PATH."/class/tree.php"); $catHandler =& xoops_getModuleHandler("xpdf_cat", "xpdf"); $criteria = new CriteriaCompo(); @@ -82,9 +80,8 @@ $criteria->setOrder('ASC'); $cat_arr = $catHandler->getall(); $mytree = new XoopsObjectTree($cat_arr, "cat_id", "cat_pid"); - $form->addElement(new XoopsFormLabel(_PID, $mytree->makeSelBox("cat_pid", "cat_title","--", $this->getVar("cat_pid"),true))); - $form->addElement(new XoopsFormText(_TITLE, "cat_title", 50, 255, $this->getVar("cat_title")), true); - + $form->addElement(new XoopsFormLabel(_PID, $mytree->makeSelBox("cat_pid", "cat_title","--", $this->getVar("cat_pid"),true))); + // Categories Images $cat_imgurl = $this->getVar("cat_imgurl") ? $this->getVar("cat_imgurl") : 'blank.gif'; $uploadirectory = '/uploads/xpdf/images/cat'; $imgtray = new XoopsFormElementTray(_IMAGE,'<br />'); @@ -98,11 +95,11 @@ $imgtray->addElement($imageselect, false); $imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadirectory."/".$cat_imgurl."' name='image' id='image' alt='' />" ) ); $fileseltray = new XoopsFormElementTray('','<br />'); - $fileseltray->addElement(new XoopsFormFile(_FORMUPLOAD , "cat_imgurl", $GLOBALS['xoopsModuleConfig']['cat_imgurl_size']),false); + $fileseltray->addElement(new XoopsFormFile(_FORMUPLOAD , "cat_imgurl", $GLOBALS['xoopsModuleConfig']['size']), false); $fileseltray->addElement(new XoopsFormLabel(''), false); $imgtray->addElement($fileseltray); $form->addElement($imgtray); - + // Description $editor_configs=array(); $editor_configs["name"] ="cat_description"; $editor_configs["value"] = $this->getVar("cat_description", "e"); @@ -112,10 +109,9 @@ $editor_configs["height"] = "400px"; $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']["xpdf_editor"]; $form->addElement( new XoopsFormEditor(_DESCRIPTION, "cat_description", $editor_configs), false ); - - $form->addElement(new XoopsFormText(_WEIGHT, "cat_weight", 10, 25, $this->getVar("cat_weight")), true); - - //permissions + // Weight + $form->addElement(new XoopsFormText(_WEIGHT, "cat_weight", 10, 25, $this->getVar("cat_weight")), true); + //Permissions $member_handler = & xoops_gethandler('member'); $group_list = &$member_handler->getGroupList(); $gperm_handler = &xoops_gethandler('groupperm'); @@ -126,26 +122,26 @@ $groups_ids_submit = $gperm_handler->getGroupIds('xpdf_submit', $this->getVar('cat_id'), $xoopsModule->getVar('mid')); $groups_ids_download = $gperm_handler->getGroupIds('xpdf_download', $this->getVar('cat_id'), $xoopsModule->getVar('mid')); $groups_ids_view = array_values($groups_ids_view); - $groups_doc_can_view_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_VIEW_DSC, 'groups_view[]', $groups_ids_view); + $groups_candoc_view_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_VIEW_DSC, 'groups_view[]', $groups_ids_view); $groups_ids_submit = array_values($groups_ids_submit); - $groups_doc_can_submit_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_SUBMIT_DSC, 'groups_submit[]', $groups_ids_submit); + $groups_candoc_submit_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_SUBMIT_DSC, 'groups_submit[]', $groups_ids_submit); $groups_ids_download = array_values($groups_ids_download); - $groups_doc_can_download_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_DOWNLOAD_DSC, 'groups_download[]', $groups_ids_download); + $groups_candoc_download_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_DOWNLOAD_DSC, 'groups_download[]', $groups_ids_download); } else { - $groups_doc_can_view_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_VIEW_DSC, 'groups_view[]', $full_list); - $groups_doc_can_submit_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_SUBMIT_DSC, 'groups_submit[]', $full_list); - $groups_doc_can_download_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_DOWNLOAD_DSC, 'groups_download[]', $full_list); + $groups_candoc_view_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_VIEW_DSC, 'groups_view[]', $full_list); + $groups_candoc_submit_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_SUBMIT_DSC, 'groups_submit[]', $full_list); + $groups_candoc_download_checkbox = new XoopsFormCheckBox(_AM_XPDF_PERM_DOWNLOAD_DSC, 'groups_download[]', $full_list); } // For view - $groups_doc_can_view_checkbox->addOptionArray($group_list); - $form->addElement($groups_doc_can_view_checkbox); + $groups_candoc_view_checkbox->addOptionArray($group_list); + $form->addElement($groups_candoc_view_checkbox); // For submit - $groups_doc_can_submit_checkbox->addOptionArray($group_list); - $form->addElement($groups_doc_can_submit_checkbox); + $groups_candoc_submit_checkbox->addOptionArray($group_list); + $form->addElement($groups_candoc_submit_checkbox); // For download - if ($GLOBALS['xoopsModuleConfig']['permission_download'] == 1) { - $groups_doc_can_download_checkbox->addOptionArray($group_list); - $form->addElement($groups_doc_can_download_checkbox); + if ($GLOBALS['xoopsModuleConfig']['permission_view'] == 1) { + $groups_candoc_view_checkbox->addOptionArray($group_list); + $form->addElement($groups_candoc_view_checkbox); } // For "cid" if you modify a category Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_doc.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_doc.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/class/xpdf_doc.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -37,8 +37,9 @@ $this->initVar("doc_filename", XOBJ_DTYPE_TXTBOX, null, false, 50); $this->initVar("doc_title", XOBJ_DTYPE_TXTBOX, null, false, 255); $this->initVar("doc_description", XOBJ_DTYPE_TXTAREA, null, false); - $this->initVar("doc_image", XOBJ_DTYPE_TXTBOX, null, false, 30); + $this->initVar("doc_image", XOBJ_DTYPE_TXTBOX, null, false, 50); $this->initVar("doc_subject", XOBJ_DTYPE_TXTBOX, null, false, 100); + $this->initVar("doc_font", XOBJ_DTYPE_TXTBOX, null, false, 50); $this->initVar("doc_keywords", XOBJ_DTYPE_TXTBOX, null, false, 255); $this->initVar("doc_submitter", XOBJ_DTYPE_INT, null, false, 10); $this->initVar("doc_created", XOBJ_DTYPE_INT, null, false, 10); @@ -95,8 +96,16 @@ $cat_arr = $catHandler->getall(); $mytree = new XoopsObjectTree($cat_arr, "cat_id", "cat_pid"); $form->addElement(new XoopsFormLabel(_CATEGORY, $mytree->makeSelBox("cat_pid", "cat_title","--", $this->getVar("cat_pid"),false))); - // + // Subject $form->addElement(new XoopsFormText(_SUBJECT, "doc_subject", 50, 100, $this->getVar("doc_subject")), true); + // Font + $docs_font = $this->getVar('doc_font') ? $this->getVar('doc_font') : 'helvetica'; + $fontselect = new XoopsFormSelect(_FONT, 'doc_font', $docs_font); + $fonts_array = XoopsLists::getFontList(); + foreach( $fonts_array as $font ) { + $fontselect->addOption("{$font}", $font); + } + $form->addElement($fontselect); // Name description $editor_configs=array(); $editor_configs["name"] ="doc_description"; @@ -108,7 +117,7 @@ $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['xpdf_editor']; $form->addElement( new XoopsFormEditor(_DESCRIPTION, "doc_description", $editor_configs), true); // - $form->addElement(new XoopsFormText(_IMAGE, "doc_image", 50, 255, $this->getVar("doc_image")), true); + //$form->addElement(new XoopsFormText(_IMAGE, "doc_image", 50, 255, $this->getVar("doc_image")), true); //image if ( $GLOBALS['xoopsModuleConfig']['useshots']){ $uploaddir = XOOPS_ROOT_PATH . '/uploads/xpdf/images/doc/' .$this->getVar('doc_image'); @@ -122,14 +131,14 @@ $imageselect= new XoopsFormSelect($imgpath, 'doc_img',$docs_img); $topics_array = XoopsLists::getImgListAsArray( XOOPS_ROOT_PATH . $uploadirectory ); foreach( $topics_array as $image ) { - $imageselect->addOption("$image", $image); + $imageselect->addOption("{$image}", $image); } $imageselect->setExtra( "onchange='showImgSelected(\"image3\", \"doc_img\", \"" . $uploadirectory . "\", \"\", \"" . XOOPS_URL . "\")'" ); $imgtray->addElement($imageselect,false); $imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='" . XOOPS_URL . "/" . $uploadirectory . "/" . $docs_img . "' name='image3' id='image3' alt='' />" ) ); $fileseltray= new XoopsFormElementTray('','<br />'); if ($perm_upload == true) { - $fileseltray->addElement(new XoopsFormFile(_AM_XPDF_FORMUPLOAD , 'attachedimage', $GLOBALS['xoopsModuleConfig']['maxuploadsize']), false); + $fileseltray->addElement(new XoopsFormFile(_AM_XPDF_FORMUPLOAD , 'attachedimage', $GLOBALS['xoopsModuleConfig']['size']), false); } $imgtray->addElement($fileseltray); $form->addElement($imgtray); Added: XoopsModules/xpdf/releases/1.01/modules/xpdf/include/update.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/include/update.php (rev 0) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/include/update.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -0,0 +1,29 @@ +<?php +/** + * **************************************************************************** + * - A project for the Xoops CMS - (http://www.xoops.org) + * **************************************************************************** + * XPDF - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (http://www.txmodxoops.org) + * + * 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 TXMod Xoops (http://www.txmodxoops.org) + * @license GPL see LICENSE + * @package xpdf + * @author TXMod Xoops (in...@tx...) + * + * Version : 1.01 Sun 2012/02/05 1:04:25 : Timgno Exp $ + * **************************************************************************** + */ +function xoops_module_update_xpdf() +{ + return true; +} +?> \ No newline at end of file Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/language/english/modinfo.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/language/english/modinfo.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/language/english/modinfo.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -23,7 +23,7 @@ * **************************************************************************** */ // Admin -define("_MI_XPDF_NAME","Xpdf"); +define("_MI_XPDF_NAME","xPdf"); define("_MI_XPDF_DESC","This module create a pdf documents"); //Menu @@ -42,22 +42,53 @@ define("_MI_XPDF_DOC_BLOCK_RANDOM","Documents random"); //Config +define("_MI_XPDF_BREAK_GENERAL","<b class='red'>General<b/>"); define("_MI_XPDF_EDITOR","Editor"); define("_MI_XPDF_KEYWORDS","Keywords"); -define("_MI_XPDF_KEYWORDS_DESC","Insert here the keywords (separate by comma)"); +define("_MI_XPDF_KEYWORDS_DESC","Insert here the general keywords (separate by comma) for index page"); define("_MI_XPDF_SIZE","Mime size"); +define("_MI_XPDF_SIZE_DESC","Mime size for images"); define("_MI_XPDF_MIMETYPES","Mime Types"); -define("_MI_XPDF_CAT_IMGURL_SIZE","Mime size cat_imgurl"); -define("_MI_XPDF_CAT_IMGURL_MIMETYPES","Mime Types cat_imgurl"); - -define("_MI_XPDF_IDPAYPAL", "Paypal ID"); -define("_MI_XPDF_IDPAYPAL_DESC", "Insert here your id paypal for donactions."); +define("_MI_XPDF_MIMETYPES_DESC","Mime Types for images"); +define("_MI_XPDF_SHOTWIDTH", "Logo width"); +define("_MI_XPDF_SHOTWIDTH_DESC", "Larghezza massima per l'immagine del documento"); +define("_MI_XPDF_USESHOTS", "Use logo ?"); +define("_MI_XPDF_USESHOTS_DESC", "Selezionare 'Si' per visualizzare il logo"); +define("_MI_XPDF_BREAK_ADMIN", "<b class='red'>Administration<b/>"); +define("_MI_XPDF_ADMINPERPAGE", "Items per page administration"); +define("_MI_XPDF_ADMINPERPAGE_DESC", "Number of items per page in the administration"); +define("_MI_XPDF_BREAK_DOCS", "<b class='red'>Documents<b/>"); +define("_MI_XPDF_PERMISSIONVIEW","Type of permission"); +define("_MI_XPDF_PERMISSIONVIEW_DESC","Select the type of permission for 'View Permission'"); +define("_MI_XPDF_NBCOLCAT","Columns of categories"); +define("_MI_XPDF_NBCOLCAT_DESC","This option allows you to choose the number of columns of categories"); +define("_MI_XPDF_PERMISSIONVIEW1","Permission by category"); +define("_MI_XPDF_PERMISSIONVIEW2","Permission by document"); +define("_MI_XPDF_BREAK_USER","<b class='red'>User<b/>"); +define("_MI_XPDF_USERPERPAGE", "Items per page"); +define("_MI_XPDF_USERPERPAGE_DESC", "Number of items user per page"); +define("_MI_XPDF_NBCOLDOC","Columns of documents"); +define("_MI_XPDF_NBCOLDOC_DESC","This option allows you to choose the number of columns of documents"); +define("_MI_XPDF_USETELLAFRIEND", "Use Tellafriend module with the link tell a friend?"); +define("_MI_XPDF_USETELLAFRIEND_DESC", "You have to install Tellafriend module in order to use this option"); +define("_MI_XPDF_USETAG", "Use TAG module to generate tags"); +define("_MI_XPDF_USETAG_DESC", "You have to install TAG module in order to use this option"); +define("_MI_XPDF_BREAK_ADVERTISE","<b class='red'>Payments</b>"); +define("_MI_XPDF_PAYPALID", "Paypal ID"); +define("_MI_XPDF_PAYPALID_DESC", "Insert here your id paypal for donactions."); +define("_MI_XPDF_PAYPALIMG", "Paypal Image"); +define("_MI_XPDF_PAYPALIMG_DESC", "Insert here your image paypal for donactions."); +define("_MI_XPDF_PAYMENTSID", "Payments ID"); +define("_MI_XPDF_PAYMENTSID_DESC", "Insert here your id paypal for Payments."); +define("_MI_XPDF_PAYMENTSIMG", "Payments Image"); +define("_MI_XPDF_PAYMENTSIMG_DESC", "Insert here your image paypal for Payments."); define("_MI_XPDF_ADVERTISE","Code of advertise"); -define("_MI_XPDF_ADVERTISE_DESC","Insert here the code of advertisement"); -define("_MI_XPDF_ACTSOCIALNETWORKS","View Socialnetworks?"); -define("_MI_XPDF_CTSOCIALNETWORKS_DESC","If you want to see the buttons of socialnetworks, click on Yes"); -define("_MI_XPDF_SOCIALNETWORKS","Code of socialnetworks"); -define("_MI_XPDF_SOCIALNETWORKS_DESC","Ensert here the code of socialnetworks"); +define("_MI_XPDF_ADVERTISE_DESC","Insert here the code of advertisement (For example Google AdSense)"); +define("_MI_XPDF_BREAK_SOCIAL","<b class='red'>Social Networks</b>"); +define("_MI_XPDF_SHOWSOCIAL","View Social Networks?"); +define("_MI_XPDF_SHOWSOCIAL_DESC","If you want to see the buttons of social networks, click on Yes"); +define("_MI_XPDF_CODESOCIAL","Code of social networks"); +define("_MI_XPDF_CODESOCIAL_DESC","Insert here the code of social networks"); // Notifications define("_MI_XPDF_GLOBAL_NOTIFY", "Global"); Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/language/italian/modinfo.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/language/italian/modinfo.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/language/italian/modinfo.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -23,7 +23,7 @@ * **************************************************************************** */ // Admin -define("_MI_XPDF_NAME","Xpdf"); +define("_MI_XPDF_NAME","xPdf"); define("_MI_XPDF_DESC","This module create a pdf documents"); //Menu @@ -42,22 +42,53 @@ define("_MI_XPDF_DOC_BLOCK_RANDOM","Documents random"); //Config +define("_MI_XPDF_BREAK_GENERAL","<b>Generale<b/>"); define("_MI_XPDF_EDITOR","Editor"); define("_MI_XPDF_KEYWORDS","Keywords"); -define("_MI_XPDF_KEYWORDS_DESC","Insert here the keywords (separate by comma)"); +define("_MI_XPDF_KEYWORDS_DESC","Insert here the general keywords (separate by comma) for index page"); define("_MI_XPDF_SIZE","Mime size"); +define("_MI_XPDF_SIZE_DESC","Mime size for images"); define("_MI_XPDF_MIMETYPES","Mime Types"); -define("_MI_XPDF_CAT_IMGURL_SIZE","Mime size cat_imgurl"); -define("_MI_XPDF_CAT_IMGURL_MIMETYPES","Mime Types cat_imgurl"); - -define("_MI_XPDF_IDPAYPAL", "Paypal ID"); -define("_MI_XPDF_IDPAYPAL_DESC", "Insert here your id paypal for donactions."); +define("_MI_XPDF_MIMETYPES_DESC","Mime Types for images"); +define("_MI_XPDF_SHOTWIDTH", "Larghezza Logo"); +define("_MI_XPDF_SHOTWIDTH_DESC", "Larghezza massima per l'immagine del documento"); +define("_MI_XPDF_USESHOTS", "Usare il logo?"); +define("_MI_XPDF_USESHOTS_DESC", "Selezionare 'Si' per visualizzare il logo"); +define("_MI_XPDF_BREAK_ADMIN", "<b class='red'>Administration<b/>"); +define("_MI_XPDF_ADMINPERPAGE", "Admin per page"); +define("_MI_XPDF_ADMINPERPAGE_DESC", "Number of items per page in the administration"); +define("_MI_XPDF_BREAK_DOCS", "<b class='red'>Documents<b/>"); +define("_MI_XPDF_PERMISSIONVIEW","Type of permission"); +define("_MI_XPDF_PERMISSIONVIEW_DESC","Select the type of permission for 'View Permission'"); +define("_MI_XPDF_PERMISSIONVIEW1","Permission by category"); +define("_MI_XPDF_PERMISSIONVIEW2","Permission by document"); +define("_MI_XPDF_NBCOLCAT","Columns of categories"); +define("_MI_XPDF_NBCOLCAT_DESC","This option allows you to choose the number of columns of categories"); +define("_MI_XPDF_BREAK_USER","<b>Utente<b/>"); +define("_MI_XPDF_USERPERPAGE", "User per page"); +define("_MI_XPDF_USERPERPAGE_DESC", "Number of items user per page"); +define("_MI_XPDF_NBCOLDOC","Columns of documents"); +define("_MI_XPDF_NBCOLDOC_DESC","This option allows you to choose the number of columns of documents"); +define("_MI_XPDF_USETELLAFRIEND", "Use Tellafriend?"); +define("_MI_XPDF_USETELLAFRIEND_DESC", "You have to install Tellafriend module in order to use this option"); +define("_MI_XPDF_USETAG", "Use TAG?"); +define("_MI_XPDF_USETAG_DESC", "You have to install TAG module in order to use this option"); +define("_MI_XPDF_BREAK_ADVERTISE","<b>Pagamenti</b>"); +define("_MI_XPDF_PAYPALID", "Paypal ID"); +define("_MI_XPDF_PAYPALID_DESC", "Insert here your id paypal for donactions."); +define("_MI_XPDF_PAYPALIMG", "Paypal Image"); +define("_MI_XPDF_PAYPALIMG_DESC", "Insert here your image paypal for donactions."); +define("_MI_XPDF_PAYMENTSID", "Payments ID"); +define("_MI_XPDF_PAYMENTSID_DESC", "Insert here your id paypal for Payments."); +define("_MI_XPDF_PAYMENTSIMG", "Payments Image"); +define("_MI_XPDF_PAYMENTSIMG_DESC", "Insert here your image paypal for Payments."); define("_MI_XPDF_ADVERTISE","Code of advertise"); -define("_MI_XPDF_ADVERTISE_DESC","Insert here the code of advertisement"); -define("_MI_XPDF_ACTSOCIALNETWORKS","View Socialnetworks?"); -define("_MI_XPDF_CTSOCIALNETWORKS_DESC","If you want to see the buttons of socialnetworks, click on Yes"); -define("_MI_XPDF_SOCIALNETWORKS","Code of socialnetworks"); -define("_MI_XPDF_SOCIALNETWORKS_DESC","Ensert here the code of socialnetworks"); +define("_MI_XPDF_ADVERTISE_DESC","Insert here the code of advertisement (For example Google AdSense)"); +define("_MI_XPDF_BREAK_SOCIAL","<b>Social Network</b>"); +define("_MI_XPDF_SHOWSOCIAL","View Social Networks?"); +define("_MI_XPDF_SHOWSOCIAL_DESC","If you want to see the buttons of social networks, click on Yes"); +define("_MI_XPDF_CODESOCIAL","Code of social networks"); +define("_MI_XPDF_CODESOCIAL_DESC","Insert here the code of social networks"); // Notifications define("_MI_XPDF_GLOBAL_NOTIFY", "Global"); Property changes on: XoopsModules/xpdf/releases/1.01/modules/xpdf/sql ___________________________________________________________________ Added: svn:ignore + mysql101.sql Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/sql/mysql.sql 2012-03-17 11:57:26 UTC (rev 9147) @@ -43,6 +43,7 @@ `doc_image` varchar (30) NOT NULL default '', `doc_subject` varchar (255) NOT NULL default '', `doc_keywords` varchar (255) NOT NULL default '', +`doc_font` int (10) NOT NULL default '0', `doc_submitter` int (10) NOT NULL default '0', `doc_created` int (10) NOT NULL default '0', `doc_published` int (10) NOT NULL default '0', Modified: XoopsModules/xpdf/releases/1.01/modules/xpdf/xoops_version.php =================================================================== --- XoopsModules/xpdf/releases/1.01/modules/xpdf/xoops_version.php 2012-03-16 16:24:37 UTC (rev 9146) +++ XoopsModules/xpdf/releases/1.01/modules/xpdf/xoops_version.php 2012-03-17 11:57:26 UTC (rev 9147) @@ -1,4 +1,4 @@ -<?php +<?php /** * **************************************************************************** * - A project for the Xoops CMS - (http://www.xoops.org) @@ -22,173 +22,279 @@ * Version : 1.01 Sun 2012/02/05 1:04:25 : Timgno Exp $ * **************************************************************************** */ -if (!defined('XOOPS_ROOT_PATH')){ exit(); } +if(!defined('XOOPS_ROOT_PATH')){exit();} +$dirname=basename(dirname(__FILE__)); -$dirname = basename( dirname( __FILE__ ) ); - $modversion['name'] = _MI_XPDF_NAME; $modversion['version'] = 1.01; $modversion['description'] = _MI_XPDF_DESC; -$modversion['author'] = "TXMod Xoops"; +$modversion['author'] = "TXModXoops"; $modversion['author_mail'] = "in...@tx..."; $modversion['author_website_url'] = "http://www.txmodxoops.org"; -$modversion['author_website_name'] = "TXMod Xoops"; +$modversion['author_website_name'] = "TXModXoops"; $modversion['credits'] = "Timgno"; -$modversion['license'] = "Only for personal use"; +$modversion['license'] = "Onlyforpersonaluse"; $modversion['help'] = "page=help"; $modversion['license_url'] = "http://www.txmodxoops.org"; $modversion['release_info'] = "Alpha 3 16/03/2012"; -$modversion['release_file'] = XOOPS_URL."/modules/".$dirname."/docs/changelog.txt"; +$modversion['release_file'] = XOOPS_URL."/modules/{$dirname}/docs/changelog.txt"; $modversion['release_date'] = "2012/03/01"; -$modversion['manual'] = "Install Manual"; -$modversion['manual_file'] = XOOPS_URL."/modules/".$dirname."/docs/install.txt"; +$modversion['manual'] = "InstallManual"; +$modversion['manual_file'] = XOOPS_URL."/modules/{$dirname}/docs/install.txt"; $modversion['min_php'] = "5.2"; $modversion['min_xoops'] = "2.5"; -$modversion['min_admin']= "1.1"; -$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'); -$modversion['image'] = "images/xpdf_slogo.png"; -$modversion['dirname'] = "$dirname"; +$modversion['min_admin'] = "1.1"; +$modversion['min_db'] = array('mysql'=>'5.0.7','mysqli'=>'5.0.7'); +$modversion['image'] = "images/{$dirname}_slogo.png"; +$modversion['dirname'] = "{$dirname}"; -$modversion['dirmoduleadmin'] = 'Frameworks/moduleclasses'; -$modversion['icons16'] = 'Frameworks/moduleclasses/icons/16'; -$modversion['icons32'] = 'Frameworks/moduleclasses/icons/32'; +$modversion['dirmoduleadmin'] = "Frameworks/moduleclasses"; +$modversion['icons16'] = "Frameworks/moduleclasses/icons/16"; +$modversion['icons32'] = "Frameworks/moduleclasses/icons/32"; //About $modversion['demo_site_url'] = "http://www.txmodxoops.org/modules/xpdf"; -$modversion['demo_site_name'] = "PDF Documents TXMod Xoops"; +$modversion['demo_site_name'] = "PDFDocumentsTXModXoops"; $modversion['forum_site_url'] = "http://www.txmodxoops.org/modules/newbb/"; -$modversion['forum_site_name'] = "TXMod Xoops Community"; +$modversion['forum_site_name'] = "TXModXoopsCommunity"; $modversion['module_website_url'] = "http://www.txmodxoops.org/"; -$modversion['module_website_name'] = "TXMod Xoops"; +$modversion['module_website_name'] = "TXModXoops"; $modversion['release'] = "16-03-2012"; $modversion['module_status'] = "Alpha 3"; -// Admin things +//Adminthings $modversion['hasAdmin'] = 1; -// Admin system menu +//Adminsystemmenu $modversion['system_menu'] = 1; -$modversion["adminindex"] = "admin/index.php"; -$modversion["adminmenu"] = "admin/menu.php"; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; -// Mysql file +//Mysqlfile $modversion['sqlfile']['mysql'] = "sql/mysql.sql"; -// Tables +//Tables $modversion['tables'][1] = "xpdf_cat"; $modversion['tables'][2] = "xpdf_doc"; -// Scripts to run upon installation or update -$modversion["onInstall"] = "include/install.php"; -//$modversion["onUpdate"] = "include/update.php"; +//Scripts to run up on installation or update +$modversion['onInstall'] = "include/install.php"; +//$modversion['onUpdate'] = "include/update.php"; -// Menu -$modversion["hasMain"] = 1; +//Menu +$modversion['hasMain'] = 1; //Search -$modversion["hasSearch"] = 1; -$modversion["search"]["file"] = "include/search.inc.php"; -$modversion["search"]["func"] = "xpdf_search"; +$modversion['hasSearch'] = 1; +$modversion['search']['file'] = "include/search.inc.php"; +$modversion['search']['func'] = "xpdf_search"; -// Templates -$i = 1; -$modversion["templates"][$i]["file"] = "xpdf_header.html"; -$modversion["templates"][$i]["description"] = "xpdf header page"; +//Templates +$i=1; +$modversion['templates'][$i]['file'] = "xpdf_header.html"; +$modversion['templates'][$i]['description'] = "xpdfheaderpage"; $i++; -$modversion["templates"][$i]["file"] = "xpdf_index.html"; -$modversion["templates"][$i]["description"] = "xpdf index page"; +$modversion['templates'][$i]['file'] = "xpdf_index.html"; +$modversion['templates'][$i]['description'] = "xpdfindexpage"; $i++; -$modversion["templates"][$i]["file"] = "xpdf_viewcat.html"; -$modversion["templates"][$i]["description"] = "xpdf cat page"; +$modversion['templates'][$i]['file'] = "xpdf_viewcat.html"; +$modversion['templates'][$i]['description'] = "xpdfcatpage"; $i++; -$modversion["templates"][$i]["file"] = "xpdf_singledoc.html"; -$modversion["templates"][$i]["description"] = "xpdf doc page"; +$modversion['templates'][$i]['file'] = "xpdf_singledoc.html"; +$modversion['templates'][$i]['description'] = "xpdfdocpage"; $i++; -$modversion["templates"][$i]["file"] = "xpdf_submit.html"; -$modversion["templates"][$i]["description"] = "xpdf submit page"; +$modversion['templates'][$i]['file'] = "xpdf_submit.html"; +$modversion['templates'][$i]['description'] = "xpdfsubmitpage"; $i++; -$modversion["templates"][$i]["file"] = "xpdf_footer.html"; -$modversion["templates"][$i]["description"] = "xpdf footer page"; -unset( $i ); +$modversion['templates'][$i]['file'] = "xpdf_footer.html"; +$modversion['templates'][$i]['description'] = "xpdffooterpage"; +unset($i); //Blocs -$i = 1; -$modversion["blocks"][$i]["file"] = "blocks_doc.php"; -$modversion["blocks"][$i]["name"] = _MI_XPDF_DOC_BLOCK_RECENT; -$modversion["blocks"][$i]["description"] = ""; -$modversion["blocks"][$i]["show_func"] = "b_xpdf_doc"; -$modversion["blocks"][$i]["edit_func"] = "b_xpdf_doc_edit"; -$modversion["blocks"][$i]["options"] = "recent|5|25|0"; -$modversion["blocks"][$i]["template"] = "xpdf_doc_block_recent.html"; +$i=1; +$modversion['blocks'][$i]['file'] = "blocks_doc.php"; +$modversion['blocks'][$i]['name'] = _MI_XPDF_DOC_BLOCK_RECENT; +$modversion['blocks'][$i]['description'] = ""; +$modversion['blocks'][$i]['show_func'] = "b_xpdf_doc"; +$modversion['blocks'][$i]['edit_func'] = "b_xpdf_doc_edit"; +$modversion['blocks'][$i]['options'] = "recent|5|25|0"; +$modversion['blocks'][$i]['template'] = "xpdf_doc_block_recent.html"; $i++; -$modversion["blocks"][$i]["file"] = "blocks_doc.php"; -$modversion["blocks"][$i]["name"] = _MI_XPDF_DOC_BLOCK_DAY; -$modversion["blocks"][$i]["description"] = ""; -$modversion["blocks"][$i]["show_func"] = "b_xpdf_doc"; -$modversion["blocks"][$i]["edit_func"] = "b_xpdf_doc_edit"; -$modversion["blocks"][$i]["options"] = "day|5|25|0"; -$modversion["blocks"][$i]["template"] = "xpdf_doc_block_day.html"; +$modversion['blocks'][$i]['file'] = "blocks_doc.php"; +$modversion['blocks'][$i]['name'] = _MI_XPDF_DOC_BLOCK_DAY; +$modversion['blocks'][$i]['description'] = ""; +$modversion['blocks'][$i]['show_func'] = "b_xpdf_doc"; +$modversion['blocks'][$i]['edit_func'] = "b_xpdf_doc_edit"; +$modversion['blocks'][$i]['options'] = "day|5|25|0"; +$modversion['blocks'][$i]['template'] = "xpdf_doc_block_day.html"; $i++; -$modversion["blocks"][$i]["file"] = "blocks_doc.php"; -$modversion["blocks"][$i]["name"] = _MI_XPDF_DOC_BLOCK_RANDOM; -$modversion["blocks"][$i]["description"] = ""; -$modversion["blocks"][$i]["show_func"] = "b_xpdf_doc"; -$modversion["blocks"][$i]["edit_func"] = "b_xpdf_doc_edit"; -$modversion["blocks"][$i]["options"] = "random|5|25|0"; -$modversion["blocks"][$i]["template"] = "xpdf_doc_block_random.html"; -unset( $i ); +$modversion['blocks'][$i]['file'] = "blocks_doc.php"; +$modversion['blocks'][$i]['name'] = _MI_XPDF_DOC_BLOCK_RANDOM; +$modversion['blocks'][$i]['description'] = ""; +$modversion['blocks'][$i]['show_func'] = "b_xpdf_doc"; +$modversion['blocks'][$i]['edit_func'] = "b_xpdf_doc_edit"; +$modversion['blocks'][$i]['options'] = "random|5|25|0"; +$modversion['blocks'][$i]['template'] = "xpdf_doc_block_random.html"; +unset($i); -// Config -$i = 1; -include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; -$modversion["config"][$i]["name"] = "xpdf_editor"; -$modversion["config"][$i]["title"] = "_MI_XPDF_EDITOR"; -$modversion["config"][$i]["description"] = "_MI_XPDF_EDITOR_DESC"; -$modversion["config"][$i]["formtype"] = "select"; -$modversion["config"][$i]["valuetype"] = "text"; -$modversion["config"][$i]["default"] = "dhtmltextarea"; -$modversion["config"][$i]["options"] = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . "/class/xoopseditor"); -$modversion... [truncated message content] |