dating-.silver-partner 2.0.2 - 2.0.4 changelog

Code operations
/configs.php
Lang cookie clean disable (bugfix)
1
FIND - Line 772
setcookie( 'set', $set, time()+8640*3600 );
AND REPLACE WITH
setcookie( 'set', $set, time()+8640*3600, '/' );
/articles/read.php
Article category title generation (feature)
2
FIND - Line 70
$article['page'] = $_GET['abpage'];
AND BEFORE IT INSERT
$_page['title'] = $article['title'].' - '.$_lang['_dating_article'];
/articles/index.php
Article category title generation (feature)
3
FIND - Line 103
$navigation = $_lang['H1_ARTICLES'];
$template = 'articles';
AND BEFORE IT INSERT
$_page['title'] = $curr['category']['name'].' - '.$_lang['T_ARTICLES'];
/inc/design.inc.php
Last activity settings (feature)
4
FIND - Line 619
        return $advertisement;
}
AND AFRER IT INSERT
function get_prof_lastact( &$pr, $online_members )
{
        global $mysql;

        $la_conf = array
        (
                'la' => $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='display_lastactivity'" ),
                'num' => $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='num_last_act'" ),
        );
                switch( $la_conf['la'] )
                {
                        case 'on':
                        if( in_array( $pr['ID'], $online_members ) )
                        {
                                if ( $data['Username'] != $pr['Username'] )
                                {
                                        $pr['im_popup_open_js'] = im_popup_open_js( $pr['Username'] );
                                }
                                $pr['online'] = $pr['ID'];
                        }
                        break;

                        case 'off':
                        $pr['LastActivity'] = 0;
                        break;

                        case "day":

                        if( in_array( $pr['ID'], $online_members ) )
                        {
                                if ( $data['Username'] != $pr['Username'] )
                                {
                                        $pr['im_popup_open_js'] = im_popup_open_js( $pr['Username'] );
                                }
                                $pr['online'] = $pr['ID'];
                        }
                        else
                                $pr['LastActivity'] = ( ( time() - $pr['LastActivity'] ) <= ( $la_conf['num'] * 86400 ) ) ? $pr['LastActivity'] : 0;
                        break;
                }
}
Join usability enhancement (feature)
4
FIND - Line 356
        else
        {
            $_POST[$Name] = str_replace( '"', $html_mnemonik['Quote'], $_POST[$Name] );
            $ret['input'] = "<input class='input_text' name='$Name' size='$size' id='$Name' value=\"{$_POST[$Name]}\"";
        }
AND REPLACE WITH
        else
        {
            $_POST[$Name] = str_replace( '"', $html_mnemonik['Quote'], $_POST[$Name] );
            if ( $Name == 'City' )
            {
                $ret['input'] = $_lang['txt_lookup_city_more_info']."<br /><input class='input_text' name='$Name' size='$size' id='$Name' value=\"{$_POST[$Name]}\"";
            }
            else if ( $Name == 'ZIP' )
            {
                $ret['input'] = $_lang['txt_lookup_zip_more_info']."<br /><input class='input_text' name='$Name' size='$size' id='$Name' value=\"{$_POST[$Name]}\"";
            }           
            else
            {
                $ret['input'] = "<input class='input_text' name='$Name' size='$size' id='$Name' value=\"{$_POST[$Name]}\"";
            }
        }

5
FIND - Line 372
$ret['input'] .= "><a href=\"javascript:;\" onclick=\"OpenLookUpCity('get_city.php?letter=&')\">";
AND REPLACE WITH
$ret['input'] .= ">{$_lang['txt_lookup_city_more_info_or']}&nbsp;<a href=\"javascript:;\" onclick=\"OpenLookUpCity('get_city.php?letter=&')\">";

6
FIND - Line 379
$ret['input'] .= ">&nbsp;<a href=\"javascript:;\" onclick=\"OpenLookUpCity('get_zip.php?')\">";
AND REPLACE WITH
$ret['input'] .= ">&nbsp;{$_lang['txt_lookup_zip_more_info_or']}&nbsp;<a href=\"javascript:;\" onclick=\"OpenLookUpCity('get_zip.php?')\">";
/inc/design-share.inc.php
Lang cookie clean disable (bugfix)
7
FIND - Line 12
setcookie( '_lang' );
setcookie( '_lang', $_site['_lang'], time() + 10000*3600 );
AND REPLACE WITH
//setcookie( '_lang' );
setcookie( '_lang', $_site['_lang'], time() + 10000*3600, '/' );
/inc/transfer.inc.php
Lang cookie clean disable (bugfix)
8
FIND - Line 129
setcookie( '_s' );
AND REPLACE WITH
//setcookie( '_s' );
/langs/lang-English.php
Language overpatching (bugfix)
9
FIND - Line 184
'_time_unit_d'=>'day(s)',
'_to_member'=>'To',
AND AFTER IT INSERT
'_top'=>'top',

10
FIND - Line 508
'H1_ARTICLES'=>'Articles',
AND AFTER IT INSERT
'_dating_article' => 'dating article',

11
FIND - Line 581
'txt_lookup_zip' => 'Look up ZIP',
'txt_lookup_city' => 'Look up city',
'txt_input_number_on_pic' => 'Input the number on the picture',
'txt_incorr_location' => 'Your Location',
AND REPLACE WITH
'txt_lookup_zip' => 'click here to select it from the list',
'txt_lookup_zip_more_info' => 'Please enter your US ZIP',
'txt_lookup_zip_more_info_or' => 'or',
'txt_lookup_city' => 'click here to select it from the list',
'txt_lookup_city_more_info' => 'Please enter your city',
'txt_lookup_city_more_info_or' => 'or',
'txt_input_number_on_pic' => 'Input the number on the picture',
'txt_incorr_location' => 'Your Location ( Make sure you entered your city correctly or select it from the list )',

12
FIND - Line 728
'_start_again'=>'Start from the scratch (clear all fields)',
AND REPLACE WITH
'_start_again'=>'Start from scratch (clear all fields)',

13
FIND - Line 900
Many other singles sites will send your actual e-mail address to another person if you contact another member, or respond to a message they sent to you. PARTNER SITE does give you a chance to correspond with each other first before deciding if you want to give them your e-mail address. Only you can give another member your contact information. Just like in conventional dating settings such as bars, we encourage our members to take all precautions when meeting other members, or providing any private information.<br />
AND REPLACE WITH
Many other singles sites will send your actual e-mail address to another person if you contact another member, or respond to a message they sent to you. <b>'.$_site['bizname'].'</b> does give you a chance to correspond with each other first before deciding if you want to give them your e-mail address. Only you can give another member your contact information. Just like in conventional dating settings such as bars, we encourage our members to take all precautions when meeting other members, or providing any private information.<br />

14
FIND - Line 920
Under special circumstances, it may be necessary for <b>'.$_site['bizname'].'</b> to disclose private information about our members to government agencies such as law enforcement. In addition, we may report "PARTNER SITE" users to the authorities in the case of legal wrongdoing, such as attempting to use a stolen credit card.<br />
AND REPLACE WITH
Under special circumstances, it may be necessary for <b>'.$_site['bizname'].'</b> to disclose private information about our members to government agencies such as law enforcement. In addition, we may report <b>'.$_site['bizname'].'</b> users to the authorities in the case of legal wrongdoing, such as attempting to use a stolen credit card.<br />

15
FIND - Line 1092
case '_title_country_part': return "{$params['country']} Personals, {$params['country']} Dating";
AND REPLACE WITH
case '_title_country_part': return $params['country'].' Personals, '.$params['country'].' Dating';
/member/list.php
Join usability enhancement (feature)
16
FIND - Line 142
serve();
AND AFTER IT INSERT
$mysql->connect();
Last activity settings (bugfix)
17
FIND - Line 381
$mysql->connect();

$la_conf = array
(
    'la'    =>    $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='display_lastactivity'" ),
    'num'    =>    $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='num_last_act'" ),
    'asp'    =>    $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='available_search_pages'" )
);
AND REPLACE WITH
$la_conf['asp']    = $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='available_search_pages'" );

