Esempio n. 1
0
 function ep0($text)
 {
     $return = $this->getword($text);
     if (substr($return, 0, 3) == '<p>') {
         WRA::e(substr($return, 3, strlen($return) - 7));
     } else {
         WRA::e($return);
     }
 }
Esempio n. 2
0
    function run()
    {
        parent::run();
        if ($_REQUEST['oauth_token']) {
            $connection = new TwitterOAuth(WRA_CONF::$twiappid, WRA_CONF::$twiappsecret, $_REQUEST['oauth_token'], $_REQUEST['oauth_verifier']);
            $token_credentials = $connection->getAccessToken($_REQUEST['oauth_verifier']);
            $connection = new TwitterOAuth(WRA_CONF::$twiappid, WRA_CONF::$twiappsecret, $token_credentials['oauth_token'], $token_credentials['oauth_token_secret']);
            $account = $connection->get('account/verify_credentials');
            // WRA::debug($ctwe);
            if ($account) {
                // WRA::debug($user);
                $nu = new wra_twu();
                $nu->display_name = htmlspecialchars($account->screen_name, ENT_QUOTES);
                //$user->name;
                $nu->regdate = WRA::getcurtime();
                $nu->twuserid = $account->id;
                // $nu->userid = $usr;
                $nu->username = htmlspecialchars($account->name, ENT_QUOTES);
                $nu->usersurname = htmlspecialchars($user['last_name'], ENT_QUOTES);
                $nu->link = $account->url;
                //$user->link;
                $nu->user_agent = wra_fbu::getbrowser();
                $nu->access_token = $token_credentials['oauth_token'];
                $nu->email = $token_credentials['oauth_token_secret'];
                $nu->photo = $account->profile_image_url;
                if ($account->notifications) {
                    $nu->gender = 0;
                } else {
                    $nu->gender = 1;
                }
                $nu->phone = '';
                if (!empty($nu->twuserid)) {
                    if (!wra_twu::istwexist($nu->twuserid)) {
                        $nu->userid = $this->addUsr($nu->username, $nu->usersurname, $nu->phone, $nu->email, "asdf" . time(), $nu->photo);
                        $nu->add();
                    } else {
                        $nu->loadbytw($nu->twuserid);
                        $nu->update();
                    }
                    wra_twu::twd($nu->twuserid, $nu->userid);
                }
                if (empty($_SESSION['lastpage'])) {
                    WRA::gotopage(WRA::base_url() . '?from=tw&show=no');
                } else {
                    WRA::gotopage(WRA::base_url() . $_SESSION['lastpage']);
                }
                $_SESSION['lastpage'] = '';
            }
        } else {
            ?>
<a href="<?php 
            WRA::e(wra_twitter::loginLink());
            ?>
">login</a><?php 
        }
    }
