У Вас не удалена папка /install/?
Хакеры идут к Вам!!!

Файловый Архив

  • Неограниченное количество категорий и суб-категорий
  • Настройки прав доступа по группам
  • Настройки прав доступа по каждой категории
  • Предпросмотр медиа файлов: FLV, IFLV, F4A, F4V, MP4, MP3, MOV и других...
  • Мультизагрузка файлов - SWFUploader
  • Добавление файлов с сервера
Подробности и история обновлений продукта в этой теме
Loading

Go Back   форум vBSupport.org > >
Register Изображения Меню vBsupport Files Manager Аллея Звёзд Реклама на форуме Search Today's Posts Mark Forums Read
  • Мемберка
  • Администраторам
  • Premoderation
  • For English speaking users
  • Изменения в правах
  • Каталог Фрилансеров
Пароли на скачивание файлов в Member Area меняются автоматически каждый день
Если вам нужно скачать какой то скрипт, за паролем ко мне в ЛС
привет какирам kerk
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Не можете скачать вложение?
Изменения в правах групп пользователей
внимательно читаем эту и эту темы
Короткая версия - тут
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

 
 
Первый пост
Old  
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default 0

Quote:
Originally Posted by borabora
Invıtes System 1.4.0
http://www.vbulletin.org/forum/showthread.php?t=101801

thnx!!!

http://vbsupport.org/forum/attachmen...2&d=1135189547
 
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
Old  
moody
Простоузер
Default 0

e-steki Banlist
Mod Version: 1.00
Last Update: 18. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=103190

Forms Hack
Mod Version: 3.3
Last Update: 19. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=93970
 
Old  
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default 1

Quote:
Originally Posted by moody
e-steki Banlist
Mod Version: 1.00
Last Update: 18. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=103190

Forms Hack
Mod Version: 3.3
Last Update: 19. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=93970
Attached Files
File Type: zip form_hack_3_3.zip (6.0 KB, 23 views)
File Type: zip e-steki_Banlist.zip (4.4 KB, 23 views)
 
Old  
r4z0r
Простоузер
Default 0

Visitor Totals Last 24hrs

http://www.vbulletin.org/forum/showthread.php?t=100671

MediaWiki Integration

http://www.vbulletin.org/forum/showp...9&postcount=48
http://www.vbulletin.org/forum/showp...1&postcount=10

plz
 
Old  
itdevil
Знаток
 
itdevil's Avatar
Default 0

Quote:
Originally Posted by КотЪ
Thanks Kotb, the achieve is currupt... can you please reupload it.

Thanks a lot
 
Old  
Milad
Продвинутый
 
Milad's Avatar
Default 0

VB3 MicroStats
http://www.vbulletin.org/forum/showthread.php?t=62173

Milad добавил 12-23-2005 в 10:40 PM
please don't be too late

thanks in advance

Last edited by Milad : 12-23-2005 at 11:40 PM. Reason: Добавлено сообщение
 
Old  
Eros
Простоузер
Default 0

Cyb PayPal Donate 1.5
http://www.vbulletin.org/forum/showthread.php?t=98285

thanks in advance
 
Old  
Developer
Знаток
Default 4

Quote:
Originally Posted by r4z0r
Visitor Totals Last 24hrs

http://www.vbulletin.org/forum/showthread.php?t=100671

MediaWiki Integration

http://www.vbulletin.org/forum/showp...9&postcount=48
http://www.vbulletin.org/forum/showp...1&postcount=10

plz
Quote:
Originally Posted by weeno
Ok, first read this post by Kai Backman who did most of the coding:

http://www.vbulletin.org/forum/showp...1&postcount=10

Then, here's my modifications to the code, with my comments I just added now.

AuthPlugin_vBulletin.php file:

Code:
<?php

/**
 * Authentication plugin interface. Instantiate a subclass of AuthPlugin
 * and set $wgAuth to it to authenticate against some external tool.
 *
 * The default behavior is not to do anything, and use the local user
 * database for all authentication. A subclass can require that all
 * accounts authenticate externally, or use it only as a fallback; also
 * you can transparently create internal wiki accounts the first time
 * someone logs in who can be authenticated externally.
 *
 * This interface is new, and might change a bit before 1.4.0 final is
 * done...
 *
 * @package MediaWiki
 */
require_once("includes/AuthPlugin.php");

class AuthPlugin_vBulletin extends AuthPlugin {

  // Persistent DB connection
  var $vb_database;

