当前位置: 首页>>代码示例>>PHP>>正文


PHP rex_warning函数代码示例

本文整理汇总了PHP中rex_warning函数的典型用法代码示例。如果您正苦于以下问题:PHP rex_warning函数的具体用法?PHP rex_warning怎么用?PHP rex_warning使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了rex_warning函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: updateSettingsFile

 public static function updateSettingsFile($showSuccessMsg = true)
 {
     global $REX, $I18N;
     $settingsFile = self::getSettingsFile();
     $msg = self::checkDirForFile($settingsFile);
     if ($msg != '') {
         if ($REX['REDAXO']) {
             echo rex_warning($msg);
         }
     } else {
         if (!file_exists($settingsFile)) {
             self::createDynFile($settingsFile);
         }
         // deprecated settings
         unset($REX['ADDON']['open_graph']['settings']['cached_redirects']);
         unset($REX['ADDON']['open_graph']['settings']['no_double_content_redirects_only_frontend']);
         $content = "<?php\n\n";
         foreach ((array) $REX['ADDON']['open_graph']['settings'] as $key => $value) {
             $content .= "\$REX['ADDON']['open_graph']['settings']['{$key}'] = " . var_export($value, true) . ";\n";
         }
         if (rex_put_file_contents($settingsFile, $content)) {
             if ($REX['REDAXO'] && $showSuccessMsg) {
                 echo rex_info($I18N->msg('open_graph_config_ok'));
             }
         } else {
             if ($REX['REDAXO']) {
                 echo rex_warning($I18N->msg('open_graph_config_error'));
             }
         }
     }
 }
开发者ID:ReggaePanda,项目名称:open_graph,代码行数:31,代码来源:class.opengraph.inc.php

示例2: updateSettingsFile

 /**
  * Aktualisiert die gespeicherten Benutzereinstellungen .
  * @global mixed[] $REX Redaxo Variable
  * @global i18n $I18N Objekt mir Übersetzungen fürs Backend
  * @param boolean $showSuccessMsg True, wenn Meldung bei erfolgreichem
  * Speichern angezeigt werden soll.
  */
 public static function updateSettingsFile($showSuccessMsg = true)
 {
     global $REX, $I18N;
     $settingsFile = self::getSettingsFile();
     $msg = self::checkDirForFile($settingsFile);
     if ($msg != '') {
         if ($REX['REDAXO']) {
             echo rex_warning($msg);
         }
     } else {
         if (!file_exists($settingsFile)) {
             self::createDynFile($settingsFile);
         }
         $content = "<?php\n\n";
         foreach ((array) $REX['ADDON']['hr4you_sync']['settings'] as $key => $value) {
             $content .= "\$REX['ADDON']['hr4you_sync']['settings']['{$key}'] = " . var_export($value, true) . ";\n";
         }
         if (rex_put_file_contents($settingsFile, $content)) {
             if ($REX['REDAXO'] && $showSuccessMsg) {
                 echo rex_info($I18N->msg('d2u_stellenmarkt_hr4you_sync_config_ok'));
             }
         } else {
             if ($REX['REDAXO']) {
                 echo rex_warning($I18N->msg('d2u_stellenmarkt_hr4you_sync_config_error'));
             }
         }
     }
 }
开发者ID:TobiasKrais,项目名称:d2u_stellenmarkt,代码行数:35,代码来源:class.rex_hr4you_sync_utils.inc.php

示例3: prepare

 function prepare()
 {
     global $I18N;
     $versionCheck = rex_a657_check_version();
     if ($versionCheck) {
         $this->setMessage($versionCheck);
     } else {
         $this->setMessage(rex_warning('Version-Checker: ' . $I18N->msg('vchecker_connection_error')));
     }
 }
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:10,代码来源:class.dashboard.inc.php

示例4: Installer_fast_file_check