Esempio n. 3
0
 static function JwallPost($wall_id, $message, $access_token)
 {
     $message = urlencode($message);
     WRA::e('
         <script>
             VK.Api.call("wall.post", {owner_id: ' . $wall_id . ',"message": "' . $message . '","access_token":"' . $access_token . '"}, onComplete);
         </script>
         ');
     // VK.api("wall.post", { owner_id:uid, message:'123', attachment:'http://vkontakte.ru/xxxxxxx'}, onComplete);
 }
Esempio n. 4
0
 function flushform()
 {
     $merchant_id = WRA_CONF::$liqpaymerchantid;
     $this->merchant_id = $merchant_id;
     $signature = WRA_CONF::$liqpaypassword;
     $url = "https://www.liqpay.com/?do=clickNbuy";
     $xml = "<request>      \n\t\t<version>" . $this->version . "</version>\n\t\t<result_url>" . $this->result_url . "</result_url>\n\t\t<server_url>{$this->server_url}</server_url>\n\t\t<merchant_id>{$merchant_id}</merchant_id>\n\t\t<order_id>{$this->id}</order_id>\n                <goods_id>{$this->goods_id}</goods_id>\n\t\t<amount>{$this->amount}</amount>\n\t\t<currency>{$this->currency}</currency>\n\t\t<description>{$this->description}</description>\n\t\t<default_phone>{$this->phone}</default_phone>\n\t\t<pay_way>{$this->method}</pay_way> \n\t\t</request>\n\t\t";
     $xml_encoded = base64_encode($xml);
     $lqsignature = base64_encode(sha1($signature . $xml . $signature, 1));
     WRA::e("<form action='{$url}' method='POST' id='frmliqpay' name='frmliqpay'>\n                <input type='hidden' name='operation_xml' value='{$xml_encoded}' />\n                <input type='hidden' name='signature' value='{$lqsignature}' />\n                    <input type='submit' value='Pay Now' style='position:absolute;left:50%;top:50%'/>\n                    </form>\n                    <script>\n                        frmliqpay.submit();\n                    </script>\n                    ");
 }
Esempio n. 5
0
    function show()
    {
        $cache0 = new wra_cacheflow('sitemap', true);
        if ($cache0->begin()) {
            $this->items = wra_foursqvenues::get_listall();
            WRA::e('<?');
            ?>
xml version="1.0" encoding="UTF-8"<?php 
            WRA::e('?>');
            ?>

<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
      <loc><?php 
            WRA::e(WRA::base_url());
            ?>
</loc>
      <changefreq>hourly</changefreq>
  </url>
    <url>
      <loc><?php 
            WRA::e(WRA::base_url());
            ?>
history</loc>
      <changefreq>hourly</changefreq>
  </url>
<?php 
            foreach ($this->items as $a0) {
                ?>
  <url>
      <loc><?php 
                WRA::e($a0->getlink());
                ?>
</loc>
      <changefreq>yearly</changefreq>
  </url>
<?php 
            }
            ?>
  
</urlset><?php 
        }
        $cache0->end();
    }
Esempio n. 6
0
 function end($returning = false)
 {
     if ($this->writethis) {
         $this->content = ob_get_contents();
         ob_clean();
         WRA::writeCache($this->content, $this->name);
     }
     if ($this->cacheon) {
         ob_end_clean();
         if (!$returning) {
             WRA::e($this->content);
             unset($this->content);
         } else {
             return $this->content;
         }
     }
 }
Esempio n. 7
0
 function catcherror()
 {
     // try{
     $this->error = mysql_errno($this->connection) . ":" . mysql_error($this->connection);
     // echo '<pre>';
     // print_r( debug_backtrace());
     // echo '</pre>';
     //}catch (Exception $e) {
     // }
     if ($this->error == "0:") {
         $this->error = "";
     }
     if ($this->error != "") {
         // WRA::e( "<br/><font style='font-size:10pt'>" . $this->query . "</font><br/>");
         if (WRA_CONF::$usedebug) {
             WRA::e($this->error . '<br/>' . $this->query);
         }
         //      var_dump(debug_backtrace());
         $this->close();
     }
 }
Esempio n. 8
0
function flushpage($currentlink, $cap)
{
    $topmenu = wra_adminmenu::getlist0();
    ?>
<div class="block_main_content_cn">
    <?php 
    foreach ($topmenu as $t0) {
        if ($t0->showmain) {
            ?>
      	    	<div>
    	    <h1><span><?php 
            WRA::e($t0->name);
            ?>
</span></h1>
            <ul>
            <?php 
            $level1 = wra_adminmenu::getlist1($t0->id);
            foreach ($level1 as $t1) {
                ?>
            <li><a href="<?php 
                WRA::e($t1->link);
                ?>
"><?php 
                WRA::e($t1->name);
                ?>
</a></li>
            <?php 
            }
            ?>
            </ul>
            </div>
    
    <?php 
        }
    }
    ?>
 </div><?php 
}
Esempio n. 9
0
    ?>
<option <?php 
    if ($i == date('j', time())) {
        ?>
selected="selected"<?php 
    }
    ?>
 value="<?php 
    if ($i < 10) {
        WRA::e($i);
    } else {
        WRA::e($i);
    }
    ?>
"><?php 
    WRA::e($i);
    ?>
</option>     <?php 
}
if (false) {
    ?>
<option value="t2">22 </option>
<option value="t3">23</option>
<option value="t4">24</option> <?php 
}
?>
</select>
        </div>
 
    <?php 
