Changeset 847230
- Timestamp:
- 01/28/2014 08:20:41 PM (12 years ago)
- Location:
- adkingpro
- Files:
-
- 94 added
- 3 edited
-
tags/1.9.10 (added)
-
tags/1.9.10/adkingpro.php (added)
-
tags/1.9.10/css (added)
-
tags/1.9.10/css/adkingpro-styles.css (added)
-
tags/1.9.10/css/dynamic.css.php (added)
-
tags/1.9.10/css/font-awesome.min.css (added)
-
tags/1.9.10/css/jquery-ui.css (added)
-
tags/1.9.10/fonts (added)
-
tags/1.9.10/fonts/FontAwesome.otf (added)
-
tags/1.9.10/fonts/fontawesome-webfont.eot (added)
-
tags/1.9.10/fonts/fontawesome-webfont.svg (added)
-
tags/1.9.10/fonts/fontawesome-webfont.ttf (added)
-
tags/1.9.10/fonts/fontawesome-webfont.woff (added)
-
tags/1.9.10/images (added)
-
tags/1.9.10/images/ajax-loader.gif (added)
-
tags/1.9.10/images/akp-icon_16x16.png (added)
-
tags/1.9.10/images/akp-icon_16x16_sat.png (added)
-
tags/1.9.10/images/akp-icon_32x32.png (added)
-
tags/1.9.10/images/akp-icon_32x32_sat.png (added)
-
tags/1.9.10/images/kpp-icon_16x16.png (added)
-
tags/1.9.10/images/kpp-icon_16x16_sat.png (added)
-
tags/1.9.10/images/kpp-icon_32x32.png (added)
-
tags/1.9.10/images/kpp-icon_32x32_sat.png (added)
-
tags/1.9.10/images/kpp_akp.jpg (added)
-
tags/1.9.10/images/kpp_dkp.jpg (added)
-
tags/1.9.10/images/kpp_invkp.jpg (added)
-
tags/1.9.10/images/kpp_relkp.jpg (added)
-
tags/1.9.10/images/kpp_rsskp.jpg (added)
-
tags/1.9.10/images/kpp_smtpkp.jpg (added)
-
tags/1.9.10/images/minus_icon.png (added)
-
tags/1.9.10/images/plus-icon.gif (added)
-
tags/1.9.10/images/plus_icon.png (added)
-
tags/1.9.10/includes (added)
-
tags/1.9.10/includes/admin_area.php (added)
-
tags/1.9.10/includes/install.php (added)
-
tags/1.9.10/includes/output.php (added)
-
tags/1.9.10/includes/screens (added)
-
tags/1.9.10/includes/screens/detailed.php (added)
-
tags/1.9.10/includes/screens/kpp.php (added)
-
tags/1.9.10/includes/screens/settings.php (added)
-
tags/1.9.10/includes/widget.php (added)
-
tags/1.9.10/js (added)
-
tags/1.9.10/js/adkingpro-admin-functions.js (added)
-
tags/1.9.10/js/adkingpro-functions.js (added)
-
tags/1.9.10/js/adkingpro-js.php (added)
-
tags/1.9.10/js/jquery.jshowoff.js (added)
-
tags/1.9.10/languages (added)
-
tags/1.9.10/languages/adkingpro.pot (added)
-
tags/1.9.10/languages/es_ES.mo (added)
-
tags/1.9.10/languages/es_ES.po.pot (added)
-
tags/1.9.10/outputs (added)
-
tags/1.9.10/packages (added)
-
tags/1.9.10/packages/fpdf (added)
-
tags/1.9.10/packages/fpdf/font (added)
-
tags/1.9.10/packages/fpdf/font/courier.php (added)
-
tags/1.9.10/packages/fpdf/font/helvetica.php (added)
-
tags/1.9.10/packages/fpdf/font/helveticab.php (added)
-
tags/1.9.10/packages/fpdf/font/helveticabi.php (added)
-
tags/1.9.10/packages/fpdf/font/helveticai.php (added)
-
tags/1.9.10/packages/fpdf/font/makefont (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1250.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1251.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1252.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1253.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1254.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1255.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1257.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp1258.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/cp874.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-1.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-11.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-15.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-16.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-2.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-4.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-5.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-7.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/iso-8859-9.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/koi8-r.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/koi8-u.map (added)
-
tags/1.9.10/packages/fpdf/font/makefont/makefont.php (added)
-
tags/1.9.10/packages/fpdf/font/symbol.php (added)
-
tags/1.9.10/packages/fpdf/font/times.php (added)
-
tags/1.9.10/packages/fpdf/font/timesb.php (added)
-
tags/1.9.10/packages/fpdf/font/timesbi.php (added)
-
tags/1.9.10/packages/fpdf/font/timesi.php (added)
-
tags/1.9.10/packages/fpdf/font/zapfdingbats.php (added)
-
tags/1.9.10/packages/fpdf/fpdf.php (added)
-
tags/1.9.10/readme.txt (added)
-
tags/1.9.10/themes (added)
-
tags/1.9.10/themes/default (added)
-
tags/1.9.10/themes/default/pdf.php (added)
-
tags/1.9.10/themes/no-image (added)
-
tags/1.9.10/themes/no-image/pdf.php (added)
-
trunk/adkingpro.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/themes/default/pdf.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
adkingpro/trunk/adkingpro.php
r818427 r847230 4 4 Plugin URI: http://kingpro.me/plugins/ad-king-pro/ 5 5 Description: Ad King Pro allows you to manage, display, document and report all of your custom advertising on your wordpress site. 6 Version: 1.9. 96 Version: 1.9.10 7 7 Author: Ash Durham 8 8 Author URI: http://durham.net.au/ … … 29 29 30 30 global $akp_db_version; 31 $akp_db_version = "1.9. 9";31 $akp_db_version = "1.9.10"; 32 32 33 33 function akp_install() { -
adkingpro/trunk/readme.txt
r818427 r847230 4 4 Tags: advertising, ads, ad, adverts, advert, advertisements, advertisement, advertise, stats, stat, statistics, statistic, promotions, promotion, banners, banner, tracking, track, detailed, adkingpro, ad king pro, page, post, reporting, reports, report, csv, pdf, revenue, charge, money, theme, themes, flash, adsense, text, resize, rotate, slideshow, multiple 5 5 Requires at least: 3.0.1 6 Tested up to: 3. 7.17 Stable tag: 1.9. 96 Tested up to: 3.8 7 Stable tag: 1.9.10 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 131 131 == Changelog == 132 132 133 = 1.9.10 = 134 * Fix to report PDF when generating for text advert 135 133 136 = 1.9.9 = 134 137 * Updated Spanish translation … … 234 237 == Upgrade Notice == 235 238 239 = 1.9.10 = 240 * Fix to report PDF when generating for text advert 241 236 242 = 1.9.9 = 237 243 * Updated Spanish translation -
adkingpro/trunk/themes/default/pdf.php
r721782 r847230 3 3 $pdf->AliasNbPages(); 4 4 $pdf->AddPage(); 5 6 $image_url = str_replace('http://'.$_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $image); 7 if (file_exists($image_url)) { 8 $imagesize = getimagesize($image_url); 9 $imagesize[0] = ($imagesize[0] * 25.4) / 72; 10 $imagesize[1] = ($imagesize[1] * 25.4) / 72; 11 $imw = 190; 12 $imh = 20; 13 if ($imagesize[0] > $imagesize[1]) { 14 if ($imagesize[0] > 190) { 15 $wpc = 190 / $imagesize[0]; 16 $imh = $imagesize[1] * $wpc; 17 } else { 18 $imh = $imagesize[1]; 19 $imw = $imagesize[0]; 20 } 21 } else { 22 if ($imagesize[1] > 20) { 23 $wph = 20 / $imagesize[1]; 24 $imw = $imagesize[0] * $wph; 25 } else { 26 $imh = $imagesize[1]; 27 $imw = $imagesize[0]; 28 } 29 } 5 30 6 $imagesize = getimagesize(str_replace('http://'.$_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $image)); 7 $imagesize[0] = ($imagesize[0] * 25.4) / 72; 8 $imagesize[1] = ($imagesize[1] * 25.4) / 72; 9 $imw = 190; 10 $imh = 20; 11 if ($imagesize[0] > $imagesize[1]) { 12 if ($imagesize[0] > 190) { 13 $wpc = 190 / $imagesize[0]; 14 $imh = $imagesize[1] * $wpc; 15 } else { 16 $imh = $imagesize[1]; 17 $imw = $imagesize[0]; 18 } 19 } else { 20 if ($imagesize[1] > 20) { 21 $wph = 20 / $imagesize[1]; 22 $imw = $imagesize[0] * $wph; 23 } else { 24 $imh = $imagesize[1]; 25 $imw = $imagesize[0]; 26 } 31 $pdf->Image(str_replace('http://'.$_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $image), 10, 6, $imw, $imh); 27 32 } 28 29 $pdf->Image(str_replace('http://'.$_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $image), 10, 6, $imw, $imh); 30 33 31 34 $pdf->SetX(15); $pdf->SetY($pdf->GetY()+ $imh + 5); 32 35 $pdf->SetFont('Arial','BU',10);
Note: See TracChangeset
for help on using the changeset viewer.