function Installer_fast_file_check($file, $installname, $includeDir)
{
    // Prüfen, ob das Ergebnis nicht bereits in einer Session steht
    // um Dauerverbindungen zu Redaxo.de zu vermeiden.
    if (isset($_SESSION['fastcheck'][$file])) {
        // Session exisitert - um overhead zu sparen, wird das Ergebnis der
        // letzten Session ausgegeben
        return $_SESSION['fastcheck'][$file];
    } else {
        // Session besteht noch nicht, also First-Run OK!
        // Pfad zum TEMP-Verzeichnis
        // TODO: Variablen ersetzen!
        $path = $includeDir . "/addons/installer/temp/" . md5($file) . ".zip";
        $file_output = '';
        try {
            $socket = rex_installer_socket::createByUrl($file);
            $socket->doGet();
            $res = fopen($path, 'w');
            $file_output = $socket->writeBodyTo($res);
        } catch (rex_installer_socket_exception $e) {
            // fehlermeldung:
            echo rex_warning($e->getMessage());
            return FALSE;
        }
        if (!$file_output) {
            echo rex_warning("Das AddOn konnte aufgrund von Serverproblemen nicht überprüft werden! Fast-Check Ergebnisse sind deswegen fehlerhaft (Alle fallen durch, obwohl das AddOn in Ordnung sein könnte). Korrete AddOns lassen sich normalerweise dennoch ohne Probleme installieren. Eine zweite Sicherheitsroutine wird versuchen die Sicherheit weiterhin zu gewährleisten. Für weitere Versuche klicke auf das Plus-Symbol");
            return FALSE;
        }
        // Zip Klasse laden
        $zip = new dUnzip2($path);
        // Inhalt vom ZIP-FILE laden. Liefert ARRAY zurück
        $zipList = $zip->getList();
        // Ruft die Sicherheitsfunktion auf, um zu prüfen, ob es sich
        // um ein richtiges AddOn handelt, wenn ja, true, ansonsten false
        if (Installer_check_if_file_is_addon($zipList, $installname)) {
            $zip->__destroy();
            // fclose && memory free
            @unlink($path);
            // Datei löschen
            // Um ständige Verbindungen zu Redaxo.de zu unterbinden,
            // wird das Ergebnis in eine Session geschrieben
            $_SESSION['fastcheck'][$file] = true;
            return true;
        } else {
            $zip->__destroy();
            // fclose && memory free
            @unlink($path);
            // Datei löschen
            // Um ständige Verbindungen zu Redaxo.de zu unterbinden,
            // wird das Ergebnis in eine Session geschrieben
            $_SESSION['fastcheck'][$file] = false;
            return false;
        }
    }
}
开发者ID:nightstomp,项目名称:redaxo_installer,代码行数:55,代码来源:unzip.func.php

示例5: buildLanguageNavigation

    public static function buildLanguageNavigation($curClang, $urlParams)
    {
        global $REX;
        global $I18N;
        reset($REX['CLANG']);
        $num_clang = count($REX['CLANG']);
        if ($num_clang > 1) {
            echo '
<div id="rex-clang" class="rex-toolbar">
    <div class="rex-toolbar-content">
        <ul>
            <li>' . $I18N->msg('languages') . ' : </li>';
            $stop = false;
            $i = 1;
            foreach ($REX['CLANG'] as $key => $val) {
                if ($i == 1) {
                    echo '<li class="rex-navi-first rex-navi-clang-' . $key . '">';
                } else {
                    echo '<li class="rex-navi-clang-' . $key . '">';
                }
                $val = rex_translate($val);
                if (!$REX['USER']->isAdmin() && !$REX['USER']->hasPerm('clang[all]') && !$REX['USER']->hasPerm('clang[' . $key . ']')) {
                    echo '<span class="rex-strike">' . $val . '</span>';
                    if ($curClang == $key) {
                        $stop = true;
                    }
                } else {
                    $class = '';
                    if ($key == $curClang) {
                        $class = ' class="rex-active"';
                    }
                    echo '<a' . $class . ' href="index.php?page=' . $REX['PAGE'] . '&amp;clang=' . $key . $urlParams . '"' . rex_tabindex() . '>' . $val . '</a>';
                }
                echo '</li>';
                $i++;
            }
            echo '
        </ul>
    </div>
</div>';
            if ($stop) {
                echo rex_warning('You have no permission to this area');
                require $REX['INCLUDE_PATH'] . '/layout/bottom.php';
                exit;
            }
        }
    }