if (false) {
Esempio n. 10
0
"/></td></tr>
<tr><td></td><td class="td_info td_info_1">Linked In</td><td><input type="text" id="txtcontactlin" name="txtcontactlin"  value="<?php 
    WRA::e($this->wf->options['contactlin']);
    ?>
"/></td></tr>
<tr><td></td><td class="td_info td_info_1">Twitter</td><td><input type="text" id="txtcontacttwi" name="txtcontacttwi"  value="<?php 
    WRA::e($this->wf->options['contacttwi']);
    ?>
" /></td></tr>
<tr><td></td><td class="td_info td_info_1">Google Plus</td><td><input type="text" id="txtcontactgp" name="txtcontactgp"  value="<?php 
    WRA::e($this->wf->options['contactgp']);
    ?>
"/></td></tr>
<tr><td></td><td class="td_info td_info_1">YouTube</td><td><input type="text" id="txtcontactytb" name="txtcontactytb"  value="<?php 
    WRA::e($this->wf->options['contactytb']);
    ?>
"/></td></tr>

<tr ><td></td><td class="td_info td_info_1">Код Яндекс-метрики</td><td><textarea  id="txtyametrica" name="txtyametrica"  ><?php 
    WRA::e($this->wf->options['yametrica']);
    ?>
</textarea></td></tr>
<tr ><td></td><td class="td_info td_info_1">Код Google Analytics</td><td><textarea  id="txtgametrica" name="txtgametrica" ><?php 
    WRA::e($this->wf->options['gametrica']);
    ?>
</textarea></td></tr>
<?php 
}
?>
</tbody>
</table></div>
Esempio n. 11
0
       $(".deleteinfoimage").live("click",function(e){
           var ar=$(this).parent().parent().attr('id').split('-');
            $(this).parent().parent().prev().remove();
           $(this).parent().parent().remove();
           if(ar[1]=="new"){
               
               for(i=0;i<infoimages.length;i++){

                   if(infoimages[i].id=="p"+ar[2]){
                      
                       infoimages.splice(i,1);
                   }
               }
               
           }else{
               
            deleteinfoimages.push(ar[2]);
           }
              $("#delete-<?php 
WRA::e($curid);
?>
").val($.toJSON(deleteinfoimages));
              $("#new-<?php 
WRA::e($curid);
?>
").val($.toJSON(infoimages));
            e.preventDefault();
       }) ;
    });
    </script>
Esempio n. 12
0
			<div class="reserved_to_menu"></div>
<div class="right_menu">
				<div class="prn_img" style="margin-top:50px; width:97px; margin-left:35px;float:left; top:20px; margin-top: 13px; margin-left: 5px;"></div>
                               <?php 
if (false) {
    ?>
 <div style="padding-left:11px;"><input type="button" id="btnsave" name="btnsave" value="Сохранить"   /></div><?php 
}
?>
    <div class="data_text"><a href="<?php 
WRA::e(WRA::base_url());
?>
admin">Настройки</a></div>
    <?php 
foreach ($this->adminnodes as $a0) {
    ?>
        <div class="data_text"><a href="<?php 
    WRA::e(WRA::base_url());
    WRA::e($a0->link);
    ?>
"><?php 
    WRA::e($a0->name);
    ?>
</a></div>
    <?php 
}
?>
	</div>
            <div class="content">

Esempio n. 13
0
 function ep0($text)
 {
     $return = str_replace('/n', '<br/>', $text);
     if (substr($return, 0, 3) == '<p>') {
         WRA::e(substr($return, 3, strlen($return) - 7));
     } else {
         WRA::e($return);
     }
 }
Esempio n. 14
0
<?php

defined("WERUA") or die('<div style="margin:0 0 auto;width:200px">Ошибка запуска. Contact </div>');
?>
<!--footer-->
<div class="footer">
<table width="100%">
  <tr>
    <td><div class="logo"><img src="<?php 
WRA::e(WRA::base_url());
?>
modules/admin/images/logo_workflower.png" width="201" height="44"></div></td>
    <td><div class="link_footer" align="center"><?php 
if (!wra_userscontext::isloged($this->wf)) {
    ?>
<a href="/admin/login">Вход</a><?php 
}
?>
</div></td>
    <td><div class="copy" style="text-align:right">&copy; <?php 
WRA::e(WRA::getcuryear($this->wf));
?>
 WorkFlower</div></td>
  </tr>
</table>
</div>



Esempio n. 15
0
                        <!-- <a href="admin/export" target="_blank">Экспортировать друзей</a><br/><br/>
                        <a href="admin/export?type=orders" target="_blank">Экспортировать заказы</a> -->
                    </td>
                </tr>
            </table>
        </div>
    </form>
    
    <?php 
if ($this->cap->message != '') {
    ?>
        <script>
            $(document).ready(function(){

                doalert('<?php 
    WRA::e($this->cap->message);
    ?>
');
            });
        </script>
        <?php 
}
?>



    <?php 
include WRA_Path . '/modules/admin/parts/footer.php';
?>

</div>
Esempio n. 16
0
">просмотреть</a> </td>
                <td><a class="deleteconfirm" href="<?php 
    WRA::e(WRA::base_url() . $this->curnode->link . "/edit?act=delete&id=" . $ad0->id);
    ?>
">удалить</a> </td>
                </tr>
<?php 
}
?>
        </tbody>
    </table>
    <div id="adactions"><img src="../images/wf/arrow_ltr.png">С выделенными:  <input id="btndeletemany" type="button" value="Удалить"/><input id="btnexportcsv" type="button" value="Экспортировать в CSV"/>
        &nbsp;Экспортировать поле: <select id="exportfield"><option value="-1">Выберите</option><?php 
