• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

WebMaster -convertoldshoppoints.php- convert to modernaac -

milbradt

New Member
Joined
Dec 25, 2011
Messages
177
Solutions
1
Reaction score
4
seeking a webmaster to convert the file convertoldshoppoints.php ZnoteAac for Modern Aac.

This system converts all points ModernAac to ZnoteAac.

I want to do the opposite. Those who know do and want to do please contact me.

Paid $ 70. (combine)
 
Converts Znote AAC points to Gesior/Modern points
PHP:
<?php
require '../config.php';
require '../engine/database/connect.php';
?>

<h1>Znote AAC shop points to Gesior and Modern shop points</h1>
<p>Convert donation/shop points from previous Znote AAC installation to Gesior/Modern:</p>
<?php
    $accounts = mysql_select_multi("SELECT `account_id`, `points` FROM `znote_accounts` WHERE `points`>'0';");
    $accountids = array();
    foreach ($accounts as $acc) $accountids[] = $acc['account_id'];
    $accidlist = join(',',$accountids);

    if ($accounts !== false) echo "<p>Detected: ". count($accounts) ." accounts who have points in old system.</p>";
    else die("<h1>All accounts already converted. :)</h1>");

    $znote_accounts = mysql_select_multi("SELECT `id`, `premium_points` FROM `accounts` WHERE `id` IN ($accidlist);");

    if (count($accounts) !== count($znote_accounts)) die("<h1><font color='red'>Failed to syncronize accounts. You need to convert all accounts to Gesior/Modern first!</font></h1>");

    // Order old accounts by id.
    $idaccounts = array();
    foreach ($accounts as $acc) {
        $idaccounts[$acc['account_id']] = $acc['points'];
    }
    foreach ($znote_accounts as $acc) {
        mysql_update("UPDATE `accounts` SET `premium_points`='". ($acc['premium_points'] + $idaccounts[$acc['id']]) ."' WHERE `id`='". $acc['id'] ."' LIMIT 1;");
    }
    mysql_update("UPDATE `znote_accounts` SET `points`='0';");

    echo "<h1><font color='green'>Successfully converted all points!</font></h1>";
?>

Or did you want it rewritten for Modern AAC? :p
 
it rewritten for Modern AAC '-'

ZNote Aac was very heavy. I do not understand why.
So I will use the ModernAac. However had to convert the points again.:(

Sorry slow to respond, had gone to bed one hour.
 

Similar threads

Back
Top