Exemplo n.º 1
0
 function MySQLResult($session, $query, $debug)
 {
     global $login, $SERVER_NAME;
     $this->query = $query;
     $this->debug = $debug;
     $this->session = $session;
     if ($this->debug) {
         // Log the query
         $fd = fopen("/tmp/dbi.{$SERVER_NAME}.log", "a") or die("Couldn't append to file");
         fputs($fd, $this->query . "\n==================\n");
         fclose($fd);
     }
     if (!($this->res = mysql_query($this->query, $this->session))) {
         if (defined("installing")) {
             print "<b>A database error has occoured executing the following query: \"" . $this->query . "\".</b>. " . mysql_error() . ".";
         } else {
             if (!empty($login) || debug) {
                 if ($login->isWebmaster() || debug) {
                     print "<b>A database error has occoured executing the following query: \"" . $this->query . "\".</b>. " . mysql_error() . ".";
                 }
             } else {
                 print "<b>A database error has occoured." . (defined('pageAdminMail') ? " Please contact the " . protectMail(pageAdminMail, "webmaster") . " of this site to report the problem." : "") . "</b>";
             }
         }
         $this->error = 1;
         exit;
     }
     $this->row = 0;
 }
Exemplo n.º 2
0
<?php

/* 
 * Default timestamp format 
 * This uses the PHP date() function to create the formatting.
 * Please read the PHP documentation before changing this, located at http://www.php.net
*/
$timeFormat = "d/m/y H:i";
$shortTimeFormat = "d/m/Y";
/* Activate */
$lActivate["Header"] = "Profilaktivering";
$lActivate["HeaderText"] = "Din profil er nu aktiveret og du kan logge ind på siden.";
$lActivate["HeaderTextError"] = "Din profil kunne ikke aktiveres. Kontakt sidens " . protectMail(pageAdminMail, "webmaster") . ".<br /><br />Mvh.<br />" . pageTitle;
$lActivate["MailSubject"] = "Profil aktiveret på " . pageTitle;
$lActivate["MailMessage"] = "Hej %s,\n\n" . "Du modtager denne mail som en bekræftelse på, at du har aktiveret din profil på " . pageTitle . ".\n\n" . "Du kan nu logge ind på " . pageTitle . " med brugernavn '%s'.\n\n\n" . "Mvh.\n" . pageTitle;
/* Buttom links */
$lBottom["DirectLink"] = "Direkte link";
$lBottom["Edit"] = "Rediger";
$lBottom["EditPermissions"] = "Rediger rettigheder";
$lBottom["PrinterFriendly"] = "Printervenlig version";
$lBottom["RecommendLink"] = "Anbefal til ven";
$lBottom["Revisions"] = "Revisioner";
$lBottom["RSSFeed"] = "RSS feed";
/* Comments */
$lComment["Header"] = "Kommentarer";
$lComment["WriteComment"] = "Send kommentar";
$lComment["SendComment"] = "Send kommentar";
$lComment["Comment"] = "kommentar";
$lComment["Comments"] = "kommentarer";
$lComment["NoComments"] = "Der er endnu ingen kommentarer.";
$lComment["CommentTextLogged"] = "Nedenfor kan du læse kommentarer til '%s'. Klik <a href=\"#post\">her</a> for at skrive en ny kommentar.";
Exemplo n.º 3
0
<?php

/* 
 * Default timestamp format 
 * This uses the PHP date() function to create the formatting.
 * Please read the PHP documentation before changing this, located at http://www.php.net
*/
$timeFormat = "M jS, Y, H:i";
$shortTimeFormat = "M jS, Y";
/* Activate */
$lActivate["Header"] = "Profil Activation";
$lActivate["HeaderText"] = "Your profile has been activated. You can now log in using the form in the top corner.<br /><br />Greetings<br />" . pageTitle;
$lActivate["HeaderTextError"] = "Your profile could not be activated. Please contact the " . protectMail(pageAdminMail, "webmaster") . " of the site.<br /><br />Greetings<br />" . pageTitle;
$lActivate["MailSubject"] = "Profile activated on " . pageTitle;
$lActivate["MailMessage"] = "Hi %s,\n\n" . "You are receiving this e-mail as a confirmation that you have activated your profile on " . pageTitle . ".\n\n" . "You can now log in using the username '%s' and the password you received in the previous mail.\n\n\n" . "Greetings!\n" . pageTitle;
/* Buttom links */
$lBottom["DirectLink"] = "Direct link";
$lBottom["Edit"] = "Edit";
$lBottom["EditPermissions"] = "Edit permissions";
$lBottom["PrinterFriendly"] = "Printerfriendly version";
$lBottom["RecommendLink"] = "Recommend to friend";
$lBottom["Revisions"] = "Revisions";
$lBottom["RSSFeed"] = "RSS feed";
/* Comments */
$lComment["Header"] = "Comments";
$lComment["WriteComment"] = "Post comment";
$lComment["SendComment"] = "Post comment";
$lComment["Comment"] = "comment";
$lComment["Comments"] = "comments";
$lComment["NoComments"] = "No comments yet.";
$lComment["CommentTextLogged"] = "Below you can read comments to '%s'. Click <a href=\"#post\">here</a> to post a new comment.";
Exemplo n.º 4
0
     echo "<p><b>" . $lProfile["Location"] . "</b><br />";
     echo $user->location;
     echo "</p>";
 }
 // Print phone
 if (!$user->hideTelephone) {
     if (!empty($user->phone) || !empty($user->mobile)) {
         echo "<p><b>" . $lProfile["Phone"] . "</b><br />";
         echo $user->phone . (!empty($user->mobile) ? (!empty($user->phone) ? "/" : "") . $user->mobile : "");
         echo "</p>";
     }
 }
 // Print email
 if (!empty($user->email) && !$user->hideEmail) {
     echo "<p><b>" . $lProfile["Email"] . "</b><br />";
     echo protectMail($user->email, $user->email);
     echo "</p>";
 }
 // Print website
 if (!empty($user->linkurl)) {
     $linkurl = $user->linkurl;
     if (substr($linkurl, 0, 4) != "http") {
         $linkurl = "http://" . $linkurl;
     }
     echo "<p><b>" . $lProfile["Website"] . "</b><br />";
     echo "<a href=\"" . $linkurl . "\" target=\"_blank\">" . (!empty($user->linkname) ? $user->linkname : $user->linkurl) . "</a>";
     echo "</p>";
 }
 // Print facebook
 if (!empty($user->facebook)) {
     echo "<p><b>Facebook</b><br />";