foreach ($this->curadmin->columns as $ac) {
    if ($ac->tablestatus == admincolumntype::none) {
        continue;
    }
    ?>
<option value="<?php 
    WRA::e($ac->field);
    ?>
"><?php 
    WRA::e($ac->header);
    ?>
</option><?php 
}
?>
</select>
       
    </div>
</div>
Esempio n. 17
0
<?php

defined('WERUA') or (include '../../../bad.php');
if (isset($_REQUEST['empty'])) {
    $fbu = new wra_fbu();
    $fbu->load($_REQUEST['id']);
    $fbu->points = 0;
    $fbu->update();
    $this->rows[0]['points'] = '0';
}
?>
<a href="admin?mod=fbuedit&id=50213&empty=<?php 
WRA::e($this->rows[0]['id']);
?>
">Обнулить литры</a>
Esempio n. 18
0
<?php

defined("WERUA") or die('<div style="margin:0 0 auto;width:200px">Ошибка запуска. Contact </div>');
?>
<div class="right_block_header">
    <table width="100%" >
        <tr>
            <td><div class="left_top_link"><a href="<?php 
echo WRA::base_url();
?>
">&larr; Сайт</a> <span>Панель администрирования</span></div></td>
            <td width="35%" valign="bottom">
                <a href="?clearcache=true">Очистить кеширование</a>
            </td>
            <td valign="bottom"></td>
            <td valign="bottom"><div class="exit_user" align="right"><span><?php 
if (isset($cp->currentuser)) {
    WRA::e($cp->currentuser->namei . ' ' . $cp->currentuser->namef);
}
?>
</span> <img src="<?php 
WRA::e(WRA::base_url());
?>
modules/admin/images/exit_ico.png" width="13" height="14" align="absmiddle"> <a href="<?php 
WRA::e(WRA::base_url());
?>
admin/exit">Выйти</a></div></td>
        </tr>
    </table></div>

Esempio n. 19
0
<div class="scobox">
    <div class="txt">Please login to add new action</div>
   <?php 
if (false) {
    ?>
 <a href="#" class="sc scvk"></a>
    <a href="#" class="sc scodn"></a><?php 
}
?>
    <a href="<?php 
WRA::e(wra_facebook::loginLink());
?>
" class="sc scfb"></a>
   <?php 
if (false) {
    ?>
 <a href="#" class="sc sctw"></a><?php 
}
?>
</div>
Esempio n. 20
0
    function show()
    {
        $cache0 = new wra_cacheflow('rss', true);
        if ($cache0->begin()) {
            $this->items = wra_foursqvenues::get_list(0, time(), 250);
            $this->items = array_reverse($this->items);
            if (count($this->items) < 30) {
                $enues = wra_foursqvenues::get_l30(intval(time()));
                $before = time();
                if (count($this->items) > 0) {
                    $before = $this->items[count($this->items) - 1]->time;
                }
                for ($i = 0; $i < 30 - count($this->items); $i++) {
                    if ($enues[$i]->time < $before) {
                        $this->items[] = $enues[$i];
                    }
                }
            }
            WRA::e('<?');
            ?>
xml version="1.0" encoding="UTF-8"<?php 
            WRA::e('?>');
            ?>
<rss version="2.0">
  <channel>
    <title>Liveuamap.com</title>
    <link>http://liveuamap.com/</link>
    <description>Fresh news from Ukraine on the map, event of summer 2014, war between Russia and Ukraine, beginning of Third World War. 2014 pro-Russian conflict in Ukraine </description>
    <language>en-us</language>
    <pubDate><?php 
            WRA::e(date('D, d M Y g:i:s O', time()));
            ?>
</pubDate>
 
    <lastBuildDate><?php 
            WRA::e(date('D, d M Y g:i:s O', time()));
            ?>
</lastBuildDate>
    <docs>http://liveuamap.com/rss</docs>
    <generator>Liveuamap Feed</generator>
    <managingEditor>info@liveuamap.com</managingEditor>
    <webMaster>info@liveuamap.com</webMaster>
<?php 
            foreach ($this->items as $a0) {
                ?>
  <item>
      <title><?php 
                WRA::e(htmlspecialchars($a0->name));
                ?>
</title>
      <link><?php 
                WRA::e($a0->getlink());
                ?>
</link>
      <description><?php 
                WRA::e(htmlspecialchars($a0->name));
                ?>
</description>
      <pubDate><?php 
                WRA::e(date('D, d M Y g:i:s O', $a0->time));
                ?>
</pubDate>
      <guid><?php 
                WRA::e($a0->getlink());
                ?>
</guid>
      <?php 
                if (!empty($a0->picture)) {
                    $ext = str_replace(':large', '', pathinfo($a0->picture, PATHINFO_EXTENSION));
                    $link = 'http://liveuamap.com/uploads/' . $a0->id . '.' . $ext;
                    if (!file_exists(WRA_Path . '/uploads/' . $a0->id . '.' . $ext)) {
                        $this->save_image($a0->picture, WRA_Path . '/uploads/' . $a0->id . '.' . $ext);
                    }
                    ?>
  <image>
<url><?php 
                    WRA::e($link);
                    ?>
</url>
  <link><?php 
                    WRA::e($a0->getlink());
                    ?>
</link>
      </image><?php 
                }
                ?>
  </item>
<?php 
            }
            ?>
  
  </channel></rss><?php 
        }
        $cache0->end();
    }