开发者ID:olien,项目名称:global_settings,代码行数:47,代码来源:class.rex_global_settings_language.php

示例6: Installer_getAddons

function Installer_getAddons($pathToApi)
{
    try {
        $socket = rex_installer_socket::createByUrl($pathToApi);
        $socket->doGet();
        $file_output = $socket->getBody();
    } catch (rex_installer_socket_exception $e) {
        // fehlermeldung:
        echo rex_warning($e->getMessage());
    }
    if ($file_output) {
        $addons = json_decode(utf8_encode($file_output));
        return $addons;
    } else {
        return FALSE;
    }
}
开发者ID:nightstomp,项目名称:redaxo_installer,代码行数:17,代码来源:api.func.php

示例7: Installer_download_file_from_redaxo

function Installer_download_file_from_redaxo($file, $path)
{
    $file_output = '';
    try {
        $socket = rex_installer_socket::createByUrl($file);
        $socket->doGet();
        $res = fopen($path, 'w');
        $file_output = $socket->writeBodyTo($res);
    } catch (rex_installer_socket_exception $e) {
        // fehlermeldung:
        echo rex_warning($e->getMessage());
    }
    // Prüfen, ob Daten empfangen wurden, wenn nicht, false, ansonsten true
    if ($file_output) {
        return true;
    } else {
        return false;
    }
}
开发者ID:nightstomp,项目名称:redaxo_installer,代码行数:19,代码来源:filehandling.func.php

示例8: rex_a657_check_version

function rex_a657_check_version()
{
    global $I18N, $REX;
    $latestVersion = rex_a657_get_latest_version();
    if (!$latestVersion) {
        return false;
    }
    $rexVersion = $REX['VERSION'] . '.' . $REX['SUBVERSION'] . '.' . $REX['MINORVERSION'];
    if (version_compare($rexVersion, $latestVersion, '>')) {
        // Dev version
        $notice = rex_warning($I18N->msg('vchecker_dev_version', $rexVersion));
    } elseif (version_compare($rexVersion, $latestVersion, '<')) {
        // update required
        $notice = rex_warning($I18N->msg('vchecker_old_version', $rexVersion, $latestVersion));
    } else {
        // current version
        $notice = rex_info($I18N->msg('vchecker_current_version', $rexVersion));
    }
    return $notice;
}
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:20,代码来源:function_version_check.inc.php

示例9: rex_title

<?php

/**
 *
 * @package redaxo4
 * @version svn:$Id$
 */
rex_title('Login');
$js = '';
if ($rex_user_loginmessage != '') {
    echo rex_warning($rex_user_loginmessage) . "\n";
    $js = '
    var time_el = $("div.rex-message p span strong");
    if(time_el.length == 1) {
      function disableLogin() {
        time_el.html((parseInt(time_el.html(), 10)-1) + "");
        if(parseInt(time_el.html(), 10) > 0) {
          setTimeout(disableLogin, 1000);
        } else {
          $("div.rex-message p span").html("' . htmlspecialchars($I18N->msg('login_welcome')) . '");
          $("#loginformular input:not(:hidden)").attr("disabled", "");
          $("#rex-form-login").focus();
        }
      };
      $("#loginformular input:not(:hidden)").attr("disabled", "disabled");
      setTimeout(disableLogin, 1000);
    }';
}
echo '

<!-- *** OUTPUT OF LOGIN-FORM - START *** -->
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:login.inc.php