18
FIND - Line 532
    // Processing last activity settings
    switch( $la_conf['la'] )
    {
        case 'on':
            if( in_array( $p['ID'], $online_members ) )
            {
                $p['im_popup_open_js'] = im_popup_open_js( $p['Username'] );
                $p['online'] = $p['ID'];
            }
            break;

        case 'off':
            $p['LastActivity'] = 0;
            break;

        case "day":

            if( in_array( $p['ID'], $online_members ) )
            {
                $p['im_popup_open_js'] = im_popup_open_js( $p['Username'] );
                $p['online'] = $p['ID'];
            }
            else
                $p['LastActivity'] = ( ( time() - $p['LastActivity'] ) <= ( $la_conf['num'] * 86400 ) ) ? $p['LastActivity'] : 0;

            break;
    }
AND REPLACE WITH
    // Processing last activity settings
    get_prof_lastact( $p, $online_member );
Profiles view type mode (feature)
19
FIND - Line 585
if ( 'gallery' == $_GET['s_mode'] )
{
    $_page['change_view_type_label'] = $_lang['_view_as_pd'];
    $_href['change_view_type'] .= 'pd';
    $_page['view_type'] = 'gallery';
}
else
{
    $_page['change_view_type_label'] = $_lang['_view_as_pg'];
    $_href['change_view_type'] .= 'gallery';
    $_page['view_type'] = 'details';
}
AND REPLACE WITH
if ( 'details' == $_GET['s_mode'] )
{
    $_page['change_view_type_label'] = $_lang['_view_as_pg'];
    $_href['change_view_type'] .= 'gallery';
    $_page['view_type'] = 'details';
}
else
{
    $_page['change_view_type_label'] = $_lang['_view_as_pd'];
    $_href['change_view_type'] .= 'details';
    $_page['view_type'] = 'gallery';
}
/member/profile.php
Profiles view type mode (feature)
20
FIND - Line 23
serve();
AND AFTER IT INSERT
$mysql->connect();

//Explode string with online members
$online_members = (isset($data['WhoIsOnline'])) ? explode("\5", substr($data['WhoIsOnline'], 0, -1)) : array();

21
FIND - Line 55
$pr['Sex'] = $mv_fields['Sex']->values[$pr['Sex']];
AND BEFORE IT INSERT
get_prof_lastact( $pr, $online_members );

22
FIND AND DELETE - Line 66
//Explode string with online members
$online_members = (isset($data['WhoIsOnline'])) ? explode("\5", substr($data['WhoIsOnline'], 0, -1)) : array();

23
FIND AND DELETE - Line 92
// Activity info

$mysql->connect();

$la_conf = array
(
    'la'    =>    $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='display_lastactivity'" ),
    'num'    =>    $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='num_last_act'" ),
    'asp'    =>    $mysql->field( "SELECT `Value` FROM `settings_name` WHERE `Name`='available_search_pages'" )
);

24
FIND - Line 105
    switch( $la_conf['la'] )
    {
        case 'on':
            if( in_array( $p['ID'], $online_members ) )
            {
                if ( $data['Username'] != $p['Username'] )
                {
                    $p['im_popup_open_js'] = im_popup_open_js( $p['Username'] );
                }
                $p['online'] = $p['ID'];
            }
            break;

        case 'off':
            $p['LastActivity'] = 0;
            break;

        case "day":
           
            if( in_array( $p['ID'], $online_members ) )
            {
                if ( $data['Username'] != $p['Username'] )
                {
                    $p['im_popup_open_js'] = im_popup_open_js( $p['Username'] );
                }
                $p['online'] = $p['ID'];
            }
            else
                $p['LastActivity'] = ( ( time() - $p['LastActivity'] ) <= ( $la_conf['num'] * 86400 ) ) ? $p['LastActivity'] : 0;

            break;
    }
AND REPLACE WITH
get_prof_lastact( $p, $online_members );