Beispiel #1
0
     if ($loggedin) {
         $name = getnickname($userID);
         if (getemailhide($userID)) {
             $email = '';
         } else {
             $email = getemail($userID);
         }
         $url = gethomepage($userID);
         $icq = geticq($userID);
         $_language->read_module('bbcode', true);
         eval("\$addbbcode = \"" . gettemplate("addbbcode") . "\";");
         eval("\$profile_guestbook_loggedin = \"" . gettemplate("profile_guestbook_loggedin") . "\";");
         $profile_guestbook_loggedin;
     } else {
         $CAPCLASS = new Captcha();
         $captcha = $CAPCLASS->create_captcha();
         $hash = $CAPCLASS->get_hash();
         $CAPCLASS->clear_oldcaptcha();
         $_language->read_module('bbcode', true);
         eval("\$addbbcode = \"" . gettemplate("addbbcode") . "\";");
         eval("\$profile_guestbook_notloggedin = \"" . gettemplate("profile_guestbook_notloggedin") . "\";");
         $profile_guestbook_notloggedin;
     }
 }
 //profil: home
 $date = time();
 $ergebnis = safe_query("SELECT * FROM " . PREFIX . "user WHERE userID='" . $id . "'");
 $anz = mysql_num_rows($ergebnis);
 $ds = mysql_fetch_array($ergebnis);
 if ($userID != $id && $userID != 0) {
     safe_query("UPDATE " . PREFIX . "user SET visits=visits+1 WHERE userID='" . $id . "'");
Beispiel #2
0
<?php

/**
 * DouPHP
 * --------------------------------------------------------------------------------------------------
 * 版权所有 2013-2015 漳州豆壳网络科技有限公司,并保留所有权利。
 * 网站地址: http://www.douco.com
 * --------------------------------------------------------------------------------------------------
 * 这不是一个自由软件!您只能在遵守授权协议前提下对程序代码进行修改和使用;不允许对程序代码以任何形式任何目的的再发布。
 * 授权协议:http://www.douco.com/license.html
 * --------------------------------------------------------------------------------------------------
 * Author: DouCo
 * Release Date: 2015-10-16
 */
define('IN_DOUCO', true);
define('EXIT_INIT', true);
require dirname(__FILE__) . '/include/init.php';
require ROOT_PATH . 'include/captcha.class.php';
// 开启SESSION
session_start();
// 实例化验证码
$captcha = new Captcha(70, 25);
// 清除之前出现的多余输入
@ob_end_clean();
$captcha->create_captcha();