  function AuthPlugin_vBulletin($host, $username, $password, $dbname)
  {
    $this->vb_database = mysql_pconnect($host, $username, $password);
    mysql_select_db($dbname, $this->vb_database);
  }  


  /**
   * Check whether there exists a user account with the given name.
   * The name will be normalized to MediaWiki's requirements, so
   * you might need to munge it (for instance, for lowercase initial
   * letters).
   *
   * @param string $username
   * @return bool
   * @access public
   */
  function userExists( $username ) {
    $username = addslashes($username);

    $vb_find_user_query = "SELECT membergroupids FROM user WHERE LOWER(username)=LOWER('" . $username . "')";
    $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
    if(mysql_num_rows($vb_find_result) == 1) {
      $vb_user_info = mysql_fetch_array($vb_find_result);
      $membergroupids = $vb_user_info['membergroupids'];
      $membergrouparray = explode(",",$membergroupids);

/* weeno comment
 This version checks to see if a user is in a special secondary group.  In 
my case, this is group 17.  I only allow users who are promoted to this 
group (I call it Wiki Editor), to be authorized.  Mine has a post count of 20
 minimum */

/* weeno comment 
Below is some very ugly code to exclude illegal mediawiki chars.  These
 chars are simply denied.  People have to change their username by asking
 to log in.  Could be done in some sorta automatic way perhaps, but then
 you risk collisions.   Come to think of it, this will fail if the illegal char is
 the first and only character in the username. Can someone fix this? */

if ( !strpos($username,"#") and 
 !strpos($username,"+") and
 !strpos($username,"<") and
 !strpos($username,">") and
 !strpos($username,"[") and
 !strpos($username,"]") and
 !strpos($username,"|") and
 !strpos($username,"{") and
 !strpos($username,"}") )
{
    if(in_array("17",$membergrouparray))
        return true;
    else
      return false;
}

}

 return false;
  }
        
  /**
   * Check if a username+password pair is a valid login.
   * The name will be normalized to MediaWiki's requirements, so
   * you might need to munge it (for instance, for lowercase initial
   * letters).
   *
   * @param string $username
   * @param string $password
   * @return bool
   * @access public
   */
  function authenticate( $username, $password ) 
{
    $username = addslashes($username);
    $vb_find_user_query = "SELECT password, salt, membergroupids FROM user WHERE LOWER(username)=LOWER('" . 
$username . "')";
    $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
    if(mysql_num_rows($vb_find_result) == 1) 
        {

              $vb_user_info = mysql_fetch_array($vb_find_result);
              $membergroupids = $vb_user_info['membergroupids'];
              $membergrouparray = explode(",",$membergroupids);

/* same check. A function would perhaps be cleaner */
        if ( !strpos($username,"#") and 
         !strpos($username,"+") and
         !strpos($username,"<") and
         !strpos($username,">") and
         !strpos($username,"[") and
         !strpos($username,"]") and
         !strpos($username,"|") and
         !strpos($username,"{") and
         !strpos($username,"}") )
                {
            if(in_array("17",$membergrouparray))
                if(md5(md5($password) .  $vb_user_info['salt']) == $vb_user_info['password'])
                  return true;
                }

        }
        return false;
  }
        
  /**
   * Return true if the wiki should create a new local account automatically
   * when asked to login a user who doesn't exist locally but does in the
   * external auth database.
   *
   * If you don't automatically create accounts, you must still create
   * accounts in some way. It's not possible to authenticate without
   * a local account.
   *
   * This is just a question, and shouldn't perform any actions.
   *
   * @return bool
   * @access public
   */
  function autoCreate() {
    return true;
  }
        
  /**
   * Return true to prevent logins that don't authenticate here from being
   * checked against the local database's password fields.
   *
   * This is just a question, and shouldn't perform any actions.
   *
   * @return bool
   * @access public
   */
  function strict() {
    return false;
  }
        
  /**
   * When creating a user account, optionally fill in preferences and such.
   * For instance, you might pull the email address or real name from the
   * external user database.
   *
   * The User object is passed by reference so it can be modified; don't
   * forget the & on your function declaration.
   *
   * @param User $user
   * @access public
   */
  function initUser( &$user ) { 
    $vb_find_user_query = "SELECT email FROM user WHERE LOWER(username)=LOWER('" . 
addslashes($user->mName) . "')";
    $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
    if(mysql_num_rows($vb_find_result) == 1) {
      $vb_user_info = mysql_fetch_array($vb_find_result);

/* weeno comment 
the following two lines copy the email over and make it validated
 so it can be used in the wiki */

      $user->mEmail = $vb_user_info['email'];
      $user->mEmailAuthenticated = wfTimestampNow();
    }
    else {
      // ERROR?
    }
  }
}


