Raised This Month: $32 Target: $400
 8% 

[ANY] adminWatch (v1.2.2)


Post New Thread Reply   
 
Thread Tools Display Modes
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 08-19-2019 , 13:53   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #161

does anyone have web part for php 7.x ??? mysqli?
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
eliteroyal
AlliedModders Donor
Join Date: Dec 2016
Location: Moldova
Old 02-28-2020 , 11:53   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #162

guys help please
Attached Thumbnails
Click image for larger version

Name:	adminwatch.png
Views:	320
Size:	77.0 KB
ID:	179931  
__________________
PEACE FROM MOLDOVA
eliteroyal is offline
MarcusCardoso
Junior Member
Join Date: Jan 2020
Old 03-01-2020 , 10:00   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #163

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /storage/ssd4/701/12623701/public_html/includes/database.include.php:25 Stack trace: #0 /storage/ssd4/701/12623701/public_html/includes/database.include.php(37): Database->connect() #1 /storage/ssd4/701/12623701/public_html/index.php(2: Database->query('SELECT * FROM `...') #2 {main} thrown in /storage/ssd4/701/12623701/public_html/includes/database.include.php on line 25
MarcusCardoso is offline
eliteroyal
AlliedModders Donor
Join Date: Dec 2016
Location: Moldova
Old 05-11-2020 , 07:11   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #164

i think author doesnt give a fork about this plugin anymore, would be nice if someone else would take this cool project because at the moment there is no working version for php 7
__________________
PEACE FROM MOLDOVA

Last edited by eliteroyal; 05-11-2020 at 09:04.
eliteroyal is offline
painlesstgp
Senior Member
Join Date: May 2019
Location: Sweden
Old 09-10-2020 , 12:00   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #165

Not working, getting PHP error.

Code:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/www/hvhservers/public/adminwatch/includes/database.include.php:25 Stack trace: #0 /usr/www/hvhservers/public/adminwatch/includes/database.include.php(37): Database->connect() #1 /usr/www/hvhservers/public/adminwatch/index.php(17): Database->query('SELECT * FROM `...') #2 {main} thrown in /usr/www/hvhservers/public/adminwatch/includes/database.include.php on line 25
painlesstgp is offline
painlesstgp
Senior Member
Join Date: May 2019
Location: Sweden
Old 09-11-2020 , 09:13   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #166

Heyo, this doesnt log /ban /kick /gag /mute
painlesstgp is offline
vikir
Junior Member
Join Date: Jun 2018
Old 11-30-2021 , 14:10   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #167

Quote:
Originally Posted by MAMAC View Post
does anyone have web part for php 7.x ??? mysqli?
<?php

class Database
{
var $Host = "YOURHOST"; // Hostname of our MySQL server.
var $Database = "YOURDB"; // Logical database name on that server.
var $User = "YOURUSER"; // User and Password for login.
var $Password = "YOURPASS";
var $Port = 'YOURPORT';

var $Link_ID = 0; // Result of mysqli_connect().
var $Query_ID = 0; // Result of most recent mysqli_query().
var $Record = array(); // current mysqli_fetch_array()-result.
var $Row; // current row number.
var $LoginError = "";

var $Errno = 0; // error state of query...
var $Error = "";

//-------------------------------------------
// Connects to the database
//-------------------------------------------
function connect()
{
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
if (0 == $this->Link_ID)
$this->Link_ID=mysqli_connect( $this->Host, $this->User, $this->Password, $this->Database, $this->Port );
if( !$this->Link_ID )
$this->halt( "Link-ID == false, connect failed" );
}

//-------------------------------------------
// Queries the database
//-------------------------------------------
function query( $Query_String )
{
$this->connect();
$this->Query_ID = mysqli_query($this->Link_ID, $Query_String);
$this->Row = 0;
$this->Errno = mysqli_errno(Query_ID);
$this->Error = mysqli_error(Query_ID);
if( !$this->Query_ID )
$this->halt( "Invalid SQL: ".$Query_String );
return $this->Query_ID;
}

//-------------------------------------------
// If error, halts the program
//-------------------------------------------
function halt( $msg )
{
printf( "<strong>Database error:</strong> %s", $msg );
printf( "<strong>MySQL Error</strong>: %s (%s)", $this->Errno, $this->Error );
die( "Session halted." );
}

//-------------------------------------------
// Retrieves the next record in a recordset
//-------------------------------------------
function nextRecord()
{
@ $this->Record = mysqli_fetch_array( $this->Query_ID );
$this->Row += 1;
$this->Errno = mysqli_errno(Record);
$this->Error = mysqli_error(Record);
$stat = is_array( $this->Record );
if( !$stat )
{
@ mysqli_free_result( $this->Query_ID );
$this->Query_ID = 0;
}
return $stat;
}

//-------------------------------------------
// Retrieves a single record
//-------------------------------------------
function singleRecord()
{
$this->Record = mysqli_fetch_array( $this->Query_ID );
$stat = is_array( $this->Record );
return $stat;
}

//-------------------------------------------
// Returns the number of rows in a recordset
//-------------------------------------------
function numRows()
{
return mysqli_num_rows( $this->Query_ID );
}

//-------------------------------------------
// Returns the Last Insert Id
//-------------------------------------------
function lastId()
{
return mysqli_insert_id();
}

//-------------------------------------------
// Returns Escaped string
//-------------------------------------------
function mysqli_escape_mimic($inp)
{
if(is_array($inp))
return array_map(__METHOD__, $inp);
if(!empty($inp) && is_string($inp))
{
return str_replace(array('\\', "\0", "\n", "\r", "'", '"', "\x1a"), array('\\\\', '\\0', '\\n', '\\r', "\\'", '\\"', '\\Z'), $inp);
}
return $inp;
}
//-------------------------------------------
// Returns the number of rows in a recordset
//-------------------------------------------
function affectedRows()
{
return mysqli_affected_rows();
}

//-------------------------------------------
// Returns the number of fields in a recordset
//-------------------------------------------
function numFields()
{
return mysqli_num_fields($this->Query_ID);
}

}
vikir is offline
Reply


Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode