AlphaReign / www-php

The website of AlphaReign
56 stars 24 forks source link

How to become admin #8

Closed ghost closed 6 years ago

ghost commented 6 years ago

Just wondering what steps you take to become a admin in this script? kind regards

Raxvis commented 6 years ago

Just set is_admin = 1 in the mysql database on your user.

On Sun, Mar 11, 2018 at 5:48 AM, ash121121 notifications@github.com wrote:

Just wondering what steps you take to become a admin in this script? kind regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AlphaReign/www-php/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnvZqZRQ2lPotgVVdmdCOeQzEUfB8tOks5tdQEJgaJpZM4SlpGa .

ghost commented 6 years ago

I registered but don't see such row in mysql

Raxvis commented 6 years ago

Do you have a users table?

On Sun, Mar 11, 2018 at 10:31 AM, ash121121 notifications@github.com wrote:

I registered but don't see such row in mysql

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AlphaReign/www-php/issues/8#issuecomment-372124028, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnvZmLbA25llT74K83tOatplB496FJmks5tdUNigaJpZM4SlpGa .

ghost commented 6 years ago

jg6t78

ive attached an image

Raxvis commented 6 years ago

Add a column called is_admin that is a bit / Boolean column

On Sun, Mar 11, 2018 at 16:40 ash121121 notifications@github.com wrote:

[image: jg6t78] https://user-images.githubusercontent.com/21961112/37258788-da343b46-2574-11e8-9715-50b9bf644e05.jpg

ive attached an image

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AlphaReign/www-php/issues/8#issuecomment-372151918, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnvZirEKjXY6nDfLSZJ0TV2SVS-pKq4ks5tdZnlgaJpZM4SlpGa .

ghost commented 6 years ago

Yep did that but I see no change to my account ?

ghost commented 6 years ago

What changes am i meant to see?

kind regards

Raxvis commented 6 years ago

You should be able to see the ability to update a torrent, or delete / block a torrent

On Mon, Mar 12, 2018 at 3:29 PM, ash121121 notifications@github.com wrote:

What changes am i meant to see?

kind regards

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AlphaReign/www-php/issues/8#issuecomment-372451794, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnvZjYc-0OqVncb2tEC8VXRX87wJyJPks5tdtq3gaJpZM4SlpGa .

ghost commented 6 years ago

Nope afraid it remains the same as standard account :/

ghost commented 6 years ago

Sorry it seems i can see update button but not ability to delete?

Raxvis commented 6 years ago

It might be a report button. But the ability to update works means you should be admin

ghost commented 6 years ago

yup its the flag button sorry

ghost commented 6 years ago

Thanks mate