?>
Other changes I had to make:

vBulletin AdminCP: exclude the characters from new registrations so it's not an ongoing issue.

I edited out some of the html in the MediaWiki code under SpecialPreferences.php to remove any options to change usernames and passwords, so people couldn't get their accounts out of sync.

any questions? It's still rather crude. but works. I'm working on more forum<->wiki interaction like listing recent articles and stuff. this stuff is still in progress.


arn
Quote:
Originally Posted by Kai Backman
I'm sorry to be late to the thread, but I've actually been running an integrated vBulletin/MediaWiki system for quite some time. I just today got another request from someone wanting to have the code, and realized it might be easier to just post it ..

MediaWiki has a facility for creating Authentication plugins that let you do the integration pretty easily. They were non-documented when I started with the hack, but once you find the correct template everything was smooth sailing. There are a few comments about the code

- People still need to log on to MediaWiki once, after that they are cookied.
- MediaWiki has a smaller namespace for usernames than vBulletin, on a large board you might have clashes. I'm assuming it's not a security problem, but it might be an inconvenience.
- You need to clean up the user properties pages of things like changing names and stuff (they aren't automatically dropped).
- The Wiki will create only those users who actually log on
- The $usergroupid clauses determine who can create an account, you need to change these clauses to suit your own board.

Have fun!

Add this snippet to you LocalSettings.php. Insert your vBulletin DB information:
Code:
require_once("AuthPlugin_vBulletin.php");

$wgAuth = new AuthPlugin_vBulletin(<hostname>, <vb_username>, <vb_password>, <vb_dbName);
And then AuthPlugin_vBulletin.php itself:
Code:
<?php


/**
 * Authentication plugin interface. Instantiate a subclass of AuthPlugin
 * and set $wgAuth to it to authenticate against some external tool.
 *
 * The default behavior is not to do anything, and use the local user
 * database for all authentication. A subclass can require that all
 * accounts authenticate externally, or use it only as a fallback; also
 * you can transparently create internal wiki accounts the first time
 * someone logs in who can be authenticated externally.
 *
 * This interface is new, and might change a bit before 1.4.0 final is
 * done...
 *
 * @package MediaWiki
 */
require_once("includes/AuthPlugin.php");

class AuthPlugin_vBulletin extends AuthPlugin {

  // Persistent DB connection
  var $vb_database;

  function AuthPlugin_vBulletin($host, $username, $password, $dbname)
  {
    $this->vb_database = mysql_pconnect($host, $username, $password);
    mysql_select_db($dbname, $this->vb_database);
  }  


  /**
   * Check whether there exists a user account with the given name.
   * The name will be normalized to MediaWiki's requirements, so
   * you might need to munge it (for instance, for lowercase initial
   * letters).
   *
   * @param string $username
   * @return bool
   * @access public
   */
  function userExists( $username ) {
    $username = addslashes($username);
    $vb_find_user_query = "SELECT usergroupid FROM user WHERE LOWER(username)=LOWER('" . $username . "')";
    $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
    if(mysql_num_rows($vb_find_result) == 1) {
      $vb_user_info = mysql_fetch_array($vb_find_result);
      $usergroupid = $vb_user_info['usergroupid'];
      // Only registered and admins. Banned and unregistered don't belong here.
      if($usergroupid == "2" || $usergroupid == "5" || $usergroupid == "6" || $usergroupid == "7")
        return true;
    }
    else
      return false;
  }
	
  /**
   * Check if a username+password pair is a valid login.
   * The name will be normalized to MediaWiki's requirements, so
   * you might need to munge it (for instance, for lowercase initial
   * letters).
   *
   * @param string $username
   * @param string $password
   * @return bool
   * @access public
   */
  function authenticate( $username, $password ) {
    $username = addslashes($username);
    $vb_find_user_query = "SELECT password, salt, usergroupid FROM user WHERE LOWER(username)=LOWER('" . $username . "')";
    $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
    if(mysql_num_rows($vb_find_result) == 1) {
      $vb_user_info = mysql_fetch_array($vb_find_result);
      $usergroupid = $vb_user_info['usergroupid'];
      
      // Only registered and admins. Banned and unregistered don't belong here.
      if($usergroupid == "2" || $usergroupid == "5" || $usergroupid == "6" || $usergroupid == "7")
        if(md5(md5($password) .  $vb_user_info['salt']) == $vb_user_info['password'])
          return true;
    }
    return false;
  }
	
  /**
   * Return true if the wiki should create a new local account automatically
   * when asked to login a user who doesn't exist locally but does in the
   * external auth database.
   *
   * If you don't automatically create accounts, you must still create
   * accounts in some way. It's not possible to authenticate without
   * a local account.
   *
   * This is just a question, and shouldn't perform any actions.
   *
   * @return bool
   * @access public
   */
  function autoCreate() {
    return true;
  }
	
  /**
   * Return true to prevent logins that don't authenticate here from being
   * checked against the local database's password fields.
   *
   * This is just a question, and shouldn't perform any actions.
   *
   * @return bool
   * @access public
   */
  function strict() {
    return true;
  }
	
  /**
   * When creating a user account, optionally fill in preferences and such.
   * For instance, you might pull the email address or real name from the
   * external user database.
   *
   * The User object is passed by reference so it can be modified; don't
   * forget the & on your function declaration.
   *
   * @param User $user
   * @access public
   */
  function initUser( &$user ) { 
    $vb_find_user_query = "SELECT password, salt FROM user WHERE LOWER(username)=LOWER('" . addslashes($user->mName) . "')";
    $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database);
    if(mysql_num_rows($vb_find_result) == 1) {
      $vb_user_info = mysql_fetch_array($vb_find_result);
      $user->mEmail = $vb_user_info['email'];
    }
    else {
      // ERROR?
    }
  }
}


