Author Topic: Admin can vote the same image many times as he want  (Read 3658 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Admin can vote the same image many times as he want
« on: March 10, 2009, 12:47:45 AM »
Hello,

How can I change the code to make sure that Admin can vote the same image many times as he want?

Thank you in advance,
Cruxy

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Admin can vote the same image many times as he want
« Reply #1 on: March 10, 2009, 01:23:13 AM »
In includes/page_header.php find:
    if (!in_array($id$split_list) && !in_array($id$cookie_rated)) {

Insert above:
    if ($user_info['user_level'] == ADMIN)
    {
      
$cookie_rated $split_list = array();
      
$session_info['rated_imgs'] = "";
    }
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Admin can vote the same image many times as he want
« Reply #2 on: March 10, 2009, 11:16:51 AM »
Thanks V@no. It'is working.


Cheers,
Cruxy
« Last Edit: January 29, 2010, 07:39:28 PM by cruxy »