Esempio n. 21
0
                    WRA::e($curid);
                    ?>
"/> -->
				<!-- <input type="hidden" name="new-<?php 
                    WRA::e($curid);
                    ?>
" value="" id="new-<?php 
                    WRA::e($curid);
                    ?>
"/> -->
				<?php 
                    break;
                default:
                    ?>
<label><?php 
                    WRA::e(htmlspecialchars($tdcontent));
                    ?>
</label><?php 
            }
        }
        ?>
</td>
        <td style="width:60px;"></td>
	</tr><?php 
    }
    ?>
               
</tbody></table>
<?php 
}
?>
Esempio n. 22
0
 function show()
 {
     WRA::e(json_encode($this->return, JSON_NUMERIC_CHECK));
 }
Esempio n. 23
0
                                if ($l2->link == $curp || wra_adminmenu::getassoc($curp) == $l2->link) {
                                    ?>
<li class="over_sub_main"><a href="<?php 
                                    WRA::e($l2->link);
                                    ?>
"><?php 
                                    WRA::e($l2->name);
                                    ?>
</a></li><?php 
                                } else {
                                    ?>
<li><a href="<?php 
                                    WRA::e($l2->link);
                                    ?>
"><?php 
                                    WRA::e($l2->name);
                                    ?>
</a></li><?php 
                                }
                            }
                            ?>
                </ul>
                </div><?php 
                        }
                    }
                }
                ?>
            </ul>
                
                <?php 
            }
