Login   Register  
PHP Classes
elePHPant
Icontem

File: verifyguestbook.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frederik Yssing  >  Guestbooks  >  verifyguestbook.php  >  Download  
File: verifyguestbook.php
Role: Example script
Content type: text/plain
Description: verify a users entry
Class: Guestbooks
Manage guestbooks or simple blogs using MySQL
Author: By
Last change:
Date: 2012-04-24 17:14
Size: 456 bytes
 

Contents

Class file image Download
<?php
    
include_once('blog.class.php');
    
$blogUser = new blogUser();
    
    if(isset(
$_REQUEST['entry']) && isset($_REQUEST['email'])){
        if(
$blogUser->verifyBlogEntry($_REQUEST['entry'],$_REQUEST['email'])){
            echo 
"Your blog entry have been verified, now please wait for it to be approved by an administrator. Thank you.";
        } else {
            echo 
"An error accured when trying to verify this entry";
        }
    } else {
        echo 
"Missing something?";
    }
?>