backend default text

The backend default text will be shown every time you are logging into your site's backend. You can show the content of this page within all of your phpwcms installations. Think of it as a convenient way to show hot news to all of your customers or use it individually as some TODO list or….

Have a look to: Custom links in "home"



Autor: Markus Schartner (markus_s) http://www.4x4-tirol.at 2009/10/24
CMS Version: >= V1.3.x



Here is some picture:

You have to set up a page where you will keep the news and information updated. By using the following code you then can pull this page into your backend default text page. Drop it into the text input field under /admin/“backend default text”.

<?php
// -------------------------------------!!!! Don´t touch !!!!---------------------------------
// obligate check for phpwcms constants
   if (!defined('PHPWCMS_ROOT')) {die("You Cannot Access This Script Directly, Have a Nice Day."); }
// -------------------------------------------------------------------------------------------
?>
 
<?php
function url_include($url) {
  $ch = curl_init();
  $timeout = 1;
  curl_setopt ($ch, CURLOPT_URL, $url);
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  $result = curl_exec($ch);
  curl_close($ch);
  return $result;
}
?>
 
<?php $include = url_include("http://hier IUhre NewsWebseite/index.php");
print $include; ?>


here is index.php - which is setting up the news page:

</br>
<style type="text/css">
<!--
.rahmen {
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: none;
    border-bottom-style: solid;
    border-left-style: none;
    border-top-color: #92A1AF;
    border-bottom-color: #92A1AF;
    border-spacing: 2px;
}
.hoehe {
    padding: 2px 0 4px 5px;}
 
-->
</style>
 
<h1 class="title">News & Kontakt</h1>
    <table class="rahmen" width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
      <tr>
        <td class="hoehe"><b>DVA-Datenverarbeitung - Markus Schartner</b></td>
      </tr>
      <tr>
        <td class="hoehe" bgcolor="#E1E1C8"><img src="http://www.example.com/bilder/text_1.gif" alt="Email" width="11" height="15" border="0" align="top"><a href="mailto:Ihre Emailadresse"> Email</a></td>
      </tr>
      <tr>
        <td class="hoehe" bgcolor="#F0F0E3"><img src="http://www.example.com/bilder/text_1.gif" alt="Telefon" width="11" height="15" align="top"> Telefon: Ihre telefonnummer</td>
      </tr>
      <tr>
        <td class="hoehe" bgcolor="#E1E1C8"><p><b>NEWS</b><br /><br />
          Jetzt Onlinegang der Seite
<br />
        </p></td>
      </tr>
 
    </table>

Markus Schartner 2009/10/24 12:37

english/phpwcms-system/admin/backend-default-text.txt · Last modified: 2018/06/03 18:09 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0