Esempio n. 24
0
 function run()
 {
     $act = @$_REQUEST['act'];
     switch ($act) {
         case "ui":
             $savepc = new wra_image();
             $savepc->header = '';
             $savepc->description = '';
             $ismessage = false;
             $admimessage = '';
             $wimage = wra_admintable::getpic($savepc->pic, $savepc->tmbpic, $ismessage, $admimessage, 'gallery/', 340, 'qqfile', false, true);
             $savepc->keywords = '';
             $savepc->galinfoid = 0;
             $savepc->width = $wimage->imagewidth;
             $savepc->height = $wimage->imageheight;
             $languages = wra_lang::getlist();
             $savepc->add("_ru");
             $ruid = $savepc->id;
             foreach ($languages as $l0) {
                 if ($l0->alias != 'ru') {
                     $savepc->add('_' . $l0->alias);
                 }
             }
             echo '{"success":true,"imgid":"' . $ruid . '","tmb":"' . WRA::base_url() . $savepc->tmbpic . '"}';
             break;
         case 'uploadimage':
             $savepc = new wra_image();
             $savepc->header = '';
             $savepc->description = '';
             $ismessage = false;
             $admimessage = '';
             require_once WRA_Path . '/modules/admin/admintable.php';
             wra_admintable::getpic($savepc->pic, $savepc->tmbpic, $ismessage, $admimessage, 'gallery/', 240, 'qqfile', false, true);
             $savepc->keywords = '';
             $savepc->galinfoid = -1;
             $savepc->add();
             WRA::e(htmlspecialchars(json_encode(array('success' => true, 'picid' => $savepc->id, 'path' => $savepc->tmbpic, 'oldid' => $_REQUEST['id'])), ENT_NOQUOTES));
             break;
         case 'uploadimagepack':
             if (isset($_FILES['Filedata'])) {
                 $savepc = new wra_image();
                 $moreinfo = new wra_iteminfo();
                 $moreinfo->weight = 0;
                 $moreinfo->alt = '';
                 $moreinfo->keywords = '';
                 $moreinfo->autoadres = 0;
                 $moreinfo->adres = '';
                 $moreinfo->commentopt = 2;
                 $moreinfo->mappriority = 0;
                 $moreinfo->authorid = WRA::curuser()->id;
                 $moreinfo->add();
                 $savepc->header = '';
                 $savepc->description = '';
                 //$savepc->pic=$_POST['fieldpic'];
                 $ismessage = false;
                 $admimessage = '';
                 require_once '../../modules/admin/admintable.php';
                 wra_admintable::getpic($savepc->pic, $savepc->tmbpic, $ismessage, $admimessage, 'gallery/', 240, 'Filedata', false, true);
                 $savepc->galleryid = WRA::getreq('galid');
                 $savepc->keywords = '';
                 $savepc->infoid = $moreinfo->id;
                 $savepc->add();
             }
             WRA::e($savepc->tmbpic . '~@~' . $savepc->id);
             break;
         case 'uploadpic':
             $savepc = new wra_upfile();
             if (isset($_FILES['Filedata'])) {
                 if ($_FILES['Filedata']['size'] != 0) {
                     $savepc->original_filename = $_FILES['Filedata']['name'];
                     $wf = new wra_uploadedfile(WRA_Path);
                     $wf->uploaddir .= 'files/';
                     $wf->addvalidtype('jpg');
                     $wf->addvalidtype('png');
                     $wf->addvalidtype('gif');
                     $wf->addvalidtype('jpeg');
                     $wf->addvalidtype('jpeg');
                     $wf->addvalidtype('docx');
                     $wf->addvalidtype('pdf');
                     $wf->addvalidtype('doc');
                     $wf->upload('Filedata', true);
                     WRA::e($wf->error);
                     if ($wf->error == '') {
                         $savepc->path_to_file = 'upload/files/' . $wf->filename;
                         $savepc->description = $_FILES['Filedata']['name'] . ' - загружено загрузчиком редактора';
                         $savepc->add();
                     } else {
                         $ismessage = true;
                         switch ($wf->error) {
                             default:
                                 $adminmessage = 'Ошибка загрузки файла';
                                 break;
                         }
                     }
                 }
             }
             WRA::e(WRA::base_url() . $savepc->path_to_file);
             break;
     }
 }
Esempio n. 25
0
                <tr>
                    <td class="td_info td_info_1">Название</td>
                    <td class="td_patient">
                        <?php 
    WRA::e($this->list[$this->importIndex]['header']);
    ?>
                    </td>
                    <td style="width:60px;"></td>
                </tr>
                <tr>
                    <td class="td_info td_info_1"></td>
                    <td class="td_patient">
                        <?php 
    foreach ($this->list[$this->importIndex]['images'] as $ki => $vi) {
        ?>
                           <div><?php 
        WRA::e($vi);
        ?>
</div>
                            <?php 
    }
    ?>
                    </td>
                    <td style="width:60px;"></td>
                </tr>
            <?php 
}
?>
        </table>
    </div>
</div>
Esempio n. 26
0
<?php 
if ($this->wfitem->enter_try != 0) {
    ?>
 
                                    <div id="login_error">
                                    <?php 
    switch ($this->wfitem->enter_try) {
        case 1:
            WRA::e("Такого пользователя не существует");
            break;
        case 2:
            WRA::e("Пароль введен неправильно!");
            break;
        case 3:
            WRA::e("У вас нет прав Администратора");
            break;
    }
    ?>
                                    </div>
                                    <?php 
}
?>

                                <input type="submit" name="loginbutton" id="loginbutton" class="submitbutton" value="Войти" tabindex="100">

                            </form>


                        </div>