示例10: get

 function get()
 {
     global $I18N;
     $this->init();
     $this->setApplyUrl($this->getUrl(array('func' => ''), false));
     if (($controlElement = $this->getControlElement()) !== null) {
         if ($controlElement->saved()) {
             // speichern und umleiten
             // Nachricht in der Liste anzeigen
             if (($result = $this->validate()) === true && ($result = $this->save()) === true) {
                 $this->redirect($I18N->msg('form_saved'));
             } elseif (is_string($result) && $result != '') {
                 // Falls ein Fehler auftritt, das Formular wieder anzeigen mit der Meldung
                 $this->setMessage($result);
             } else {
                 $this->setMessage($I18N->msg('form_save_error'));
             }
         } elseif ($controlElement->applied()) {
             // speichern und wiederanzeigen
             // Nachricht im Formular anzeigen
             if (($result = $this->validate()) === true && ($result = $this->save()) === true) {
                 $this->setMessage($I18N->msg('form_applied'));
             } elseif (is_string($result) && $result != '') {
                 $this->setMessage($result);
             } else {
                 $this->setMessage($I18N->msg('form_save_error'));
             }
         } elseif ($controlElement->deleted()) {
             // speichern und wiederanzeigen
             // Nachricht in der Liste anzeigen
             if (($result = $this->delete()) === true) {
                 $this->redirect($I18N->msg('form_deleted'));
             } elseif (is_string($result) && $result != '') {
                 $this->redirect($result);
             } else {
                 $this->redirect($I18N->msg('form_delete_error'));
             }
         } elseif ($controlElement->resetted()) {
             // verwerfen und wiederanzeigen
             // Nachricht im Formular anzeigen
             $this->setMessage($I18N->msg('form_resetted'));
         } elseif ($controlElement->aborted()) {
             // verwerfen und umleiten
             // Nachricht in der Liste anzeigen
             $this->redirect($I18N->msg('form_resetted'));
         }
     }
     // Parameter dem Formular hinzufügen
     foreach ($this->getParams() as $name => $value) {
         $this->addHiddenField($name, $value, array('internal::useArraySyntax' => 'none'));
     }
     $s = "\n";
     $message = $this->getMessage();
     if ($message != '') {
         $s .= '  ' . rex_warning($message) . "\n";
     }
     $s .= '<div class="' . $this->divId . '">' . "\n";
     $i = 0;
     $addHeaders = true;
     $fieldsets = $this->getFieldsetElements();
     $last = count($fieldsets);
     $s .= '  <form action="index.php" method="' . $this->method . '">' . "\n";
     foreach ($fieldsets as $fieldsetName => $fieldsetElements) {
         $s .= '    <fieldset>' . "\n";
         $s .= '      <legend class="rex-lgnd">' . htmlspecialchars($fieldsetName) . '</legend>' . "\n";
         $s .= '      <div class="rex-fldst-wrppr">' . "\n";
         // Die HeaderElemente nur im 1. Fieldset ganz am Anfang einfügen
         if ($i == 0 && $addHeaders) {
             foreach ($this->getHeaderElements() as $element) {
                 // Callback
                 $element->setValue($this->preView($fieldsetName, $element->getFieldName(), $element->getValue()));
                 // HeaderElemente immer ohne <p>
                 $s .= $element->formatElement();
             }
             $addHeaders = false;
         }
         foreach ($fieldsetElements as $element) {
             // Callback
             $element->setValue($this->preView($fieldsetName, $element->getFieldName(), $element->getValue()));
             $s .= $element->get();
         }
         // Die FooterElemente nur innerhalb des letzten Fieldsets
         if ($i + 1 == $last) {
             foreach ($this->getFooterElements() as $element) {
                 // Callback
                 $element->setValue($this->preView($fieldsetName, $element->getFieldName(), $element->getValue()));
                 $s .= $element->get();
             }
         }
         $s .= '      </div>' . "\n";
         $s .= '    </fieldset>' . "\n";
         $i++;
     }
     $s .= '  </form>' . "\n";
     $s .= '</div>' . "\n";
     return $s;
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:97,代码来源:class.rex_form.inc.php

示例11: addSlice

 function addSlice($I_ID, $module_id)
 {
     global $REX, $I18N;
     $MOD = new rex_sql();
     $MOD->setQuery("SELECT * FROM " . $REX['TABLE_PREFIX'] . "module WHERE id={$module_id}");
     if ($MOD->getRows() != 1) {
         $slice_content = rex_warning($I18N->msg('module_doesnt_exist'));
     } else {
         $slice_content = '
     <a name="addslice"></a>
     <form action="index.php#slice' . $I_ID . '" method="post" id="REX_FORM" enctype="multipart/form-data">
       <fieldset>
         <legend class="rex-lgnd">' . $I18N->msg('add_block') . '</legend>
         <input type="hidden" name="article_id" value="' . $this->article_id . '" />
         <input type="hidden" name="page" value="content" />
         <input type="hidden" name="mode" value="' . $this->mode . '" />
         <input type="hidden" name="slice_id" value="' . $I_ID . '" />
         <input type="hidden" name="function" value="add" />
         <input type="hidden" name="module_id" value="' . $module_id . '" />
         <input type="hidden" name="save" value="1" />
         <input type="hidden" name="clang" value="' . $this->clang . '" />
         <input type="hidden" name="ctype" value="' . $this->ctype . '" />
         <p class="rex-cnt-mdl-name">
           ' . $I18N->msg("module") . ': <span>' . htmlspecialchars($MOD->getValue("name")) . '</span>
         </p>
         <div class="rex-cnt-slc-ipt"><div class="rex-cnt-slc-ipt2">
           ' . $MOD->getValue("eingabe") . '
         </div></div>
         <p class="rex-sbmt">
           <input type="submit" name="btn_save" value="' . $I18N->msg('add_block') . '"' . rex_accesskey($I18N->msg('add_block'), $REX['ACKEY']['SAVE']) . ' />
         </p>
       </fieldset>
     </form>
   ';
         // Beim Add hier die Meldung ausgeben
         if ($this->slice_id == 0 && $this->message != '') {
             echo rex_warning($this->message);
         }
         $dummysql = new rex_sql();
         // Den Dummy mit allen Feldern aus rex_article_slice füllen
         $slice_fields = new rex_sql();
         $slice_fields->setQuery('SELECT * FROM ' . $REX['TABLE_PREFIX'] . 'article_slice LIMIT 1');
         foreach ($slice_fields->getFieldnames() as $fieldname) {
             switch ($fieldname) {
                 case 'clang':
                     $def_value = $this->clang;
                     break;
                 case 'ctype':
                     $def_value = $this->ctype;
                     break;
                 case 'modultyp_id':
                     $def_value = $module_id;
                     break;
                 case 'article_id':
                     $def_value = $this->article_id;
                     break;
                 case 'id':
                     $def_value = 0;
                     break;
                 default:
                     $def_value = '';
             }
             $dummysql->setValue($REX['TABLE_PREFIX'] . 'article_slice.' . $fieldname, $def_value);
         }
         $slice_content = $this->replaceVars($dummysql, $slice_content);
     }
     return $slice_content;
 }
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:68,代码来源:class.rex_article.inc.php

示例12: rex_info

    $REX['ADDON']['image_manager']['max_resizekb'] = $max_resizekb;
    $REX['ADDON']['image_manager']['max_resizepixel'] = $max_resizepixel;
    $REX['ADDON']['image_manager']['jpg_quality'] = $jpg_quality;
    $content = '
$REX[\'ADDON\'][\'image_manager\'][\'max_resizekb\'] = ' . $max_resizekb . ';
$REX[\'ADDON\'][\'image_manager\'][\'max_resizepixel\'] = ' . $max_resizepixel . ';
$REX[\'ADDON\'][\'image_manager\'][\'jpg_quality\'] = ' . $jpg_quality . ';
';
    if (rex_replace_dynamic_contents($config_file, $content) !== false) {
        echo rex_info($I18N->msg('imanager_config_saved'));
    } else {
        echo rex_warning($I18N->msg('imanager_config_not_saved'));
    }
}
if (!is_writable($config_file)) {
    echo rex_warning($I18N->msg('imanager_config_not_writable', $config_file));
}
echo '

<div class="rex-addon-output">



  <div class="rex-form">
	
<h2 class="rex-hl2">' . $I18N->msg('imanager_subpage_config') . '</h2>
  
<form action="index.php" method="post">

		<fieldset class="rex-form-col-1">
      <div class="rex-form-wrapper">
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:settings.inc.php

示例13: get

 /**
  * Erstellt den Tabellen Quellcode
  *
  * @return string
  */
 function get()
 {
     global $I18N;
     $s = "\n";
     // Form vars
     $this->addFormAttribute('action', $this->getUrl());
     $this->addFormAttribute('method', 'post');
     // Table vars
     $caption = $this->getCaption();
     $tableColumnGroups = $this->getTableColumnGroups();
     // Check if class attribute exists
     if (empty($this->tableAttributes['class'])) {
         $this->addTableAttribute('class', 'rex-table');
     }
     // Columns vars
     $columnFormates = array();
     $columnNames = array();
     foreach ($this->getColumnNames() as $columnName) {
         if (is_array($columnName) || !in_array($columnName, $this->columnDisabled)) {
             $columnNames[] = $columnName;
         }
     }
     // List vars
     $sortColumn = $this->getSortColumn();
     $sortType = $this->getSortType();
     $warning = $this->getWarning();
     $message = $this->getMessage();
     $nbRows = $this->getRows();
     $header = $this->getHeader();
     $footer = $this->getFooter();
     if ($warning != '') {
         $s .= rex_warning($warning) . "\n";
     } elseif ($message != '') {
         $s .= rex_info($message) . "\n";
     }
     if ($header != '') {
         $s .= $header . "\n";
     }
     $s .= '<form' . $this->_getAttributeString($this->getFormAttributes()) . '>' . "\n";
     $s .= '  <table' . $this->_getAttributeString($this->getTableAttributes()) . '>' . "\n";
     if ($caption != '') {
         $s .= '    <caption>' . htmlspecialchars($caption) . '</caption>' . "\n";
     }
     if (count($tableColumnGroups) > 0) {
         foreach ($tableColumnGroups as $tableColumnGroup) {
             $tableColumns = $tableColumnGroup['columns'];
             unset($tableColumnGroup['columns']);
             $s .= '    <colgroup' . $this->_getAttributeString($tableColumnGroup) . '>' . "\n";
             foreach ($tableColumns as $tableColumn) {
                 $s .= '      <col' . $this->_getAttributeString($tableColumn) . ' />' . "\n";
             }
             $s .= '    </colgroup>' . "\n";
         }
     }
     $s .= '    <thead>' . "\n";
     $s .= '      <tr>' . "\n";
     foreach ($columnNames as $columnName) {
         // Spalten, die mit addColumn eingefügt wurden
         if (is_array($columnName)) {
             $columnName = $columnName[0];
         }
         $columnHead = $this->getColumnLabel($columnName);
         if ($this->hasColumnOption($columnName, REX_LIST_OPT_SORT)) {
             if ($columnName == $sortColumn) {
                 $columnSortType = $sortType == 'desc' ? 'asc' : 'desc';
             } else {
                 $columnSortType = $this->getColumnOption($columnName, REX_LIST_OPT_SORT_DIRECTION, 'asc');
             }
             $columnHead = '<a href="' . $this->getUrl(array('start' => $this->getStartRow(), 'sort' => $columnName, 'sorttype' => $columnSortType)) . '">' . $columnHead . '</a>';
         }
         $layout = $this->getColumnLayout($columnName);
         $s .= '        ' . str_replace('###VALUE###', $columnHead, $layout[0]) . "\n";
         // Formatierungen hier holen, da diese Schleife jede Spalte nur einmal durchläuft
         $columnFormates[$columnName] = $this->getColumnFormat($columnName);
     }
     $s .= '      </tr>' . "\n";
     $s .= '    </thead>' . "\n";
     if ($footer != '') {
         $s .= '    <tfoot>' . "\n";
         $s .= $footer;
         $s .= '    </tfoot>' . "\n";
     }
     if ($nbRows > 0) {
         $maxRows = $nbRows - $this->getStartRow();
         $s .= '    <tbody>' . "\n";
         for ($i = 0; $i < $this->getRowsPerPage() && $i < $maxRows; $i++) {
             $s .= '      <tr>' . "\n";
             foreach ($columnNames as $columnName) {
                 // Spalten, die mit addColumn eingefügt wurden
                 if (is_array($columnName)) {
                     // Nur hier sind Variablen erlaubt
                     $columnName = $columnName[0];
                     $columnValue = $this->formatValue($columnFormates[$columnName][0], $columnFormates[$columnName], false, $columnName);
                 } else {
                     $columnValue = $this->formatValue($this->getValue($columnName), $columnFormates[$columnName], true, $columnName);
//.........这里部分代码省略.........
开发者ID:eaCe,项目名称:redaxo4,代码行数:101,代码来源:class.rex_list.inc.php

示例14: rex_tabindex

            }
        } else {
            $class = '';
            if ($key == $clang) {
                $class = ' class="rex-active"';
            }
            echo '<a' . $class . ' href="index.php?page=' . $page . '&amp;clang=' . $key . $sprachen_add . '&amp;ctype=' . $ctype . '"' . rex_tabindex() . '>' . $val . '</a>';
        }
        if ($i != $num_clang) {
            echo ' | ';
        }
        echo '</li>';
        $i++;
    }
    echo '
     </ul>
   </div>
<!-- *** OUTPUT OF CLANG-TOOLBAR - END *** -->
';
    if ($stop) {
        echo '
<!-- *** OUTPUT OF CLANG-VALIDATE - START *** -->
      ' . rex_warning('You have no permission to this area') . '
<!-- *** OUTPUT OF CLANG-VALIDATE - END *** -->
';
        require $REX['INCLUDE_PATH'] . "/layout/bottom.php";
        exit;
    }
} else {
    $clang = 0;
}
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:function_rex_languages.inc.php

示例15: rex_title

<?php

/**
 *
 * @package redaxo4
 * @version $Id: login.inc.php,v 1.11 2007/10/13 13:52:00 kills Exp $
 */
rex_title('Login');
if (isset($FORM['loginmessage']) and $FORM['loginmessage'] != "") {
    echo rex_warning($FORM['loginmessage']) . "\n";
}
$REX_ULOGIN = rex_post('REX_ULOGIN', 'string');
echo '

<!-- *** OUTPUT OF LOGIN-FORM - START *** -->
<div class="rex-lgn-frm">
<form action="index.php" method="post" id="loginformular">
  <fieldset>
    <legend class="rex-lgnd">Login</legend>
    <input type="hidden" name="javascript" value="0" id="javascript" />
    <input type="hidden" name="page" value="structure" />
    <p>
      <label for="REX_ULOGIN">' . $I18N->msg('login_name') . ':</label>
      <input type="text" value="' . stripslashes(htmlspecialchars($REX_ULOGIN)) . '" id="REX_ULOGIN" name="REX_ULOGIN" />
    </p>
    <p>
      <label for="REX_UPSW">' . $I18N->msg('password') . ':</label>
      <input type="password" name="REX_UPSW" id="REX_UPSW" />
	  <input class="rex-sbmt" type="submit" value="' . $I18N->msg('login') . '" />
    </p>
  </fieldset>
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:login.inc.php


注:本文中的rex_warning函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。