Plugin Directory

Changeset 1169316


Ignore:
Timestamp:
05/28/2015 11:12:31 AM (11 years ago)
Author:
Free-counter
Message:

upgrade to new version 1.2
many security updates & bug fixes

Location:
free-counter
Files:
28 added
4 edited

Legend:

Unmodified
Added
Removed
  • free-counter/trunk/plugin.php

    r1168887 r1169316  
    66    * Description: <a href="http://www.free-counter.org/">Counter and statistics</a> plugin and Widget for WordPress.
    77    * Author: Free counter
    8     * Version: 1.1
     8    * Version: 1.2
    99    * Author URI: http://www.free-counter.org/
    1010    */
     
    301301            $image_hidden = get_option(_PREFIX . 'default_hidden');
    302302            $date_week = self::getWeekDates();
    303             if ($res = self::sendToServer($data)) {  
     303            if ($res = self::sendToServer($data)) { // $res = self::sendToServer($data)
    304304
    305305                if (isset($res["stat"]['all']['months'])) {
     
    356356                $data[$i][3] = $val['3']['country'];
    357357                $data[$i][4] = $val['3']['city'];
    358                 $data[$i][5] = $val['6']['name'];
     358                $data[$i][5] = $val[6]['operating_systems'];
    359359                $data[$i][6] = $val['5']['name'];
    360360                $data[$i][7] = $val['1'];
  • free-counter/trunk/readme.txt

    r1155302 r1169316  
    55Requires at least: 2.5.1
    66Tested up to: 4.2.2
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • free-counter/trunk/template/counter_style.css

    r1167017 r1169316  
    22* css www.free-counter.org
    33*/
     4.review-block {
     5    margin-top:0px;float:right; border-left:5px solid #fff; cursor: pointer;
     6    text-align: center;
     7    font-size: 16px;
     8    padding: 0px 25px;
     9}
     10.review-block .desc, .review-registr .desc {
     11    font-size: 13px;
     12}
     13.review-block .title, .review-registr .title {
     14    margin-bottom: 8px;
     15}
     16.review-registr .title {
     17    margin-top: 5px;
     18}
     19.review-registr .desc {
     20    margin-bottom: 10px;
     21}
     22.review-registr {
     23    position: absolute;
     24    right: 0;
     25    margin-top:0px; border:1px solid #2ea2cc; cursor: pointer;
     26    border-radius: 5px;
     27    background: #ffffcb;
     28    text-align: center;
     29    font-size: 16px;
     30    padding: 0px 25px;
     31    bottom: 0px;
     32    margin-right: 60px;
     33    margin-bottom : 15px;
     34    box-shadow: 0 0 7px 3px rgba(90, 202, 242, 0.9);
     35}
    436.img-counter {
    537    cursor: pointer;
     
    269301    height: auto;
    270302    overflow:hidden;
     303    position: relative;
    271304}
    272305.form-account-title {
     
    278311    float:left;
    279312    width: 40%;
     313    position: relative;
    280314}
    281315.form-account-login {
  • free-counter/trunk/template/statistic.php

    r1133589 r1169316  
    7070            </div>
    7171        </div>
     72        <div class="review-registr" style="position: absolute; right: 0;" onclick="window.open('https://wordpress.org/support/view/plugin-reviews/free-counter?filter=5')">
     73            <div class="title">Reviews & Suggestions</div>
     74            <img src="<?php echo plugins_url('/img/fiveStars.png', dirname(__FILE__) ); ?>" alt="">
     75            <div class="desc" >to help us maintain this project</div>
     76        </div>
    7277    </div>
    7378    <?php } else {
     
    7580    <div class="form-account-login">
    7681        <div class="form-account-block-login"> 
    77             <div class="inline" style="margin-top:0px;">
     82            <div class="inline" style="margin-top:14px;">
    7883                <div class="inline" style="margin-top:4px;">
    7984                    <label for="<?php echo ('email'); ?>" class="label-form">E-mail:</label>
     
    9196            </div>
    9297        </div>
     98        <div class="review-block" onclick="window.open('https://wordpress.org/support/view/plugin-reviews/free-counter?filter=5')">
     99            <div class="title">Reviews & Suggestions</div>
     100            <img src="<?php echo plugins_url('/img/fiveStars.png', dirname(__FILE__) ); ?>" alt="">
     101            <div class="desc" >to help us maintain this project</div>
     102        </div>
    93103    </div>
    94104    <?php
     
    107117                    <th class="stat">
    108118                        Today<br>
    109                         <?php echo date("j.m.y"); ?>
     119                        <?php echo date("d.m.Y"); ?>
    110120                    </th>
    111121                    <th class="stat">
     
    164174                <?php
    165175                    $count_date = 1;
    166                     $c = count($stat_chart_day);
    167                     $count_date = ceil($c/15)+1;
     176                    $c = 0;
    168177                    foreach ($stat_chart_day as $k => $v) {
    169178                        foreach($v as $m => $days) {
     179                            $c += count($days);
    170180                            foreach($days as $day => $count){
     181                                if (strlen($m) == 1) {
     182                                    $m = '0' . $m;
     183                                }
     184                                if (strlen($day) == 1) {
     185                                    $day = '0' . $day;
     186                                }
    171187                                echo "['$day.$m.$k', $count],";
     188
    172189                            }
    173190                        }
    174                 }?>
     191                    }
     192                    $count_date = ceil($c / 15);
     193                ?>
    175194                ]);
    176195                count_in_stat = '<?php echo $count_date; ?>' ;
    177196                var options = {
    178                     width: '1200',
     197                    width: '1200',                               
    179198                    height:'200',
    180199                    hAxis : {textStyle :{fontSize: 10}, showTextEvery:count_in_stat  },
    181200                    colors:["#00f20e"],
    182                     title: "Visitors User on Date"
     201                    title: "Visitors per Date"
    183202                };
    184203
     
    196215                ['Date', 'Visitor'],
    197216                <?php
     217                    $c = ceil(count($stat_chart_month) / 7) + 1;
    198218                    foreach ($stat_chart_month as $month => $days) {
    199219                        echo "['$month', $days],";
    200220                }?>
    201221                ]);
    202 
     222                count_in_month = '<?php echo $c; ?>' ;
    203223                var options = {
    204224                    width: '400',
    205225                    height:'200',
    206                     hAxis : {textStyle :{fontSize: 10}, showTextEvery: 1 },
     226                    hAxis : {textStyle :{fontSize: 10}, showTextEvery: count_in_month },
    207227                    colors: ["#00e4f2"],
    208                     title: "Visitors User on Month"
     228                    title: "Visitors per Month"
    209229                };
    210230
     
    222242                ['Date', 'Visitor'],
    223243                <?php
    224                     foreach ($stat_chart_week as $days) {
    225 
    226                         echo "['{$days['date']}', {$days['stat']}],";
    227 
     244                    foreach ($stat_chart_week as $days => $c) {
     245                        echo "['{$days}', {$c}],";
    228246                }?>
    229247                ]);
     
    232250                    width: '650',
    233251                    height:'200',
    234                     hAxis : {textStyle :{fontSize: 10}, showTextEvery: 1 },
     252                    hAxis : {textStyle :{fontSize: 10}, showTextEvery: 1, slantedTextAngle: '20',slantedText:true },
    235253                    colors: ["#00e4f2"],
    236                     title: "Visitors User on Week"
     254                    title: "Visitors per Week"
    237255                };
    238256
     
    511529                            </td>
    512530                            <td class="stat">
    513                                 <img src="<?php echo IMG . $value[6]['img']; ?>" alt="<?php echo($value[6]['name']); ?>" title="<?php echo($value[6]['name']); ?>">
     531                                <?php $os_name = isset($value[6]['operating_systems']) ? $value[6]['operating_systems'] : ""; ?>
     532                                <img src="<?php echo IMG . $value[6]['img']; ?>" alt="<?php echo $os_name; ?>" title="<?php echo $os_name; ?>">
    514533                            </td>
    515534                            <td class="stat">
    516                                 <img src="<?php echo SERVER_URL_VISIT . $value[5]['img']?>" title="<?php echo $value[5]['name']; ?>" alt="<?php echo $value[5]['name']; ?>">
     535                                <img src="<?php echo IMG . $value[5]['img']?>" title="<?php echo $value[5]['name']; ?>" alt="<?php echo $value[5]['name']; ?>">
    517536                            </td>
    518537                            <td class="stat">
     
    580599                                                ?>
    581600                                            </td>
    582                                              
     601
    583602                                        </tr>
    584603                                        <tr>
    585604                                            <td align="left">System</td>
    586605                                            <td align="left">
    587                                                 <img src="<?php echo IMG . $value[6]['img']; ?>" alt="<?php echo($value[6]['name']); ?>" title="<?php echo($value[6]['name']); ?>">  <?php echo($value[6]['name']); ?>
     606                                                <?php $os_name = isset($value[6]['operating_systems']) ? $value[6]['operating_systems'] : ""; ?> 
     607                                                <img src="<?php echo IMG . $value[6]['img']; ?>" alt="<?php echo($os_name); ?>" title="<?php echo($os_name); ?>">  <?php echo($os_name); ?>
    588608                                            </td>
    589609                                            <td align="left">Possible text-query</td>
     
    593613                                            <td align="left">Browser</td>
    594614                                            <td align="left">
    595                                                 <img src="<?php echo  SERVER_URL_VISIT . $value[5]['img']?>" title="<?php echo $value[5]['name']; ?>" alt="<?php echo $value[5]['name']; ?>"> <?php echo str_replace("Browser ", "", $value[5]['name']); ?>
     615                                                <img src="<?php echo  IMG . $value[5]['img']?>" title="<?php echo $value[5]['name']; ?>" alt="<?php echo $value[5]['name']; ?>"> <?php echo str_replace("Browser ", "", $value[5]['name']); ?>
    596616                                            </td>
    597617                                            <td colspan="2"></td>
Note: See TracChangeset for help on using the changeset viewer.