Esempio n. 27
0
    function flush()
    {
        //есть шанс погибнуть разобравшись в этом коде
        //вывод таблицы
        ?>

	    <?php 
        if ($this->subtable) {
            ?>
	    <br/>
	    <div class="text_header_edit">
		    <?php 
            WRA::e($this->headertext);
            ?>
		</div>
		<?php 
        }
        ?>
		<?php 
        $rowi = 0;
        $columni = 0;
        if ($this->pid != "-1" && $this->pid != "0" && $this->pid != "" && $this->useheader) {
            ?>
	
			<div><a href="<?php 
            WRA::e(WRA::getcurpage() . '&pid=' . $this->parent_parentid);
            ?>
">&larr;вверх</a></div>	
		<?php 
        }
        if (count($this->rows) == 0) {
            ?>
	    <div class="sub_text">
	     <center>Нет ни одной записи</center>
	    </div><?php 
        } else {
            ?>
<div><input type="text" id="filternow" value="Поиск"></div><?php 
        }
        while ($rowi < count($this->rows)) {
            $columni = 0;
            ?>
<div class="sub_text" id="sub_text-<?php 
            WRA::e($this->rows[$rowi]["id"]);
            ?>
"><?php 
            while ($columni < count($this->columns)) {
                if ($this->columns[$columni]->header == "id" || $this->columns[$columni]->header == "Ключевые слова") {
                    $columni++;
                    continue;
                }
                $tdcontent = "";
                $tdcontent = $this->columns[$columni]->prefix . $this->rows[$rowi][$columni] . $this->columns[$columni]->sufix;
                switch ($this->columns[$columni]->type) {
                    case column_type_h2header:
                        if (!$this->columns[$columni]->isparent) {
                            WRA::e('<h2>' . $tdcontent . '</h2>');
                        } else {
                            if ($this->info == "") {
                                WRA::e('<h2><a href="' . WRA::getcurpage() . '&pid=' . $this->rows[$rowi]["id"] . '">' . $tdcontent . "</a></h2>");
                            } else {
                                WRA::e('<h2><a href="' . WRA::getcurpage() . '&pid=' . $this->rows[$rowi]["id"] . '&type=' . $this->info . '">' . $tdcontent . "</a></h2>");
                            }
                        }
                        break;
                    case column_type_date:
                        WRA::e('<span class="date_content">' . $this->columns[$columni]->header . ': ' . $tdcontent . '</span>');
                        break;
                    case column_type_link:
                        WRA::e('<a target="_blank"  href="' . $tdcontent . '">' . $tdcontent . "</a>");
                        break;
                    case column_type_check:
                        WRA::e('<p>' . $this->columns[$columni]->header . ': ');
                        if ($tdcontent == 1) {
                            WRA::e('Да');
                        } else {
                            WRA::e('Нет');
                        }
                        WRA::e('</p>');
                        break;
                    case column_type_pic:
                        if ($tdcontent != "") {
                            WRA::e('<p><img src="' . WRA::base_url() . $tdcontent . '"/></p>');
                        } else {
                            WRA::e($tdcontent);
                        }
                        break;
                    case column_type_id:
                        break;
                    case column_type_text:
                    default:
                        ?>
<p<?php 
                        if ($this->rowstyle != "") {
                            WRA::e(' style="' . $this->rowstyle . '"');
                        }
                        ?>
><?php 
                        if ($tdcontent != "") {
                            WRA::e($this->columns[$columni]->header . '');
                        }
                        if ($this->columns[$columni]->isparent) {
                            WRA::e('<h2><a href="' . WRA::getcurpage() . '&pid=' . $this->rows[$rowi]["id"] . '">' . $tdcontent . "</a></h2>");
                        } else {
                            WRA::e($tdcontent);
                        }
                        ?>
</p><?php 
                        break;
                }
                $columni++;
            }
            ?>
<div class="red_del"><?php 
            if ($this->candelete) {
                ?>
<a href="<?php 
                WRA::e(WRA::getcurpage());
                ?>
&id=<?php 
                WRA::e($this->rows[$rowi]["id"]);
                ?>
" class="delete_link deletetd  <?php 
                WRA::e($this->deleteeditclass);
                ?>
" style="display:none" id="del-<?php 
                WRA::e($this->rows[$rowi]["id"]);
                if ($this->info != "") {
                    WRA::e("-" . $this->info);
                }
                ?>
">Удалить</a><?php 
            }
            if ($this->canedit) {
                ?>
<a href="<?php 
                WRA::e(WRA::getcurpage());
                ?>
&id=<?php 
                WRA::e($this->rows[$rowi]["id"]);
                ?>
" class="edit_link edittd  <?php 
                WRA::e($this->deleteeditclass);
                ?>
" style="display:none" id="ed-<?php 
                WRA::e($this->rows[$rowi]["id"]);
                if ($this->info != "") {
                    WRA::e("-" . $this->info);
                }
                ?>
">Редактировать</a><?php 
            }
            ?>
</div><?php 
            $rowi++;
            ?>
</div>
			
			<?php 
        }
    }
