コード例 #1
0
 function notification()
 {
     $Itemid = $GLOBALS[ACA . 'itemidAca'];
     $item = !empty($Itemid) ? '&Itemid=' . $Itemid : '';
     if (isset($this->catId) and isset($this->notifType)) {
         if (lists::getNotifLists($this->lists, $this->notifType, $this->catId)) {
             $this->linear = 1;
             $this->introtext = 'Notify me of new product';
             $this->redirectURL = 'index.php?option=com_virtuemart&page=shop.browse&category_id=' . $this->catId . $item;
             $this->buttonRegistered = _CMN_YES;
             $this->buttonUnregistered = _CMN_NO;
             $this->_html = '<!--  Beginning Module : ' . acajoom::version() . '   -->' . "\n\r";
             $this->_html .= $this->create();
             $this->_html .= '<!--  End Module : ' . acajoom::version() . '   -->' . "\n\r";
         }
     }
     return $this->_html;
 }
コード例 #2
0
 function updateFile($file, $addFile, $version = '')
 {
     $erro = new xerr(__FILE__, __FUNCTION__, __CLASS__);
     if (ini_get('allow_url_fopen') == false) {
         if (in_array('curl', get_loaded_extensions())) {
             $globalFile = $this->getFileCurl($this->path . $file, $version);
         } else {
             $erro->W(__LINE__, '8013', _ACA_WARNG_REMOTE_FILE);
             $message = acajoom::printM('warning', _ACA_WARNG_REMOTE_FILE);
             return false;
         }
     } else {
         $globalFile = file_get_contents($GLOBALS[ACA . 'update_url'] . preg_replace('/\\.php$/', '.inc', $this->path . $file));
     }
     if (empty($globalFile)) {
         $erro->W(__LINE__, '8014', _ACA_ERROR_FETCH);
         $message = acajoom::printM('warning', _ACA_ERROR_FETCH);
         return false;
     } else {
         $status = false;
         if (file_exists($GLOBALS['mosConfig_absolute_path'] . DS . $file)) {
             if (@copy($GLOBALS['mosConfig_absolute_path'] . DS . $file, WPATH_ADMIN . 'backup/' . acajoom::version(true) . DS . $file)) {
                 $status = file_put_contents($GLOBALS['mosConfig_absolute_path'] . DS . $file, $globalFile);
             } else {
                 echo acajoom::printM('red', _ACA_BACKUP_FAILED) . '<br />';
             }
         } else {
             if ($addFile) {
                 $status = file_put_contents($GLOBALS['mosConfig_absolute_path'] . DS . $file, $globalFile);
             }
         }
         return $status;
     }
 }
コード例 #3
0
ファイル: acajoom.php プロジェクト: reeleis/ohiocitycycles
        $showMessage = mosGetParam($_REQUEST, 'listname', 0);
        if (!empty($redirectlink)) {
            if (!$showMessage) {
                $message = '';
            }
            compa::redirect($redirectlink, $message);
        } else {
            $showPanel = true;
        }
        break;
    case 'list':
        frontEnd::showLists($subscriberId, $listId, $lisType, $action, $task);
        break;
    case 'token':
        auto::receiveToken();
        break;
    default:
        if (class_exists('auto')) {
            $showPanel = auto::getCase($action);
        } else {
            $showPanel = true;
        }
        break;
}
echo $message;
if ($showPanel) {
    frontEnd::introduction($subscriberId, $listId, $lisType);
}
frontHTML::_footer();
echo "\n\r" . '<!--  End : ' . acajoom::version() . '   -->' . "\n\r";
コード例 #4
0
 function about()
 {
     echo '<table width="100%" align="left"><tr>';
     echo '<td>';
     echo '<form action="index2.php" method="post" name="adminForm">';
     acajoom::beginingOfTable('acajoomtable');
     acajoom::miseEnPage('Description', '', constant('_ACA_DESC_' . strtoupper($GLOBALS[ACA . 'type'])));
     acajoom::miseEnPage('Project Manager', '', 'Adrien Baborier');
     acajoom::miseEnPage('Contributor', '', 'Christelle Gesset');
     acajoom::miseEnPage('Logo design', '', '<a href="http://www.gaboink.com" target="_blank">George Jones</a>');
     acajoom::miseEnPage('Template design', '', '<a href="http://www.72dpi.net.au" target="_blank">Ryan Scott</a>');
     acajoom::miseEnPage('Video tutorials', '', '<a href="http://www.wisewomengroup.com" target="_blank">Lisa Egan</a>');
     acajoom::miseEnPage('CB Integration', '', 'Mikko R&ouml;nkk&ouml;');
     acajoom::miseEnPage('Add-ons', '', 'Kyle Witt');
     acajoom::miseEnPage('Language Translation', '', '');
     acajoom::miseEnPage('Danish', '', 'Joergen Floes');
     acajoom::miseEnPage('Dutch', '', 'Tromp Wezelman & Bart Bevers');
     acajoom::miseEnPage('French', '', 'Christelle Gesset');
     acajoom::miseEnPage('German', '', 'David Freund & Frank Jansen');
     acajoom::miseEnPage('Hungarian', '', 'Zolt&aacute;n Varanka');
     acajoom::miseEnPage('Italian', '', 'Maria Luisa Rossari');
     acajoom::miseEnPage('Norwegian', '', '<a href="http://www.timeoffice.com" target="_blank">Irma Rustad</a>');
     acajoom::miseEnPage('Polish', '', 'Andrzej Herzberg');
     acajoom::miseEnPage('Portuguese', '', 'Ricardo Sim&otilde;es');
     acajoom::miseEnPage('Russian', '', 'Salikhov Ilyas');
     acajoom::miseEnPage('Simplified Chinese', '', '<a href="http://www.joomlagate.com" target="_blank">Baijianpeng</a>');
     acajoom::miseEnPage('Spanish', '', '<a href="http://www.eaid.org" target="_blank">Jorge Pasco</a>');
     acajoom::miseEnPage('Swedish', '', 'Janne Karlsson');
     acajoom::miseEnPage(' ', '', '   ');
     acajoom::miseEnPage(_ACA_VERSION, '', acajoom::version());
     acajoom::miseEnPage(' ', '', '   ');
     acajoom::miseEnPage(_ACA_DESC_HOME, '', '<a href="' . $GLOBALS[ACA . 'homesite'] . '" target="_blank">www.Acajoom.com</a>');
     acajoom::miseEnPage(_ACA_MENU_HELP, '', '<a href="http://www.acajoom.com/content/blogcategory/29/93/" target="_blank">Documentation</a>');
     acajoom::miseEnPage(_ACA_MENU_HELP, '', '<a href="http://www.acajoom.com/index.php?option=com_joomlaboard&Itemid=26&task=listcat&catid=22" target="_blank">Forum</a>');
     acajoom::miseEnPage(_ACA_MENU_LEARN, '', '<a href="' . $GLOBALS[ACA . 'homesite'] . 'index.php?option=com_content&task=blogsection&id=5&Itemid=68" target="_blank">Education Center</a>');
     acajoom::miseEnPage('Copyrights', '', 'Acajoom <i>Your Communciation Partner</i>, &copy; Acajoom Services');
     ### http://www.acajoom.com/license.php
     ### http://www.acajoom.com/license.php
     acajoom::miseEnPage(_ACA_LICENSE, '', '<a href="http://www.acajoom.com/index.php?option=com_content&task=view&id=2282&Itemid=84" target="_blank">&copy; Acajoom Services</a>');
     acajoom::endOfTable();
     backHTML::formEnd();
     echo '</td>';
     echo '<td width="380px">';
     $logo = 'acajoom_slog_' . strtolower($GLOBALS[ACA . 'type']) . '.png';
     echo '<a href="http://www.acajoom.com" target="_blank"><img src="components/com_acajoom/images/' . $logo . '" alt="Acajoom Logo" border="0" align="center" /></a>';
     echo '</td>';
     echo '</tr></table>';
 }
