vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   VBulletin code is required for guests to see what is it? (https://vborg.vbsupport.ru/showthread.php?t=209574)

Adem GEN? 03-27-2009 02:40 AM

VBulletin code is required for guests to see what is it?
 
Hi,

vBulletin these codes
PHP Code:

error_reporting(E_ALL & ~E_NOTICE);
require_once(
'./global.php'); 


I'm just used to run them
PHP Code:

$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);

$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'"); 



My special number codes on them all
PHP Code:

error_reporting(E_ALL & ~E_NOTICE);

require_once(
'./global.php');

$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);

$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'");    

if(
mysql_num_rows($tc_no_sorgula))
{
echo 
'No';

}
else
{
echo 
'OK';


The problem that:
Note: My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No
Guests are not allowed?
Guests are allowed to give the code for what?
What code is required to use vBulletin?



Thanks

Marco van Herwaarden 04-01-2009 08:17 AM

I have no clue what you are actually asking, but i do notice that your script is open for SQL-injections because of the use of an uncleaned variable ($tc_no) in your query.

Lynne 04-01-2009 02:30 PM

If you don't want guests to see that page, put this near the top but after including global.php

PHP Code:

if (!isset($vbulletin->userinfo['userid']) OR $vbulletin->userinfo['userid'] == 0)
{
        
print_no_permission(); 



Adem GEN? 04-02-2009 09:31 PM

Hello,

(I do not know English'll write a short text, please try to understand)

Let me explain what I am trying to do over.

The number is special to my country of citizenship

Members would like this number during registration

Registered members within

The numbers do control

Example flash video:
Code:

Registered number 11111111111
 22222222222 number is not registered and can be used.
...forum.com/register.php?do=register
http://vbulletin.ardeseni.com/yeni_sayfa_3.htm

Jquery code
Code:

        $.ajax({ 
        type: "POST", 
        url: "number_control.php", 
        data: "tc_no="+ usr, 
        success: function(msg){

number_control.php
Code:

error_reporting(E_ALL & ~E_NOTICE);

require_once(
'./global.php');

$field_alani = $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no = $vbulletin->input->clean_gpc('p', 'tc_no', TYPE_NOHTML);

$tc_no_sorgula = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "userfield WHERE $field_alani LIKE '$tc_no'");   

if(
mysql_num_rows($tc_no_sorgula))
{
echo
'No';

}
else
{
echo
'OK';
}

Now these problems:

My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: Yes, In this case, no problem at all running



Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No, In this case, numbers can not be controlBecause, Visitors can not access this file number_control.php
In this case visitors want to run this file

Note: tc_no number name name of input field

I hope I could tell

Thanks





Lynne 04-02-2009 10:41 PM

Sorry, but I just don't understand the question. I think you are saying you are having problems with visitors because the query won't work for them (since there is no userfield table for a visitor).

ragtek 04-02-2009 10:43 PM

Hi.

Try it here: http://www.vbulletin-turkey.com/ or maybe hasann could translate it for us^^

Its realy hard to help you if we cant understand you.

Adem GEN? 04-03-2009 01:10 AM

My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: Yes, In this case, no problem at all running
See: http://vbulletin.ardeseni.com/yeni_sayfa_3.htm



Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No, In this case, numbers can not be controlBecause, Visitors can not access this file number_control.php
In this case visitors want to run this file
See: http://vbulletin.ardeseni.com/yeni_sayfa_2.htm


Guests can work the code on this page.
Required to work for?

number_control.php
PHP Code:

error_reporting(E_ALL & ~E_NOTICE);

require_once(
'./global.php');

$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);

$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'");    

if(
mysql_num_rows($tc_no_sorgula))
{
echo 
'No';

}
else
{
echo 
'OK';



Marco van Herwaarden 04-03-2009 09:20 AM

Can you plese PM the license-id used for ardeseni.com, as i can not locate a valid license for this site.

Adem GEN? 04-03-2009 10:12 AM

I have two licenses.
See sample video web site that is ardeseni.com.
ardeseni.com do not use vBulletin forums
guide me how to use information only about ardeseni.com vBulletin am
PM I sent

Marco van Herwaarden 04-03-2009 11:15 AM

Thank you for the verification.

Adem GEN? 04-09-2009 06:59 PM

Quote:

Originally Posted by AdemGEN? (Post 1782810)
My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: Yes, In this case, no problem at all running
See: http://vbulletin.ardeseni.com/yeni_sayfa_3.htm



Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No, In this case, numbers can not be controlBecause, Visitors can not access this file number_control.php
In this case visitors want to run this file
See: http://vbulletin.ardeseni.com/yeni_sayfa_2.htm


Guests can work the code on this page.
Required to work for?

number_control.php
PHP Code:

error_reporting(E_ALL & ~E_NOTICE);
 
require_once(
'./global.php');
 
$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];
 
$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);
 
$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'");    
 
if(
mysql_num_rows($tc_no_sorgula))
{
echo 
'No';
 
}
else
{
echo 
'OK';



Current Topics
I am still waiting for help on this topic
Would you please help?


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01374 seconds
  • Memory Usage 1,771KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete