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) 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”.

// -------------------------------------!!!! Don´t touch !!!!---------------------------------
// obligate check for phpwcms constants
   if (!defined('PHPWCMS_ROOT')) {die("You Cannot Access This Script Directly, Have a Nice Day."); }
// -------------------------------------------------------------------------------------------
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);
  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:

<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;}
<h1 class="title">News & Kontakt</h1>
    <table class="rahmen" width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
        <td class="hoehe"><b>DVA-Datenverarbeitung - Markus Schartner</b></td>
        <td class="hoehe" bgcolor="#E1E1C8"><img src="" alt="Email" width="11" height="15" border="0" align="top"><a href="mailto:Ihre Emailadresse"> Email</a></td>
        <td class="hoehe" bgcolor="#F0F0E3"><img src="" alt="Telefon" width="11" height="15" align="top"> Telefon: Ihre telefonnummer</td>
        <td class="hoehe" bgcolor="#E1E1C8"><p><b>NEWS</b><br /><br />
          Jetzt Onlinegang der Seite
<br />

Markus Schartner 2009/10/24 12:37

english/phpwcms-system/admin/backend-default-text.txt · Last modified: 2018/06/03 18:09 (external edit) 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