Esempio n. 28
0
function flushpage($currentlink, $cap)
{
    ?>
<div><h1>Администрирование сайта. Общие настройки</h1></br></div>
<div class="content_edit">
    <div class="input_edit">
        <table id="" width="100%" class="adminedittbl table_edit" cellpadding="0" cellspacing="0">
            <tbody>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td colspan="2"><b>Общие настройки</b></td>
                </tr>
                <tr >
                    <td style="width:120px"><?php 
    $googleanal = wra_options::getvalue('googleanal');
    ?>
                        <label>Код Google-Analytics</label></td>
                    <td><textarea name="googleanalytics" style="height:300px"><?php 
    WRA::e($googleanal);
    ?>
</textarea></td>
                </tr>
                <tr >
                    <td style="width:120px"><?php 
    $googleanal = wra_options::getvalue('yandexmetrics');
    ?>
                        <label>Код Яндекс-Метрики</label></td>
                    <td><textarea name="yandexmetrics" style="height:300px"><?php 
    WRA::e($googleanal);
    ?>
</textarea></td>
                </tr>
                <tr >  <td style="width:120px"><?php 
    $googleanal = wra_options::getvalue('banner330');
    ?>
                        <label>Баннер справа(330x128)</label></td>
                    <td><textarea name="banner330" style="height:200px"><?php 
    WRA::e($googleanal);
    ?>
</textarea></td>
                </tr>
              
                <tr >  <td style="width:120px"><?php 
    $googleanal = wra_options::getvalue('facebook');
    ?>
                        <label>Like Box Facebook</label></td>
                    <td><textarea name="facebook" style="height:200px"><?php 
    WRA::e($googleanal);
    ?>
</textarea></td>
                </tr>
                <tr >  <td style="width:120px"><?php 
    $googleanal = wra_options::getvalue('vkontakte');
    ?>
                        <label>Like Box Vkontakte</label></td>
                    <td><textarea name="vkontakte" style="height:200px"><?php 
    WRA::e($googleanal);
    ?>
</textarea></td>
                </tr>
              
                <tr >  <td style="width:120px">
                        <label>Кеширование</label></td>
                    <td><input type="button" value="Очистить Кеш" id="clearbutton"/></td></tr>
                <tr><td><br><a href="#" class="link_save" id="link-save">Сохранить</a></td><td></td></tr>
            </tbody></table></div>
</div>


    <?php 
}
Esempio n. 29
0
 function flush()
 {
     $thisclass_string = wra_adminmenu::getbaseclass();
     $saveid = -1;
     if (WRA::ir('id')) {
         $saveid = WRA::r('id');
     }
     $pid = -1;
     if (WRA::ir('pid')) {
         $pid = WRA::r('pid');
     }
     if ($thisclass_string != '') {
         if (wra_adminpage::isedit()) {
             $languages = wra_lang::getlist();
             // WRA::debug($languages);
             // die();
             wra_admintable::flusheditHead($this);
             foreach ($languages as $l0) {
                 $code = '$wt=' . $thisclass_string . '::edittable(' . $saveid . ',' . $pid . ',' . $l0->alias . ');';
                 eval($code);
                 $wt->flushedit($this);
                 if (count($wt->subtables) > 0) {
                     foreach ($wt->subtables as $st) {
                         if ($st->subtypeedit) {
                             $st->subtable = true;
                             $st->flushedit($this);
                         } else {
                             $st->subtable = true;
                             $st->flush();
                         }
                     }
                 }
             }
         } else {
             $code = '$wt=' . $thisclass_string . '::admintable(' . $saveid . ',' . $pid . ');';
             eval($code);
             if ($wt->headertext != '') {
                 WRA::e('<h2>' . $wt->headertext);
                 if ($pid != -1 && $pid != 0) {
                 }
                 WRA::e('</h2>');
             }
             $wt->flush();
             if (count($wt->subtables) > 0) {
                 foreach ($wt->subtables as $st) {
                     $st->useheader = false;
                     $st->subtable = true;
                     $st->flush();
                 }
             }
         }
     }
 }
Esempio n. 30
0
<?php

defined('WERUA') or (include '../bad.php');
?>
<script type="text/javascript">
            <?php 
if (!empty($this->ll[1])) {
    ?>
            lat=<?php 
    WRA::e($this->ll[0]);
    ?>
;
            lng=<?php 
    WRA::e($this->ll[1]);
    ?>
;
        <?php 
}
?>
        <?php 
if ($this->zoom != 0) {
    ?>
            zoom=<?php 
    WRA::e($this->zoom);
    ?>
;
        <?php 
}
?>
    </script>