User
Pass
2FA
 
 

Admini colorati la Server Stats

 
Post new topic   Reply to topic    Freakz Forum Index -> Freakz.ro -> Administrative announcements
Show all posts
Author Message93321
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 02-01-2010, 17:46:53 | Translate post to: ... (Click for more languages)

Am facut o optiune noua si anume sa arate cu alta culoare adminii.



Problema principala e ca nu pot face scriptul sa citeasca lista cu admini asa ca optiunea e disponibila doar pentru serverele adaugate in lista publica. E nevoie sa modificati setarile serverului dumneavoastra (sau cand il adaugati) si sa puneti un link DIRECT catre un fisier care contine lista de admini unul sub altul. Exemplu: https://www.freakz.ro/shocker/scripts/exemplu_admins.txt

Atentie! Nu bagati link-uri de rapidshare, fileshare, speedyshare, etc sau altele de genul, trebuie link direct la fisierul cu admine.

Optiunea pentru link-ul catre lista de admine o gasiti aici:



Da, stiu ca e obositor sa tot modificati voi manual fisierul cu admine asa ca am facut un script PHP pe care il puteti folosi ca sa va genereze automat lista cu admine: https://www.freakz.ro/inc/get_admins_php.
Script-ul se foloseste in felul urmator:
Code:

<?php
$ftp_host="war3.freakz.ro";
$ftp_port="21";
$ftp_user="user";
$ftp_pass="parola";

$admin_type="adminmod";
$users_ini="hlds_l/cstrike/addons/adminmod/config/users.ini";

$exclude_accese=array();

include("http://www.freakz.ro/inc/get_admins_php");
?>

Daca nu vreti sa folositi include("https://www.freakz.ro/inc/get_admins_php"-; downloadati script-ul respectiv si il urcati pe hostul vostru.

SETARI

  • Setarile FTP-ului banuiesc ca stiti ce inseamna (host, user, parola)
  • admin_type poate fi adminmod sau amxmodx (daca aveti adminele pe adminmod sau amxmodx)
  • users_ini indica path-ul catre users.ini
  • exclude_accese contine accesele userilor pe care nu ii vreti afisati (nick rezervat sau admin ascuns)
    Exemplu adminmod: $exclude_accese=array(16384);
    Exemplu amxmodx: $exclude_accese=array("abcdefghijklmnopqrstu", "abcdefghijklmnopr");


Daca ati facut totul corect scriptul ar trebui sa arate ceva de genul asta https://www.freakz.ro/shocker/scripts/war3admins.php.
Link-ul scriptului va fi trecut la campul Lista admine, exemplu:
Code:
http://www.freakz.ro/shocker/scripts/war3admins.php

ATENTIE! Acesta este doar un link exemplu, NU IL FOLOSITI!

NOTA!: Listele cu admine sunt citite o singura data pe zi, noaptea la ora 00:00, astfel daca la ora 15:00 (sa zicem) ati adaugat un admin nou, acesta nu va fi vizibil pana la ora 00:00 cand lista cu admini e recitita


FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook


Last edited by Shocker on 25-01-2010, 21:03:10; edited 5 times in total
1 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 14-01-2010, 16:14:18 | Translate post to: ... (Click for more languages)

Am facut niste modificari la script si mi-a scapat ceva, am rezolvat, mersi ca mi-ai zis

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
1 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 14-01-2010, 17:09:38 | Translate post to: ... (Click for more languages)

Isi face update zilnic la ora 00:00. Daca vrei neaparat sa faca update la ora 17 (sau la ce ora vrei tu) dai tu manual administreaza serverul.

Referitor la script, eu as putea sa fac scripturile mele sa citeasca direct de pe FTP-ul vostru listele de admini, dar ar trebui sa cer userilor sa introduca si userul si parola de la FTP, nu stiu cati sunt disponibili sa faca asta asa ca am lasat balta partea complet automatizata si am facut asta partial-automatizata


FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
1 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 12-02-2010, 21:47:26 | Translate post to: ... (Click for more languages)

Ce se intampla mai exact? De unde sa stiu eu despre ce server vorbesti, daca e problema de la script sau pur si simplu nu sunt admini, sau etc

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
1 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 13-02-2010, 13:24:54 | Translate post to: ... (Click for more languages)

Fa-mi un print screen cand nu ii arata pe toti si spune-mi pe care ar trebui sa ii mai arate si nu ii arata

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
1 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 14-02-2010, 01:02:31 | Translate post to: ... (Click for more languages)

Am rezolvat, era o mica eroare in script, thanks

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
1 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 13-11-2010, 03:14:05 | Translate post to: ... (Click for more languages)

Nu inteleg

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 04-12-2010, 17:26:18 | Translate post to: ... (Click for more languages)

Am scris in primul post ca pentru prosti, citeste

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 09-04-2011, 13:27:26 | Translate post to: ... (Click for more languages)

Nu

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(online 11 hours ago)
Joined: Momentul zero
Posts: 33888, Topics: 1347
Location: localhost

Reputation: 6451.8
Votes: 825

   
Post Posted: 17-07-2011, 21:19:41 | Translate post to: ... (Click for more languages)

Esti sigur ca e corect path-ul care users.ini? Daca da, modifica
Code:

$tmp = @file_get_contents("ftp://{$ftp_user}:{$ftp_pass}@{$ftp_host}:{$ftp_port}/{$users_ini}");

cu
Code:

ini_set("display_errors", 1);
$tmp = file_get_contents("ftp://{$ftp_user}:{$ftp_pass}@{$ftp_host}:{$ftp_port}/{$users_ini}");

si arata ce eroare iti afiseaza


FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Post new topic   Reply to topic    Freakz Forum Index -> Freakz.ro -> Administrative announcements  


The time now is 24-10-2019, 05:22:02
Copyright info

Based on phpBB ro/com

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x