コード例 #5
0
ファイル: class.erro.php プロジェクト: reeleis/ohiocitycycles
 function email()
 {
     global $version, $database;
     $acaVers = class_exists('acajoom') ? acajoom::version() : 'test';
     $acaNow = class_exists('acajoom') ? acajoom::getNow() : time();
     $safemode = ini_get("safe_mode") == 0 ? 'off' : 'on';
     $content = "-----------------------------------\n";
     $content .= $GLOBALS[ACA . 'component'] . " Configuration: \n";
     $content .= "-----------------------------------\n\n";
     $content .= "Component        : " . $acaVers . "  \n";
     $content .= "Language           : " . $GLOBALS['mosConfig_lang'] . "\n";
     $content .= ' Time of report : ' . $acaNow . "\n\n";
     $content .= "Send method: " . $GLOBALS[ACA . 'emailmethod'] . "\n";
     if ($GLOBALS[ACA . 'emailmethod'] == 'smtp') {
         $auth = $GLOBALS[ACA . 'smtp_auth_required'] == 1 ? 'yes' : 'no';
         $content .= "Authentication required: " . $auth . "\n";
     }
     $content .= "-----------------------------------\n";
     $content .= " Server configuration: \n";
     $content .= "-----------------------------------\n\n";
     $content .= "Joomla Version        : " . $version . "\n";
     $content .= "Database Version     : " . $database->getVersion() . "\n";
     $content .= "PHP Version             : " . phpversion() . "\n";
     $content .= "Zend Version            : " . zend_version() . "\n";
     $content .= "Magic_quotes_gpc    : " . ini_get("magic_quotes_gpc") . "\n";
     $content .= "Disable_functions     : " . ini_get("disable_functions") . "\n";
     $content .= "Max_execution_time : " . ini_get("max_execution_time") . "\n";
     $content .= "Safe_mode              : " . $safemode . "\n";
     $content .= "Memory_limit           : " . ini_get("memory_limit") . "\n";
     $content .= "Software                 : " . $_SERVER['SERVER_SOFTWARE'] . "\n";
     $content .= "-----------------------------------\n";
     $content .= " Traces: \n";
     $content .= "-----------------------------------\n\n";
     $content .= "Error #       :" . _ACA_ERR_NB . $this->errNb . "\n\n\n";
     $content .= "Line            : " . $this->line . "\n";
     $content .= "Class           : " . $this->classes . "\n";
     $content .= "Function      : " . $this->fct . "\n";
     $content .= "File             : " . $this->file_name . "\n";
     $content .= "\n\n";
     if ($this->err) {
         $content .= "Error raised: " . $this->varDump($this->err) . "\n";
     }
     if ($this->data) {
         $content .= "Data          : " . $this->varDump($this->data) . "\n";
     }
     $content .= "\n\n";
     $content .= "\n\n";
 }