?>
Developer добавил 12-24-2005 в 12:37 AM
Quote:
Originally Posted by Milad
VB3 MicroStats
http://www.vbulletin.org/forum/showthread.php?t=62173

Milad добавил 12-23-2005 в 10:40 PM
please don't be too late

thanks in advance
Developer добавил 12-24-2005 в 12:38 AM
Quote:
Originally Posted by Eros
Cyb PayPal Donate 1.5
http://www.vbulletin.org/forum/showthread.php?t=98285

thanks in advance
Attached Files
File Type: zip total_24hrs_vb3.5.1.zip (16.3 KB, 14 views)
File Type: rar microstats.rar (21.1 KB, 14 views)
File Type: zip Cyb PayPal Donate 1.5.zip (179.8 KB, 26 views)

Last edited by Developer : 12-24-2005 at 01:38 AM. Reason: Добавлено сообщение
 
Old  
moody
Простоузер
Default 0

vB Drupal: Community Plumbing (CMS + Blogs)
Mod Version: 1.3.1
Last Update: 24. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=97341

vB Drupal addon - vbList
Mod Version: 1.0
Last Update: 21. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=102776

vB Drupal CMS, Search Engine Optimization (SEO)
Mod Version: 1.00
Last Update: 13. Nov 2005
http://www.vbulletin.org/forum/showthread.php?t=97807

vB Drupal Community Plumbing: Workflow module
Mod Version: 1.00
Last Update: 11. Nov 2005
http://www.vbulletin.org/forum/showthread.php?t=97586

Blog API: Publish to vB Drupal from your Desktop
Mod Version: 0.9
Last Update: 19. Oct 2005
http://www.vbulletin.org/forum/showthread.php?t=98660

vB Drupal Addon - vbcode
Mod Version: 1.0
Last Update: 19. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=103280

Post Thank You Hack
Mod Version: 2.7
Last Update: 19. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=92410

Toplist
Mod Version: 1.0.4
Last Update: 23. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=98646

Vbjokes
Mod Version: 1.02
Last Update: 07. Dec 2005
http://www.vbulletin.org/forum/showthread.php?t=98248

how to convert Games for ibProArcade
Release: 24. Dec 2005
IPBAguideV1.3.zip
http://www.vbulletin.org/forum/showp...postcount=1141

Last edited by moody : 12-25-2005 at 04:21 AM.
 
Old  
Milad
Продвинутый
 
Milad's Avatar
Default 0

Quote:
Originally Posted by КотЪ
the file is bad

КотЪ, reload it again please

http://www.vbulletin.org/forum/showthread.php?t=101801

thanks in advance

Milad добавил 12-25-2005 в 02:46 AM
Attachment Browser
Mod Version: 1.1.0
http://www.vbulletin.org/forum/showthread.php?t=103519

Last edited by Milad : 12-25-2005 at 03:46 AM. Reason: Добавлено сообщение
 
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 05:57 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.