|
From: <des...@us...> - 2013-09-14 18:48:56
|
Revision: 12045
http://sourceforge.net/p/xoops/svn/12045
Author: designburo
Date: 2013-09-14 18:48:53 +0000 (Sat, 14 Sep 2013)
Log Message:
-----------
Added block and several other changes
Added Paths:
-----------
XoopsModules/qrcode/releases/1.1/
XoopsModules/qrcode/releases/1.1/qrcode/
XoopsModules/qrcode/releases/1.1/qrcode/admin/
XoopsModules/qrcode/releases/1.1/qrcode/admin/about.php
XoopsModules/qrcode/releases/1.1/qrcode/admin/footer.php
XoopsModules/qrcode/releases/1.1/qrcode/admin/header.php
XoopsModules/qrcode/releases/1.1/qrcode/admin/help.php
XoopsModules/qrcode/releases/1.1/qrcode/admin/index.php
XoopsModules/qrcode/releases/1.1/qrcode/admin/main.php
XoopsModules/qrcode/releases/1.1/qrcode/admin/menu.php
XoopsModules/qrcode/releases/1.1/qrcode/blocks/
XoopsModules/qrcode/releases/1.1/qrcode/blocks/blocks.php
XoopsModules/qrcode/releases/1.1/qrcode/blocks/index.html
XoopsModules/qrcode/releases/1.1/qrcode/class/
XoopsModules/qrcode/releases/1.1/qrcode/class/admin.php
XoopsModules/qrcode/releases/1.1/qrcode/class/index.html
XoopsModules/qrcode/releases/1.1/qrcode/css/
XoopsModules/qrcode/releases/1.1/qrcode/css/admin.css
XoopsModules/qrcode/releases/1.1/qrcode/css/index.html
XoopsModules/qrcode/releases/1.1/qrcode/docs/
XoopsModules/qrcode/releases/1.1/qrcode/docs/changelog.txt
XoopsModules/qrcode/releases/1.1/qrcode/docs/credits.txt
XoopsModules/qrcode/releases/1.1/qrcode/docs/index.html
XoopsModules/qrcode/releases/1.1/qrcode/docs/install.txt
XoopsModules/qrcode/releases/1.1/qrcode/docs/lang_diff.txt
XoopsModules/qrcode/releases/1.1/qrcode/docs/licence.txt
XoopsModules/qrcode/releases/1.1/qrcode/docs/readme.txt
XoopsModules/qrcode/releases/1.1/qrcode/getimage.php
XoopsModules/qrcode/releases/1.1/qrcode/images/
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/about.png
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/help.png
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/home.png
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/index.html
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/qrcode.png
XoopsModules/qrcode/releases/1.1/qrcode/images/admin/xoopsmicrobutton.gif
XoopsModules/qrcode/releases/1.1/qrcode/images/create_contact.png
XoopsModules/qrcode/releases/1.1/qrcode/images/create_email.png
XoopsModules/qrcode/releases/1.1/qrcode/images/create_geo.png
XoopsModules/qrcode/releases/1.1/qrcode/images/create_phone.png
XoopsModules/qrcode/releases/1.1/qrcode/images/create_sms.png
XoopsModules/qrcode/releases/1.1/qrcode/images/create_txt.png
XoopsModules/qrcode/releases/1.1/qrcode/images/create_url.png
XoopsModules/qrcode/releases/1.1/qrcode/images/icons/
XoopsModules/qrcode/releases/1.1/qrcode/images/icons/index.html
XoopsModules/qrcode/releases/1.1/qrcode/images/icons/off.png
XoopsModules/qrcode/releases/1.1/qrcode/images/icons/on.png
XoopsModules/qrcode/releases/1.1/qrcode/images/logo.png
XoopsModules/qrcode/releases/1.1/qrcode/images/xoops_module_qrcode.png
XoopsModules/qrcode/releases/1.1/qrcode/index.html
XoopsModules/qrcode/releases/1.1/qrcode/language/
XoopsModules/qrcode/releases/1.1/qrcode/language/english/
XoopsModules/qrcode/releases/1.1/qrcode/language/english/admin.php
XoopsModules/qrcode/releases/1.1/qrcode/language/english/blocks.php
XoopsModules/qrcode/releases/1.1/qrcode/language/english/help/
XoopsModules/qrcode/releases/1.1/qrcode/language/english/help/help.html
XoopsModules/qrcode/releases/1.1/qrcode/language/english/help/index.html
XoopsModules/qrcode/releases/1.1/qrcode/language/english/main.php
XoopsModules/qrcode/releases/1.1/qrcode/language/english/modinfo.php
XoopsModules/qrcode/releases/1.1/qrcode/qrcode.php
XoopsModules/qrcode/releases/1.1/qrcode/templates/
XoopsModules/qrcode/releases/1.1/qrcode/templates/blocks/
XoopsModules/qrcode/releases/1.1/qrcode/templates/blocks/qrocde_block.html
XoopsModules/qrcode/releases/1.1/qrcode/templates/help.html
XoopsModules/qrcode/releases/1.1/qrcode/xoops_version.php
Added: XoopsModules/qrcode/releases/1.1/qrcode/admin/about.php
===================================================================
--- XoopsModules/qrcode/releases/1.1/qrcode/admin/about.php (rev 0)
+++ XoopsModules/qrcode/releases/1.1/qrcode/admin/about.php 2013-09-14 18:48:53 UTC (rev 12045)
@@ -0,0 +1,46 @@
+<?php
+/**
+ * MyModule module
+ *
+ * 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 http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package MyModule
+ * @since 2.5.0
+ * @author Mage, Mamba
+ * @version $Id $
+ **/
+
+include '../../../include/cp_header.php';
+include '../../../class/xoopsformloader.php';
+xoops_cp_header();
+include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+
+$module_info =& $module_handler->get($xoopsModule->getVar("mid"));
+
+$module_info = '<div id="about">
+ <label>' . _AM_QRCODE_ABOUT_DESCRIPTION . '</label><text>' . $module_info->getInfo("description") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_RELEASEDATE . '</label><text class="bold">' . $module_info->getInfo("release_date") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_UPDATEDATE . '</label><text class="bold">' . formatTimestamp($xoopsModule->getVar("last_update"), "m") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_MODULE_STATUS . '</label><text>' . $module_info->getInfo("module_status") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_WEBSITE . '</label><text><a class="tooltip" href="' . $module_info->getInfo("module_website_url") . '" rel="external" title="' . $module_info->getInfo("module_website_name") . ' - ' . $module_info->getInfo("module_website_url") . '">
+ ' . $module_info->getInfo("module_website_name") . '</a></text></div>';
+
+$about_admin = new ModuleAdmin();
+$about_admin->addLabel($xoopsModule->getVar("name"));
+$about_admin->addLabel(_AM_QRCODE_ABOUT_MODULE_INFO);
+$about_admin->addLineLabel($xoopsModule->getVar("name"), '', 'VNXNVZZQP5FZJ', '', 'module');
+$about_admin->addLineLabel(_AM_QRCODE_ABOUT_MODULE_INFO, $module_info, '', '', 'information');
+$about_admin->addChangelogLabel(_AM_QRCODE_ABOUT_CHANGELOG);
+
+echo $about_admin->addNavigation('about.php');
+echo $about_admin->renderabout();
+
+include 'footer.php' ;
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.1/qrcode/admin/footer.php
===================================================================
--- XoopsModules/qrcode/releases/1.1/qrcode/admin/footer.php (rev 0)
+++ XoopsModules/qrcode/releases/1.1/qrcode/admin/footer.php 2013-09-14 18:48:53 UTC (rev 12045)
@@ -0,0 +1,25 @@
+<?php
+/**
+ * MyLinks module
+ *
+ * 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:: http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package:: mylinks
+ * @subpackage:: admin
+ * @since: 2.5.0
+ * @author:: Magic.Shao <mag...@gm...> - Susheng Yang <ezs...@gm...>
+ * @version:: $Id $
+**/
+
+echo "<div align=\"center\"><a href=\"http://www.designburo.nl\" target=\"_blank\"><img src=\"http://designburo.nl/images/dsgnbro.gif\" alt=\"XOOPS\" title=\"XOOPS\"></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://designburo.nl' title='Visit Designburo.nl'>Designburo.nl</a></div>";
+
+xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.1/qrcode/admin/header.php
===================================================================
--- XoopsModules/qrcode/releases/1.1/qrcode/admin/header.php (rev 0)
+++ XoopsModules/qrcode/releases/1.1/qrcode/admin/header.php 2013-09-14 18:48:53 UTC (rev 12045)
@@ -0,0 +1,57 @@
+<?php
+/**
+ * MyLinks module
+ *
+ * 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:: http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package:: mylinks
+ * @subpackage:: admin
+ * @since:: 2.5.0
+ * @author:: Magic.Shao <mag...@gm...> - Susheng Yang <ezs...@gm...>
+ * @version:: $Id $
+**/
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+include("../../../include/cp_header.php");
+include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+
+//defined("FRAMEWORKS_ART_FUNCTIONS_INI") || include_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.ini.php';
+//load_functions("admin");
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+xoops_cp_header();
+
+// Define Stylesheet and JScript
+$xoTheme->addStylesheet( XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/css/admin.css" );
+//$xoTheme->addJavaScript( XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/admin/switcher.js" );
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.1/qrcode/admin/help.php
===================================================================
--- XoopsModules/qrcode/releases/1.1/qrcode/admin/help.php (rev 0)
+++ XoopsModules/qrcode/releases/1.1/qrcode/admin/help.php 2013-09-14 18:48:53 UTC (rev 12045)
@@ -0,0 +1,16 @@
+<?php
+// ------------------------------------------------------------------------ //
+// Author: Designburo.nl (in...@de...) //
+// http://www.designburo.nl //
+// Project: QRcode v1.0 //
+// ------------------------------------------------------------------------ //
+include '../../../include/cp_header.php';
+// if the site has no language defined, turn to English default
+if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
+include "../language/".$xoopsConfig['language']."/main.php"; } else { include "../language/english/main.php"; }
+$xoopsOption['template_main'] = 'help.html';
+include(XOOPS_ROOT_PATH.'/mainfile.php');
+xoops_cp_header();
+
+xoops_cp_footer();
+?>
Added: XoopsModules/qrcode/releases/1.1/qrcode/admin/index.php
===================================================================
--- XoopsModules/qrcode/releases/1.1/qrcode/admin/index.php (rev 0)
+++ XoopsModules/qrcode/releases/1.1/qrcode/admin/index.php 2013-09-14 18:48:53 UTC (rev 12045)
@@ -0,0 +1,39 @@
+<?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 XOOPS Project
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package
+ * @author
+ *
+ * Version : $Id:
+ * ****************************************************************************
+ */
+
+require_once '../../../include/cp_header.php';
+include 'header.php';
+
+
+include_once XOOPS_ROOT_PATH."/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+
+ $index_admin = new ModuleAdmin();
+
+$index_admin->addConfigLabel(_AM_QRCODE_CONFIG_CHECK) ;
+$index_admin->addLineConfigLabel(_AM_QRCODE_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php') ;
+$index_admin->addLineConfigLabel(_AM_QRCODE_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops') ;
+
+ echo $index_admin->addNavigation('index.php') ;
+ echo $index_admin->renderIndex();
+
+
+include "footer.php";
+xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.1/qrcode/admin/main.php
===================================================================
--- XoopsModules/qrcode/releases/1.1/qrcode/admin/main.php (rev 0)
+++ XoopsModules/qrcode/releases/1.1/qrcode/admin/main.php 2013-09-14 18:48:53 UTC (rev 12045)
@@ -0,0 +1,331 @@
+<?php
+// ------------------------------------------------------------------------ //
+// Author: Designburo.nl (in...@de...) //
+// http://www.designburo.nl //
+// Project: QRcode v1.0 //
+// ------------------------------------------------------------------------ //
+include '../../../include/cp_header.php';
+// if the site has no language defined, turn to English default
+if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
+include "../language/".$xoopsConfig['language']."/main.php"; } else { include "../language/english/main.php"; }
+include(XOOPS_ROOT_PATH.'/mainfile.php');
+include_once XOOPS_ROOT_PATH."/modules/qrcode/qrcode.php";
+xoops_cp_header();
+if(isset($_POST['type']))
+{
+ switch ($_POST['type'])
+ {
+
+
+ case "phone":
+ if (!$_POST['qr_phone'])
+ {
+ $res= _QRCODE_PHONE_F_ERROR_NR;
+ }
+ else
+ {
+ $data=array();
+ $type="phone";
+ $data['phonenr'] = $_POST['qr_phone'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+ }
+ break;
+
+ case "url":
+ if (!$_POST['qr_url'])
+ {
+ $res= _QRCODE_URL_F_ERROR_URL;
+ }
+ else
+ {
+ $data=array();
+ $type="url";
+ $data['url'] = $_POST['qr_url'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+ }
+ break;
+ case "email":
+ if (!$_POST['qr_email_to'])
+ {
+ $res= _QRCODE_EMAIL_F_ERROR_EMAIL;
+ }
+ else
+ {
+ $data=array();
+ $type="email";
+ $data['email']=$_POST['qr_email_to']; // Send email to ?
+ $data['subject']=$_POST['qr_email_sub']; // Subject of the email
+ $data['txt']=$_POST['qr_email_txt']; // Body of the email
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+ }
+ break;
+
+ case "sms":
+ if (!$_POST['qr_sms_to'])
+ {
+ $res= _QRCODE_SMS_F_ERROR_NR;
+ }
+ else
+ {
+ $data=array();
+ $type="sms";
+ $data['phonenr']=$_POST['qr_sms_to'];
+ $data['txt']=$_POST['qr_sms_txt'];
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+ }
+ break;
+
+ case "txt":
+ if (!$_POST['qr_txt'])
+ {
+ $res= _QRCODE_TXT_F_ERROR_TXT;
+ }
+ else
+ {
+ $data=array();
+ $type="txt";
+ $data['txt'] = $_POST['qr_txt'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ }
+ break;
+
+ case "geo":
+
+ $data=array();
+ $type="geo";
+ $data['lat'] = $_POST['qr_latitude'];
+ $data['long'] = $_POST['qr_longtitude'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "bus":
+
+ $data=array();
+ $type="contact";
+ $data['surname']=$_POST['qr_c_anaam'];
+ $data['name']=$_POST['qr_c_vnaam'];
+ $data['mobile']=$_POST['qr_c_gsm'];
+ $data['phonenr']=$_POST['qr_c_phone'];
+ $data['adres']=$_POST['qr_c_adres'];
+ $data['state']=$_POST['qr_c_state'];
+ $data['city']=$_POST['qr_c_city'];
+ $data['zipcode']=$_POST['qr_c_zip'];
+ $data['country']=$_POST['qr_c_land'];
+ $data['email']=$_POST['qr_c_email'];
+ $data['url']=$_POST['qr_c_web'];
+ $data['title']=$_POST['qr_c_functie'];
+ $data['company']=$_POST['qr_c_bedrijf'];
+ $data['b_year']=$_POST['qr_c_gjaar'];
+ $data['b_month']=$_POST['qr_c_gmaand'];
+ $data['b_day']=$_POST['qr_c_gdag'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+
+ }
+
+
+ break;
+
+}
+
+if(isset($_GET['a']))
+{
+
+ switch ($_GET['a'])
+ {
+
+ case "url":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_URL_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_url.png" border="0" title="'._QRCODE_URL_D.'"></td><td>';
+ echo '<h2>'._QRCODE_URL_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_URL_F_URL.'</td><td><input name="qr_url" id="qr_url" type="text" size="50" value="http://" /></td><td align=right><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr></table></td></tr></table>
+ </div><input type="hidden" name="type" value="url"></form></div></div></td></tr></table>';
+ break;
+
+ case "email":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_EMAIL_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_email.png" border="0" title="'._QRCODE_EMAIL_D.'"></td><td>';
+ echo '<h2>'._QRCODE_EMAIL_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_EMAIL_F_TO.'</td><td><input name="qr_email_to" type="text" size="50" /></td><td rowspan="3"align="right" valign="bottom"><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr>';
+ echo '<tr>
+ <td valign="middle">'._QRCODE_EMAIL_F_SUBJECT.'</td><td valign="top"><input name="qr_email_sub" type="text" size="50" /></td>
+ </tr><tr>
+ <td>'._QRCODE_EMAIL_F_TXT.'</td><td><input name="qr_email_txt" type="text" size="50" /></td>
+ </tr>
+
+ ';
+ echo '</table></td></tr></table>
+ </div><input type="hidden" name="type" value="email"></form></div></div></td></tr></table>';
+ break;
+
+ case "phone":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_PHONE_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_phone.png" border="0" title="'._QRCODE_PHONE_D.'"></td><td>';
+ echo '<h2>'._QRCODE_PHONE_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_PHONE_F_NR.'</td><td><input name="qr_phone" type="text" size="50" /></td><td align=right><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr></table></td></tr></table>
+ </div><input type="hidden" name="type" value="phone"></form></div></div></td></tr></table>';
+ break;
+
+ case "sms":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_SMS_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_sms.png" border="0" title="'._QRCODE_SMS_D.'"></td><td>';
+ echo '<h2>'._QRCODE_SMS_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_SMS_F_NR.'</td><td><input name="qr_sms_to" type="text" size="50" maxsize="140" /></td><td rowspan="3"align="right" valign="bottom"><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr>';
+ echo '<tr>
+ <td>'._QRCODE_SMS_F_TXT.'</td><td><input name="qr_sms_txt" type="text" size="50" /></td>
+ </tr>
+
+ ';
+ echo '</table></td></tr></table>
+ </div><input type="hidden" name="type" value="sms"></form></div></div></td></tr></table>';
+ break;
+
+ case "txt":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_TXT_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_txt.png" border="0" title="'._QRCODE_TXT_D.'"></td><td>';
+ echo '<h2>'._QRCODE_TXT_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_TXT_F_TXT.'</td><td><textarea name="qr_txt" cols="45" rows="3" /></textarea></td><td rowspan="3"align="right" valign="bottom"><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr>';
+
+ echo '</table></td></tr></table>
+ </div><input type="hidden" name="type" value="txt"></form></div></div></td></tr></table>';
+ break;
+
+ case "geo":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_GEO_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_geo.png" border="0" title="'._QRCODE_GEO_D.'"></td><td>';
+ echo '<h2>'._QRCODE_GEO_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_GEO_F_LA.'</td><td><input name="qr_latitude" type="text" size="50" /></td><td rowspan="3"align="right" valign="bottom"><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr>';
+ echo '<tr>
+ <td>'._QRCODE_GEO_F_LO.'</td><td><input name="qr_longtitude" type="text" size="50" /></td>
+ </tr>
+
+ ';
+ echo '</table></td></tr></table>
+ </div><input type="hidden" name="type" value="geo"></form></div></div></td></tr></table>';
+ break;
+
+
+ case "bus":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_BUS_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_contact.png" border="0" title="'._QRCODE_BUS_D.'"></td><td>';
+ echo '<h2>'._QRCODE_BUS_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<div id="url_div"><table class="tabel"><tr><td>'._QRCODE_BUS_F_SNAME.'</td><td><input name="qr_c_anaam" type="text" size="50" /></td><td rowspan="17"align="right" valign="bottom"><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td>
+ </tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_FNAME.'</td><td><input name="qr_c_vnaam" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_COMPANY.'</td><td><input name="qr_c_bedrijf" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_TITLE.'</td><td><input name="qr_c_functie" type="text" size="50" /></td></tr>';
+ echo '<tr><td colspan=2><BR><BR></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_PHONE.'</td><td><input name="qr_c_phone" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_MOB.'</td><td><input name="qr_c_gsm" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_EMAIL.'</td><td><input name="qr_c_email" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_WEB.'</td><td><input name="qr_c_web" type="text" size="50" /></td></tr>';
+ echo '<tr><td colspan=2><BR><BR></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_ADRES.'</td><td><input name="qr_c_adres" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_ZIP.'</td><td><input name="qr_c_zip" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_CITY.'</td><td><input name="qr_c_city" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_STATE.'</td><td><input name="qr_c_state" type="text" size="50" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_COUNTRY.'</td><td><input name="qr_c_land" type="text" size="50" /></td></tr>';
+ echo '<tr><td colspan=2><BR><BR></td></tr>';
+ echo '<tr><td>'._QRCODE_BUS_F_BDAY.'</td><td><select name="qr_c_gdag">';
+ for($rt=1;$rt<=31;$rt++){
+ echo "<option value=\"".sprintf('%02d',$rt)."\">".sprintf('%02d',$rt)."</option>\n";
+ }
+ echo...
[truncated message content] |
|
From: <des...@us...> - 2013-09-16 11:44:52
|
Revision: 12060
http://sourceforge.net/p/xoops/svn/12060
Author: designburo
Date: 2013-09-16 11:44:47 +0000 (Mon, 16 Sep 2013)
Log Message:
-----------
Support for four new protocols.
Added Paths:
-----------
XoopsModules/qrcode/releases/1.2/
XoopsModules/qrcode/releases/1.2/qrcode/
XoopsModules/qrcode/releases/1.2/qrcode/admin/
XoopsModules/qrcode/releases/1.2/qrcode/admin/about.php
XoopsModules/qrcode/releases/1.2/qrcode/admin/footer.php
XoopsModules/qrcode/releases/1.2/qrcode/admin/header.php
XoopsModules/qrcode/releases/1.2/qrcode/admin/help.php
XoopsModules/qrcode/releases/1.2/qrcode/admin/index.php
XoopsModules/qrcode/releases/1.2/qrcode/admin/main.php
XoopsModules/qrcode/releases/1.2/qrcode/admin/menu.php
XoopsModules/qrcode/releases/1.2/qrcode/blocks/
XoopsModules/qrcode/releases/1.2/qrcode/blocks/blocks.php
XoopsModules/qrcode/releases/1.2/qrcode/blocks/index.html
XoopsModules/qrcode/releases/1.2/qrcode/class/
XoopsModules/qrcode/releases/1.2/qrcode/class/admin.php
XoopsModules/qrcode/releases/1.2/qrcode/class/index.html
XoopsModules/qrcode/releases/1.2/qrcode/css/
XoopsModules/qrcode/releases/1.2/qrcode/css/admin.css
XoopsModules/qrcode/releases/1.2/qrcode/css/index.html
XoopsModules/qrcode/releases/1.2/qrcode/docs/
XoopsModules/qrcode/releases/1.2/qrcode/docs/changelog.txt
XoopsModules/qrcode/releases/1.2/qrcode/docs/credits.txt
XoopsModules/qrcode/releases/1.2/qrcode/docs/index.html
XoopsModules/qrcode/releases/1.2/qrcode/docs/install.txt
XoopsModules/qrcode/releases/1.2/qrcode/docs/lang_diff.txt
XoopsModules/qrcode/releases/1.2/qrcode/docs/licence.txt
XoopsModules/qrcode/releases/1.2/qrcode/docs/readme.txt
XoopsModules/qrcode/releases/1.2/qrcode/getimage.php
XoopsModules/qrcode/releases/1.2/qrcode/images/
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/about.png
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/help.png
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/home.png
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/index.html
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/qrcode.png
XoopsModules/qrcode/releases/1.2/qrcode/images/admin/xoopsmicrobutton.gif
XoopsModules/qrcode/releases/1.2/qrcode/images/create_bookmark.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_contact.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_email.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_geo.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_phone.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_skype.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_sms.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_text2speech.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_txt.png
XoopsModules/qrcode/releases/1.2/qrcode/images/create_url.png
XoopsModules/qrcode/releases/1.2/qrcode/images/icons/
XoopsModules/qrcode/releases/1.2/qrcode/images/icons/index.html
XoopsModules/qrcode/releases/1.2/qrcode/images/icons/off.png
XoopsModules/qrcode/releases/1.2/qrcode/images/icons/on.png
XoopsModules/qrcode/releases/1.2/qrcode/images/logo.png
XoopsModules/qrcode/releases/1.2/qrcode/images/xoops_module_qrcode.png
XoopsModules/qrcode/releases/1.2/qrcode/index.html
XoopsModules/qrcode/releases/1.2/qrcode/language/
XoopsModules/qrcode/releases/1.2/qrcode/language/english/
XoopsModules/qrcode/releases/1.2/qrcode/language/english/admin.php
XoopsModules/qrcode/releases/1.2/qrcode/language/english/blocks.php
XoopsModules/qrcode/releases/1.2/qrcode/language/english/help/
XoopsModules/qrcode/releases/1.2/qrcode/language/english/help/help.html
XoopsModules/qrcode/releases/1.2/qrcode/language/english/help/index.html
XoopsModules/qrcode/releases/1.2/qrcode/language/english/main.php
XoopsModules/qrcode/releases/1.2/qrcode/language/english/modinfo.php
XoopsModules/qrcode/releases/1.2/qrcode/qrcode.php
XoopsModules/qrcode/releases/1.2/qrcode/templates/
XoopsModules/qrcode/releases/1.2/qrcode/templates/blocks/
XoopsModules/qrcode/releases/1.2/qrcode/templates/blocks/qrocde_block.html
XoopsModules/qrcode/releases/1.2/qrcode/templates/help.html
XoopsModules/qrcode/releases/1.2/qrcode/xoops_version.php
XoopsModules/qrcode/releases/1.2/qrcode.zip
Added: XoopsModules/qrcode/releases/1.2/qrcode/admin/about.php
===================================================================
--- XoopsModules/qrcode/releases/1.2/qrcode/admin/about.php (rev 0)
+++ XoopsModules/qrcode/releases/1.2/qrcode/admin/about.php 2013-09-16 11:44:47 UTC (rev 12060)
@@ -0,0 +1,46 @@
+<?php
+/**
+ * MyModule module
+ *
+ * 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 http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package MyModule
+ * @since 2.5.0
+ * @author Mage, Mamba
+ * @version $Id $
+ **/
+
+include '../../../include/cp_header.php';
+include '../../../class/xoopsformloader.php';
+xoops_cp_header();
+include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+
+$module_info =& $module_handler->get($xoopsModule->getVar("mid"));
+
+$module_info = '<div id="about">
+ <label>' . _AM_QRCODE_ABOUT_DESCRIPTION . '</label><text>' . $module_info->getInfo("description") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_RELEASEDATE . '</label><text class="bold">' . $module_info->getInfo("release_date") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_UPDATEDATE . '</label><text class="bold">' . formatTimestamp($xoopsModule->getVar("last_update"), "m") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_MODULE_STATUS . '</label><text>' . $module_info->getInfo("module_status") . '</text><br />
+ <label>' . _AM_QRCODE_ABOUT_WEBSITE . '</label><text><a class="tooltip" href="' . $module_info->getInfo("module_website_url") . '" rel="external" title="' . $module_info->getInfo("module_website_name") . ' - ' . $module_info->getInfo("module_website_url") . '">
+ ' . $module_info->getInfo("module_website_name") . '</a></text></div>';
+
+$about_admin = new ModuleAdmin();
+$about_admin->addLabel($xoopsModule->getVar("name"));
+$about_admin->addLabel(_AM_QRCODE_ABOUT_MODULE_INFO);
+$about_admin->addLineLabel($xoopsModule->getVar("name"), '', 'VNXNVZZQP5FZJ', '', 'module');
+$about_admin->addLineLabel(_AM_QRCODE_ABOUT_MODULE_INFO, $module_info, '', '', 'information');
+$about_admin->addChangelogLabel(_AM_QRCODE_ABOUT_CHANGELOG);
+
+echo $about_admin->addNavigation('about.php');
+echo $about_admin->renderabout();
+
+include 'footer.php' ;
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.2/qrcode/admin/footer.php
===================================================================
--- XoopsModules/qrcode/releases/1.2/qrcode/admin/footer.php (rev 0)
+++ XoopsModules/qrcode/releases/1.2/qrcode/admin/footer.php 2013-09-16 11:44:47 UTC (rev 12060)
@@ -0,0 +1,25 @@
+<?php
+/**
+ * MyLinks module
+ *
+ * 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:: http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package:: mylinks
+ * @subpackage:: admin
+ * @since: 2.5.0
+ * @author:: Magic.Shao <mag...@gm...> - Susheng Yang <ezs...@gm...>
+ * @version:: $Id $
+**/
+
+echo "<div align=\"center\"><a href=\"http://www.designburo.nl\" target=\"_blank\"><img src=\"http://designburo.nl/images/dsgnbro.gif\" alt=\"XOOPS\" title=\"XOOPS\"></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://designburo.nl' title='Visit Designburo.nl'>Designburo.nl</a></div>";
+
+xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.2/qrcode/admin/header.php
===================================================================
--- XoopsModules/qrcode/releases/1.2/qrcode/admin/header.php (rev 0)
+++ XoopsModules/qrcode/releases/1.2/qrcode/admin/header.php 2013-09-16 11:44:47 UTC (rev 12060)
@@ -0,0 +1,57 @@
+<?php
+/**
+ * MyLinks module
+ *
+ * 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:: http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package:: mylinks
+ * @subpackage:: admin
+ * @since:: 2.5.0
+ * @author:: Magic.Shao <mag...@gm...> - Susheng Yang <ezs...@gm...>
+ * @version:: $Id $
+**/
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+include("../../../include/cp_header.php");
+include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+
+//defined("FRAMEWORKS_ART_FUNCTIONS_INI") || include_once XOOPS_ROOT_PATH.'/Frameworks/art/functions.ini.php';
+//load_functions("admin");
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+xoops_cp_header();
+
+// Define Stylesheet and JScript
+$xoTheme->addStylesheet( XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/css/admin.css" );
+//$xoTheme->addJavaScript( XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/admin/switcher.js" );
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.2/qrcode/admin/help.php
===================================================================
--- XoopsModules/qrcode/releases/1.2/qrcode/admin/help.php (rev 0)
+++ XoopsModules/qrcode/releases/1.2/qrcode/admin/help.php 2013-09-16 11:44:47 UTC (rev 12060)
@@ -0,0 +1,16 @@
+<?php
+// ------------------------------------------------------------------------ //
+// Author: Designburo.nl (in...@de...) //
+// http://www.designburo.nl //
+// Project: QRcode v1.0 //
+// ------------------------------------------------------------------------ //
+include '../../../include/cp_header.php';
+// if the site has no language defined, turn to English default
+if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
+include "../language/".$xoopsConfig['language']."/main.php"; } else { include "../language/english/main.php"; }
+$xoopsOption['template_main'] = 'help.html';
+include(XOOPS_ROOT_PATH.'/mainfile.php');
+xoops_cp_header();
+
+xoops_cp_footer();
+?>
Added: XoopsModules/qrcode/releases/1.2/qrcode/admin/index.php
===================================================================
--- XoopsModules/qrcode/releases/1.2/qrcode/admin/index.php (rev 0)
+++ XoopsModules/qrcode/releases/1.2/qrcode/admin/index.php 2013-09-16 11:44:47 UTC (rev 12060)
@@ -0,0 +1,39 @@
+<?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 XOOPS Project
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package
+ * @author
+ *
+ * Version : $Id:
+ * ****************************************************************************
+ */
+
+require_once '../../../include/cp_header.php';
+include 'header.php';
+
+
+include_once XOOPS_ROOT_PATH."/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";
+
+ $index_admin = new ModuleAdmin();
+
+$index_admin->addConfigLabel(_AM_QRCODE_CONFIG_CHECK) ;
+$index_admin->addLineConfigLabel(_AM_QRCODE_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php') ;
+$index_admin->addLineConfigLabel(_AM_QRCODE_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops') ;
+
+ echo $index_admin->addNavigation('index.php') ;
+ echo $index_admin->renderIndex();
+
+
+include "footer.php";
+xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/qrcode/releases/1.2/qrcode/admin/main.php
===================================================================
--- XoopsModules/qrcode/releases/1.2/qrcode/admin/main.php (rev 0)
+++ XoopsModules/qrcode/releases/1.2/qrcode/admin/main.php 2013-09-16 11:44:47 UTC (rev 12060)
@@ -0,0 +1,556 @@
+<?php
+// ------------------------------------------------------------------------ //
+// Author: Designburo.nl (in...@de...) //
+// http://www.designburo.nl //
+// Project: QRcode v1.2 //
+// ------------------------------------------------------------------------ //
+include '../../../include/cp_header.php';
+// if the site has no language defined, turn to English default
+if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
+include "../language/".$xoopsConfig['language']."/main.php"; } else { include "../language/english/main.php"; }
+include(XOOPS_ROOT_PATH.'/mainfile.php');
+include_once XOOPS_ROOT_PATH."/modules/qrcode/qrcode.php";
+xoops_cp_header();
+if(isset($_POST['type']))
+{
+ switch ($_POST['type'])
+ {
+
+
+ case "phone":
+ if (!$_POST['qr_phone'])
+ {
+ $res= _QRCODE_PHONE_F_ERROR_NR;
+ }
+ else
+ {
+ $data=array();
+ $type="phone";
+ $data['phonenr'] = $_POST['qr_phone'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "url":
+ if (!$_POST['qr_url'])
+ {
+ $res= _QRCODE_URL_F_ERROR_URL;
+ }
+ else
+ {
+ $data=array();
+ $type="url";
+ $data['url'] = $_POST['qr_url'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "bookmark":
+ if (!$_POST['qr_bm_url'])
+ {
+ $res= _QRCODE_BM_F_ERROR_URL;
+ }
+ else
+ {
+ $data=array();
+ $type="bookmark";
+ $data['url']=$_POST['qr_bm_url'];
+ $data['name']=$_POST['qr_bm_name'];
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+
+ case "voice":
+ if (!$_POST['qr_voice_txt'])
+ {
+ $res= _QRCODE_VOICE_F_ERROR_TXT;
+ }
+ else
+ {
+ $data=array();
+ $type="voice";
+ $data['txt']=$_POST['qr_voice_txt'];
+ $data['lang']=$_POST['qr_voice_lang'];
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "skype":
+ if (!$_POST['qr_skype_to'])
+ {
+ $res= _QRCODE_SKYPE_F_ERROR_TO;
+ }
+ else
+ {
+ $data=array();
+ $type="skype";
+ $data['to']=$_POST['qr_skype_to'];
+ if(isset($_POST['qr_skype_topic'])){
+ $data['topic']=$_POST['qr_skype_topic'];
+ }
+ else {
+ $data['topic']="";
+ }
+ $data['type']=$_POST['qr_skype_option'];
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "email":
+ if (!$_POST['qr_email_to'])
+ {
+ $res= _QRCODE_EMAIL_F_ERROR_EMAIL;
+ }
+ else
+ {
+ $data=array();
+ $type="email";
+ $data['email']=$_POST['qr_email_to']; // Send email to ?
+ $data['subject']=$_POST['qr_email_sub']; // Subject of the email
+ $data['txt']=$_POST['qr_email_txt']; // Body of the email
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "sms":
+ if (!$_POST['qr_sms_to'])
+ {
+ $res= _QRCODE_SMS_F_ERROR_NR;
+ }
+ else
+ {
+ $data=array();
+ $type="sms";
+ $data['phonenr']=$_POST['qr_sms_to'];
+ $data['txt']=$_POST['qr_sms_txt'];
+ $res= qrcode($type,$data);
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "txt":
+ if (!$_POST['qr_txt'])
+ {
+ $res= _QRCODE_TXT_F_ERROR_TXT;
+ }
+ else
+ {
+ $data=array();
+ $type="txt";
+ $data['txt'] = $_POST['qr_txt'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ }
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+
+ break;
+
+ case "geo":
+
+ $data=array();
+ $type="geo";
+ $data['lat'] = $_POST['qr_latitude'];
+ $data['long'] = $_POST['qr_longtitude'];
+ $res= qrcode($type,$data);
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+ case "bus":
+
+ $data=array();
+ if($_POST['qr_c_select']=="memcard")
+ {
+ $type="contact";
+ if (isset($_POST['qr_c_anaam'])){ $data['surname']=$_POST['qr_c_anaam']; } else { $data['surname']=""; }
+ if (isset($_POST['qr_c_vnaam'])){ $data['name']=$_POST['qr_c_vnaam']; } else { $data['name']=""; }
+ if (isset($_POST['qr_c_gsm'])){ $data['mobile']=$_POST['qr_c_gsm']; } else { $data['mobile']=""; }
+ if (isset($_POST['qr_c_phone'])){ $data['phonenr']=$_POST['qr_c_phone']; } else { $data['phonenr']=""; }
+ if (isset($_POST['qr_c_adres'])){ $data['adres']=$_POST['qr_c_adres']; } else { $data['adres']=""; }
+ if (isset($_POST['qr_c_state'])){ $data['state']=$_POST['qr_c_state']; } else { $data['state']=""; }
+ if (isset($_POST['qr_c_city'])){ $data['city']=$_POST['qr_c_city']; } else { $data['city']=""; }
+ if (isset($_POST['qr_c_zip'])){ $data['zipcode']=$_POST['qr_c_zip']; } else { $data['zipcode']=""; }
+ if (isset($_POST['qr_c_land'])){ $data['country']=$_POST['qr_c_land']; } else { $data['country']=""; }
+ if (isset($_POST['qr_c_email'])){ $data['email']=$_POST['qr_c_email']; } else { $data['email']=""; }
+ if (isset($_POST['qr_c_web'])){ $data['url']=$_POST['qr_c_web']; } else { $data['url']=""; }
+ if (isset($_POST['qr_c_functie'])){ $data['title']=$_POST['qr_c_functie']; } else { $data['title']=""; }
+ if (isset($_POST['qr_c_bedrijf'])){ $data['company']=$_POST['qr_c_bedrijf']; } else { $data['company']=""; }
+ if (isset($_POST['qr_c_gjaar'])){ $data['b_year']=$_POST['qr_c_gjaar']; } else { $data['b_year']=""; }
+ if (isset($_POST['qr_c_gmaand'])){ $data['b_month']=$_POST['qr_c_gmaand']; } else { $data['b_month']=""; }
+ if (isset($_POST['qr_c_gdag'])){ $data['b_day']=$_POST['qr_c_gdag']; } else { $data['b_day']=""; }
+ $res= qrcode($type,$data);
+ }
+ if($_POST['qr_c_select']=="vcard")
+ {
+ $type="vcontact";
+ if (isset($_POST['qr_c_anaam'])){ $data['surname']=$_POST['qr_c_anaam']; } else { $data['surname']=""; }
+ if (isset($_POST['qr_c_vnaam'])){ $data['name']=$_POST['qr_c_vnaam']; } else { $data['name']=""; }
+ if (isset($_POST['qr_c_gsm'])){ $data['mobile']=$_POST['qr_c_gsm']; } else { $data['mobile']=""; }
+ if (isset($_POST['qr_c_phone'])){ $data['phonenr']=$_POST['qr_c_phone']; } else { $data['phonenr']=""; }
+ if (isset($_POST['qr_c_adres'])){ $data['adres']=$_POST['qr_c_adres']; } else { $data['adres']=""; }
+ if (isset($_POST['qr_c_state'])){ $data['state']=$_POST['qr_c_state']; } else { $data['state']=""; }
+ if (isset($_POST['qr_c_city'])){ $data['city']=$_POST['qr_c_city']; } else { $data['city']=""; }
+ if (isset($_POST['qr_c_zip'])){ $data['zipcode']=$_POST['qr_c_zip']; } else { $data['zipcode']=""; }
+ if (isset($_POST['qr_c_land'])){ $data['country']=$_POST['qr_c_land']; } else { $data['country']=""; }
+ if (isset($_POST['qr_c_email'])){ $data['email']=$_POST['qr_c_email']; } else { $data['email']=""; }
+ if (isset($_POST['qr_c_web'])){ $data['url']=$_POST['qr_c_web']; } else { $data['url']=""; }
+ if (isset($_POST['qr_c_functie'])){ $data['title']=$_POST['qr_c_functie']; } else { $data['title']=""; }
+ if (isset($_POST['qr_c_bedrijf'])){ $data['company']=$_POST['qr_c_bedrijf']; } else { $data['company']=""; }
+ if (isset($_POST['qr_c_gjaar'])){ $data['b_year']=$_POST['qr_c_gjaar']; } else { $data['b_year']=""; }
+ if (isset($_POST['qr_c_gmaand'])){ $data['b_month']=$_POST['qr_c_gmaand']; } else { $data['b_month']=""; }
+ if (isset($_POST['qr_c_gdag'])){ $data['b_day']=$_POST['qr_c_gdag']; } else { $data['b_day']=""; }
+ //vcard additions
+ if (isset($_POST['qr_c_afdeling'])){ $data['dept']=$_POST['qr_c_afdeling']; } else { $data['dept']=""; }
+ if (isset($_POST['qr_c_phoneh'])){ $data['phoneh']=$_POST['qr_c_phoneh']; } else { $data['phoneh']=""; }
+ if (isset($_POST['qr_c_phonew'])){ $data['phonew']=$_POST['qr_c_phonew']; } else { $data['phonew']=""; }
+ if (isset($_POST['qr_c_faxh'])){ $data['faxh']=$_POST['qr_c_faxh']; } else { $data['faxh']=""; }
+ if (isset($_POST['qr_c_faxw'])){ $data['faxw']=$_POST['qr_c_faxw']; } else { $data['faxw']=""; }
+ if (isset($_POST['qr_c_im'])){ $data['im']=$_POST['qr_c_im']; } else { $data['im']=""; }
+ if (isset($_POST['qr_c_note'])){ $data['note']=$_POST['qr_c_note']; } else { $data['note']=""; }
+ $res= qrcode($type,$data);
+ }
+
+
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:500px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;"><p>'._QRCODE_RESULT.'</p>';
+ echo $res;
+ echo '</div><BR><a href="main.php">'._QRCODE_MORE.'</a></div></td></tr><table>';
+ xoops_cp_footer();
+
+ break;
+
+
+ }
+
+
+ break;
+
+}
+
+if(isset($_GET['a']))
+{
+
+ switch ($_GET['a'])
+ {
+ case "bookmark":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_BM_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_bookmark.png" border="0" title="'._QRCODE_BM_D.'"></td><td>';
+ echo '<h2>'._QRCODE_BM_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<div id="url_div"><table class="tabel">';
+ echo '<tr><td>'._QRCODE_BM_F_NAME.'</td><td><input name="qr_bm_name" id="qr_bm_name" type="text" size="30" value="" /></td></tr>';
+ echo '<tr><td>'._QRCODE_BM_F_URL.'</td><td><input name="qr_bm_url" id="qr_bm_url" type="text" size="30" value="" /></td>';
+
+ echo '<td align=right><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td></tr>';
+ echo '</table></td></tr></table></div><input type="hidden" name="type" value="bookmark"></form></div></div></td></tr></table>';
+ break;
+
+ case "skype":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px;"><div style="margin-bottom:5px;border-bottom:1px solid #aaa;"><h3>'._QRCODE_WIZARD_H.' :: '._QRCODE_SKYPE_H.'</h3><font size="-2">'._QRCODE_WIZARD_D.'</font><BR><BR></div><div style="padding:10px;">';
+ echo '<form id="form1" name="form1" method="post" action="main.php">';
+ echo '<table><tr><td width="150" align="left"><img src="../images/create_skype.png" border="0" title="'._QRCODE_SKYPE_D.'"></td><td>';
+ echo '<h2>'._QRCODE_SKYPE_D.'</h2>'._QRCODE_FORM.'<BR><BR>';
+ echo '<div id="url_div"><table class="tabel">';
+ echo '<tr><td>'._QRCODE_SKYPE_F_TO.'</td><td><input name="qr_skype_to" id="qr_skype_to" type="text" size="30" value="" /></td></tr>';
+ echo '<tr><td>'._QRCODE_SKYPE_F_TOPIC.'</td><td><input name="qr_skype_topic" id="qr_skype_topic" type="text" size="30" value="" /></td></tr>';
+ echo '<tr><td>'._QRCODE_SKYPE_F_AUDIO.'</td><td><input name="qr_skype_option" id="qr_skype_option" type="radio" value="audio" checked="checked" /></td></tr>';
+ echo '<tr><td>'._QRCODE_SKYPE_F_VIDEO.'</td><td><input name="qr_skype_option" id="qr_skype_option" type="radio" value="video" /></td></tr>';
+ echo '<tr><td>'._QRCODE_SKYPE_F_IM.'</td><td><input name="qr_skype_option" id="qr_skype_option" type="radio" value="im" /></td></tr><tr><td></td><td></td>';
+ echo '<td align=right><input name="submit" id="submit" type="submit" value="'._QRCODE_FORM_SUBMIT.'" /></td></tr>';
+ echo '</table></td></tr></table></div><input type="hidden" name="type" value="skype"></form></div></div></td></tr></table>';
+ break;
+
+ case "voice":
+ echo '<table width="400"><tr><td width="800"><div style="margin:30px;padding:10px;border:1px solid #aaa;width:700px...
[truncated message content] |