diff options
author | prashantsinalkar | 2019-02-22 15:28:58 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-02-22 15:28:58 +0530 |
commit | 05ba8502aadddab8be37b42fec21459730bc1014 (patch) | |
tree | cbc04275efc5bce18666961c0a1e9c2bcb5a458a /static | |
parent | 2b90cf2c2a9c290c4799fbb3a9ca0382aadb28b7 (diff) | |
download | pyfoss-05ba8502aadddab8be37b42fec21459730bc1014.tar.gz pyfoss-05ba8502aadddab8be37b42fec21459730bc1014.tar.bz2 pyfoss-05ba8502aadddab8be37b42fec21459730bc1014.zip |
updated the website to django 2.1.7
Diffstat (limited to 'static')
-rw-r--r-- | static/awstats/awstats.php | 84 | ||||
-rw-r--r-- | static/awstats/class.awfile.php | 221 | ||||
-rw-r--r-- | static/downloads/python-brochure.pdf | bin | 0 -> 1071998 bytes | |||
-rw-r--r-- | static/downloads/python-on-aakash.pdf | bin | 0 -> 367684 bytes | |||
-rw-r--r-- | static/downloads/python_brochure.pdf | bin | 0 -> 1430199 bytes | |||
-rw-r--r-- | static/googlea136fab197943ab1.html | 1 | ||||
-rw-r--r-- | static/sitemap.temp.xml | 1 | ||||
-rw-r--r-- | static/sitemap.xml | 1 | ||||
-rw-r--r-- | static/website/templates/custom.css | 0 | ||||
-rw-r--r-- | static/website/templates/page.html | 71 |
10 files changed, 325 insertions, 54 deletions
diff --git a/static/awstats/awstats.php b/static/awstats/awstats.php new file mode 100644 index 0000000..cb3a707 --- /dev/null +++ b/static/awstats/awstats.php @@ -0,0 +1,84 @@ +<?php +/** +* Copyright (c) 2005 - Javier Infante +* All rights reserved. This program and the accompanying materials +* are made available under the terms of the +* GNU General Public License (GPL) Version 2, June 1991, +* which accompanies this distribution, and is available at: +* http://www.opensource.org/licenses/gpl-license.php +* +* Description: Example of usage of class.awfile.php +* +* Author: Javier Infante (original author) +* Email: jabi (at) irontec (dot) com +**/ + require("class.awfile.php"); + + $unique_visit = 0; + $total_visit = 0; + $page_loads = 0; + // Path to the AWSTATS DATA FILE + for($i=1;$i<=12;$i++){ + for($j=2013;$j<=2015;$j++){ + $file = '/var/lib/awstats/awstats'.$i.$j.'.python.fossee.in.txt'; + if($i < 10){ + $file = '/var/lib/awstats/awstats0'.$i.$j.'.python.fossee.in.txt'; + } + if(file_exists($file)){ + $aw = new awfile($file); + if ($aw->Error()) die($aw->GetError()); + $total_visit += $aw->GetVisits(); + $unique_visit += $aw->GetUniqueVisits(); + // echo "<b> Unique</b>" . $unique_visit . "<br>"; + foreach ($aw->GetDays() as $day=>$pages) + $page_loads += $pages; + + } + } + } + $output = array('unique_visit' => $unique_visit, 'total_visit' => $total_visit, 'total_page_loads' => $page_loads); +// var_dump($output); + echo json_encode($output); + return $output; +/* + $aw = new awfile($file); + if ($aw->Error()) die($aw->GetError()); + + echo "<strong>Showing contents [".$file."]</strong><br />"; + + echo "The site first visit in the month: ".$aw->GetFirstVisit()."<br /><br />"; + echo "Total visits this month: ".$aw->GetVisits()."<br /><br />"; + echo "Total unique visits this month: ".$aw->GetUniqueVisits()."<br /><br />"; + /*echo "Pages viewed / hours:<br />"; + foreach ($aw->GetHours() as $hour=>$pages) + echo " <em>".str_pad($hour, 2, "0", STR_PAD_LEFT).": ".$pages." pages viewed.</em><br />"; + + echo "Pages viewed / days:<br />"; + foreach ($aw->GetDays() as $day=>$pages) + echo " <em>".$day.": ".$pages." pages viewed.</em><br />"; + echo "<br />"; + + $betterDay = $aw->GetBetterDay(); + echo "The day with more visitors(".$betterDay[1].") was the ".$betterDay[0].".<br /><br />"; + + echo "hits / os:<br />"; + foreach ($aw->GetOs() as $os=>$hits) + echo " <em>".$os.": ".$hits." hits.</em><br />"; + echo "<br />"; + + echo "hits / browser:<br />"; + foreach ($aw->GetBrowser() as $browser=>$hits) + echo " <em>".$browser.": ".$hits." hits.</em><br />"; + echo "<br />"; + + echo "Distinct Referers:<br />"; + foreach ($aw->GetReferers() as $referer=>$hits) + echo " <em>".$referer.": ".$hits." hits.</em><br />"; + echo "<br />"; + + echo "Visits / Session Ranges:<br />"; + foreach ($aw->GetRanges() as $range=>$visits) + echo " <em>".$range.": ".$visits." visits.</em><br />"; + echo "<br />";*/ + +?> diff --git a/static/awstats/class.awfile.php b/static/awstats/class.awfile.php new file mode 100644 index 0000000..79ed4d0 --- /dev/null +++ b/static/awstats/class.awfile.php @@ -0,0 +1,221 @@ +<?php +/** +* Copyright (c) 2005 - Javier Infante +* All rights reserved. This program and the accompanying materials +* are made available under the terms of the +* GNU General Public License (GPL) Version 2, June 1991, +* which accompanies this distribution, and is available at: +* http://www.opensource.org/licenses/gpl-license.php +* +* Description: Simple class that parses into simple PPH arrays +* access information to a site, from a AWSTATS DATA FILE. +* This file is found as "awstatsMMYYYY.example.com.txt" commonly +* in shared servers or others. +* The information recieved is quite limited (as much as i needed so far). +* +* Name of the class: awfile +* Version: 0.1 +* Author: Javier Infante (original author) +* Email: jabi (at) irontec (dot) com +**/ + +class awfile { + var $fich; + var $first_visit; + var $visits; + var $uniquevisits; + var $aHours = array(); + var $aDays = array(); + var $aOs = array(); + var $aBrowser = array(); + var $aReferers = array(); + var $aRange = array(); + var $aSections = array(); + var $error = false; + var $ErrorStr = array( + 1=>"file not found.", + 2=>"File not readable"); + var $_positions = array( + "POS_GENERAL"=>0, + "POS_TIME"=>0, + "POS_OS"=>0, + "POS_BROWSER"=>0, + "POS_PAGEREFS"=>0, + "POS_DAY"=>0, + "POS_SESSION"=>0, + "POS_SIDER"=>0); + + function awfile($fich) { + if (!file_exists($fich)) + $this->error = 1; + else { + $this->fich = $fich; + $this->__proc(); + } + } + + function __proc() { + if (!$fd = fopen($this->fich,"r")) + $this->error = 2; + else { + + do { + $str = trim(fgets($fd)); + if ($str{0} ==" ") continue; + + list($elem,$pos) = explode(" ",$str); + if (isset($this->_positions[$elem])) + $this->_positions[$elem] = $pos; + else continue; + } while ($str!="END_MAP"); + + + fseek($fd,$this->_positions["POS_GENERAL"]); + list(,$n) = explode(" ",trim(fgets($fd))); + $pendientes = 3; + while ($n>0) { + list($elem,$num) = explode(" ",trim(fgets($fd))); + switch($elem) { + case "FirstTime": + $this->first_visit = $num; + $pendientes--; + break; + case "TotalVisits": + $this->visits = $num; + $pendientes--; + break; + + case "TotalUnique": + $this->uniquevisits = $num; + $pendientes--; + break; + default: continue; + } + if ($pendientes==0) break; + $n--; + } + + + fseek($fd,$this->_positions["POS_TIME"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,$num,,,,,) = explode(" ",trim(fgets($fd))); + $this->aHours[$elem] = $num; + $n--; + } + + fseek($fd,$this->_positions["POS_OS"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,$num) = explode(" ",trim(fgets($fd))); + $this->aOs[$elem] = $num; + $n--; + } + + fseek($fd,$this->_positions["POS_BROWSER"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,$num) = explode(" ",trim(fgets($fd))); + $this->aBrowser[$elem] = $num; + $n--; + } + + fseek($fd,$this->_positions["POS_PAGEREFS"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,$num,) = explode(" ",trim(fgets($fd))); + $this->aReferes[$elem] = $num; + $n--; + } + + fseek($fd,$this->_positions["POS_DAY"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,,,,$num) = explode(" ",trim(fgets($fd))); + $this->aDays[$elem] = $num; + $n--; + } + + fseek($fd,$this->_positions["POS_SESSION"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,$num) = explode(" ",trim(fgets($fd))); + $this->aRange[$elem] = $num; + $n--; + } + + fseek($fd,$this->_positions["POS_SIDER"]); + list(,$n) = explode(" ",trim(fgets($fd))); + while ($n>0) { + list($elem,$num,,,) = explode(" ",trim(fgets($fd))); + $this->aSections[$elem] = $num; + $n--; + } + + } + + } + + + function GetFirstVisit() { + return $this->first_visit; + } + + function GetVisits() { + return $this->visits; + } + + function GetUniqueVisits() { + return $this->uniquevisits; + } + + function GetHours() { + return $this->aHours; + } + + function GetDays() { + return $this->aHours; + } + + function GetOs() { + return $this->aOs; + } + + function GetBrowser() { + return $this->aBrowser; + } + + function GetReferers() { + return $this->aReferes; + } + + function GetRanges() { + return $this->aRange; + } + + function GetSections() { + return $this->aSections; + } + + function Error() { + return $this->error; + } + + function GetError() { + return $this->ErrorStr[$this->error]; + } + + function GetBetterDay() { + $max = 0; + foreach ($this->aDays as $day => $num) { + if ($num>$max) { + $max = $num; + $date = $day; + } + } + return array($date,$max); + } + +} + +?> diff --git a/static/downloads/python-brochure.pdf b/static/downloads/python-brochure.pdf Binary files differnew file mode 100644 index 0000000..34f19d5 --- /dev/null +++ b/static/downloads/python-brochure.pdf diff --git a/static/downloads/python-on-aakash.pdf b/static/downloads/python-on-aakash.pdf Binary files differnew file mode 100644 index 0000000..f697a32 --- /dev/null +++ b/static/downloads/python-on-aakash.pdf diff --git a/static/downloads/python_brochure.pdf b/static/downloads/python_brochure.pdf Binary files differnew file mode 100644 index 0000000..bb9153e --- /dev/null +++ b/static/downloads/python_brochure.pdf diff --git a/static/googlea136fab197943ab1.html b/static/googlea136fab197943ab1.html new file mode 100644 index 0000000..0bfce43 --- /dev/null +++ b/static/googlea136fab197943ab1.html @@ -0,0 +1 @@ +google-site-verification: googlea136fab197943ab1.html
\ No newline at end of file diff --git a/static/sitemap.temp.xml b/static/sitemap.temp.xml new file mode 100644 index 0000000..c99e28a --- /dev/null +++ b/static/sitemap.temp.xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://python.fossee.in/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/brochures/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/spoken-tutorials/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/contact-us/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/fellowship2019/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/textbook-companions-for-academics/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/self_learningcourse/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/gallery/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-one.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-two.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-three.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-four.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/1/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/about/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/home/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/textbook-companion-project/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>http://python.fossee.in/static/website/templates/sample.html</loc><lastmod>2014-07-08T09:14:27+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/3</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/2</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>http://python.fossee.in/spoken-tutorials/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/1</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/python-workshops/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url></urlset>
\ No newline at end of file diff --git a/static/sitemap.xml b/static/sitemap.xml new file mode 100644 index 0000000..c99e28a --- /dev/null +++ b/static/sitemap.xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://python.fossee.in/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/brochures/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/spoken-tutorials/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/contact-us/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/fellowship2019/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/textbook-companions-for-academics/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/self_learningcourse/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/gallery/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-one.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-two.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-three.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/static/website/images/scipy-2011-four.jpg</loc><lastmod>2013-12-02T10:53:49+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/1/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/about/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/home/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/textbook-companion-project/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>http://python.fossee.in/static/website/templates/sample.html</loc><lastmod>2014-07-08T09:14:27+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/3</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/2</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>http://python.fossee.in/spoken-tutorials/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/testimonials/1</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url><url><loc>https://python.fossee.in/python-workshops/</loc><lastmod>1970-01-01T05:30:00+07:00</lastmod></url></urlset>
\ No newline at end of file diff --git a/static/website/templates/custom.css b/static/website/templates/custom.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/website/templates/custom.css diff --git a/static/website/templates/page.html b/static/website/templates/page.html index 4b54940..d412593 100644 --- a/static/website/templates/page.html +++ b/static/website/templates/page.html @@ -17,14 +17,13 @@ <script type="text/javascript" src="https://fossee.in/data/banner/js/nice-bar.js"></script> {% if permalink == 'home'%} - -<!--<div class="nice-bar"> +<div class="nice-bar"> <center> -<a class="nice-text" href="https://docs.google.com/forms/d/e/1FAIpQLSfMg5E9EauODDxgsP1j67FK6MsESNp7qi4kN2VnrEAm57IznA/viewform" target="_blank"> <img src="http://fossee.in/data/banner/images/OM_webbnr3.png" > </a> - </center> - -</div>--> - +<a href="https://fossee.in/fellowship/2019" target="_blank"> <img src="https://static.fossee.in/fossee/banners/fellowship_2019_3.gif"></a> +</center> +</div> +<!--<h4 style="width:100%;text-align:center;color:red;font-weight:bold;">Koha Library Management System Workshop in IIT Bombay | 4 August 2018. For more details <a href="https://www.it.iitb.ac.in/lakshya/workshopContent.html?workshopid=ouNj7Y0p5jvaDS39PBjLPg" target="_blank" style="color:#1982d1">Click Here</a></h4> +--> {% endif %} <div id="page-wrapper"> {% block page %} @@ -146,7 +145,7 @@ <td>{{ b.startdate }}</td> <td>{{ b.venue }}</td> <td>{{ b.no_of_participant }}</td> - <td><a href="http://fossee.in/events/view_details/{{ b.w_id }}" target="_blank">Details</a></td> + <td><a href="https://fossee.in/events/view_details/{{ b.w_id }}" target="_blank">Details</a></td> </tr> {% endfor %} </tbody> @@ -155,51 +154,7 @@ </div> </div> </div> - </div> - {% elif permalink == 'textbook-companions-for-academics' %} - <div id="content" class="col-lg-10 col-md-10 col-sm-10"> - - <h3>Textbook Companions (TBC) for Academics </h3> - <br> - <p> - {% if page.content %} - {{ page.content|safe }} - {% endif %} - </p> - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapsestats"> - List of completed books - </a> - </h4> - </div> - <div id="collapsestats" class="panel-collapse collapse"> - <div class="panel-body"> - <p> - <table id= "tbctable" class="tablesorter table table table-striped table-hover"> - <thead> - <tr> - <th>Sr No.</th> - <th>Book</th> - - </tr> - </thead> - <tbody> - {% for b in obj %} - <tr> - <td>{{ forloop.counter }}</td> - <td><a href="http://tbc-python.fossee.in/book-details/{{ b.id }}" target="_blank">{{ b.title }} by {{ b.author }}</a></td> - </tr> - {% endfor %} - </tbody> - </table> - </p> - </div> - </div> - </div> - </div> - <!-- /content --> + </div> <!-- /content --> {% else %} <div id="content" class="col-lg-10 col-md-10 col-sm-10"> <h3>{{ page.heading }} </h3> @@ -295,7 +250,15 @@ ga('create', 'UA-60190813-1', 'auto'); ga('send', 'pageview'); +//Lee +//var secondTracker = _gat._getTracker("UA-20817855-1"); +//secondTracker._initData(); +//secondTracker._trackPageview(); + + ga('create', 'UA-20817855-1', 'auto' , 'clientTracker'); + ga('clientTracker.send', 'pageview'); +//Lee End </script> <noscript><p><img src="https://analytics.spoken-tutorial.org/piwik.php?idsite=14" style="border:0;" alt="" /></p></noscript> <!-- End Piwik Code --> @@ -303,7 +266,7 @@ <script type="text/javascript"> $(document).ready(function() { - $("#tbctable").tablesorter(); + $("#statstable").tablesorter(); } ); </script> |