/** * Display the main component control panel */ function controlPanel($option) { global $mainframe; $formeConfig = buildFormeConfig(); $modifyRegister = JRequest::getVar('modify_register', 0, 'POST'); ?> <form action="index2.php" method="post" name="adminForm"> <table class="thisform"> <tr class="thisform"> <td width="50%" valign="top" class="thisform"> <table width="100%" class="thisform2" border="1"> <tr class="thisform2"> <td align="center" height="100px" width="33%" class="thisform2"> <div align="center"> <a href="index2.php?option=com_forme&task=forms" style="text-decoration:none;" title="<?php echo _FORME_BACKEND_CPANEL_FORMS; ?> "> <img src="components/com_forme/images/forms.png" width="48px" height="48px" align="middle" border="0"/> <br /> <?php echo _FORME_BACKEND_CPANEL_FORMS; ?> </a> </div> </td> <td align="center" height="100px" width="34%" class="thisform2"> <a href="index2.php?option=com_forme&task=listdata" style="text-decoration:none;" title="<?php echo _FORME_BACKEND_CPANEL_VIEWDATA; ?> "> <img src="components/com_forme/images/viewdata.png" width="48px" height="48px" align="middle" border="0"/> <br /> <?php echo _FORME_BACKEND_CPANEL_VIEWDATA; ?> </a> </td> <td align="center" height="100px" width="34%" class="thisform2"> <a href="index2.php?option=com_forme&task=sample" style="text-decoration:none;" title="<?php echo _FORME_BACKEND_CPANEL_ADD_SAMPLE; ?> "> <img src="components/com_forme/images/samples.png" width="48px" height="48px" align="middle" border="0"/> <br /> <?php echo _FORME_BACKEND_CPANEL_ADD_SAMPLE; ?> </a> </td> </tr> <tr class="thisform2"> <td align="center" height="100px" width="33%" class="thisform2"> <a href="index2.php?option=com_forme&task=backup" style="text-decoration:none;" title="<?php echo _FORME_BACKEND_CPANEL_BACKUP; ?> "> <img src="components/com_forme/images/backup.png" width="48px" height="48px" align="middle" border="0"/> <br /> <?php echo _FORME_BACKEND_CPANEL_BACKUP; ?> </a> </td> <td align="center" height="100px" class="thisform2"> <a href="index2.php?option=com_forme&task=restore" style="text-decoration:none;" title="<?php echo _FORME_BACKEND_CPANEL_RESTORE; ?> "> <img src="components/com_forme/images/restore.png" width="48px" height="48px" align="middle" border="0"/> <br /> <?php echo _FORME_BACKEND_CPANEL_RESTORE; ?> </a> </td> <td align="center" height="100px" class="thisform2"> <a href="index2.php?option=com_forme&task=info" style="text-decoration:none;" title="<?php echo _FORME_BACKEND_CPANEL_INFORMATION; ?> "> <img src="components/com_forme/images/systeminfo.png" width="48px" height="48px" align="middle" border="0"/> <br /> <?php echo _FORME_BACKEND_CPANEL_INFORMATION; ?> </a> </td> </tr> </table> </td> <td width="50%" valign="top" align="center"> <table border="1" width="100%" class="thisform"> <tr class="thisform"> <th class="cpanel" colspan="2"><?php echo _FORME_PRODUCT . ' ' . _FORME_VERSION; ?> </th></td> </tr> <tr class="thisform"><td bgcolor="#FFFFFF" colspan="2"><br /> <div style="width=100%" align="center"> <img src="components/com_forme/images/rsform.gif" align="middle" alt="RSform! Logo"/> <br /><br /></div> </td></tr> <tr class="thisform"> <td width="120" bgcolor="#FFFFFF">Installed version:</td> <td bgcolor="#FFFFFF"><?php echo _FORME_VERSION; ?> </td> </tr> <tr class="thisform"> <td bgcolor="#FFFFFF">Copyright:</td> <td bgcolor="#FFFFFF"><?php echo _FORME_COPYRIGHT; ?> </td> </tr> <tr class="thisform"> <td bgcolor="#FFFFFF">License:</td> <td bgcolor="#FFFFFF"><?php echo _FORME_LICENSE; ?> </td> </tr> <tr class="thisform"> <td valign="top" bgcolor="#FFFFFF">Author:</td> <td bgcolor="#FFFFFF"> <?php echo _FORME_AUTHOR; ?> </td> </tr> </table> </td> </tr> </table> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="task" value="" /> </form> <?php }
} require_once $mainframe->getPath('class'); require_once $mainframe->getPath('front_html'); require_once ELPATH . '/../../includes/pageNavigation.php'; $limitstart = intval(JRequest::getVar('limitstart', 0)); $pop = intval(JRequest::getVar('pop', 0)); $func = JRequest::getVar('func'); //$fid = intval( JRequest::getVar('fid',0)); $did = JRequest::getVar('did', ''); $processform = JRequest::getVar('form', array(), 'POST'); if (!empty($processform)) { foreach ($processform as $key => $value) { $processform[$key] = RemoveXSS($processform[$key]); } } $GLOBALS['formeConfig'] = buildFormeConfig(); $database =& JFactory::getDBO(); //get fid $fid = JRequest::getVar('fid', '', 'GET', 'string', ''); if (!$fid) { $query = "\r\n SELECT params\r\n FROM #__menu\r\n WHERE id='" . $_GET['Itemid'] . "' AND type='component'"; $database->setQuery($query); $menurow = $database->loadResult(); if ($menurow) { $registry = new JRegistry(); $registry->loadINI($menurow); $configs = $registry->toObject(); $fid = $configs->fid; } } require_once dirname(__FILE__) . '/../../plugins/system/legacy/functions.php';
* @package RSform! 1.0.4 * @copyright (C) 2007 www.rsjoomla.com * @license Commercial License, http://www.rsjoomla.com/license/forme.html */ ini_set('max_execution_time', '300'); defined('_JEXEC') or die('Restricted access'); define('EL_ADMIN_PATH', dirname(__FILE__)); global $mainframe; require_once JApplicationHelper::getPath('admin_html'); require_once JApplicationHelper::getPath('class'); require_once EL_ADMIN_PATH . '/../../includes/pageNavigation.php'; $cid = JRequest::getVar('cid', array()); $rcid = JRequest::getVar('rcid', array()); $limit = intval(JRequest::getVar('limit', 15)); $limitstart = intval(JRequest::getVar('limitstart', 0)); $formeConfig = buildFormeConfig(); $task = JRequest::getVar('task'); switch ($task) { case "forms": listforms($option); break; case "info": showInformation($option); break; case "publishfield": publishfield($cid, 1, $option); break; case "unpublishfield": publishfield($cid, 0, $option); break; case "orderupfield":