Prechádzať zdrojové kódy

VG项目对前端部分转换为英文

jace 6 rokov pred
rodič
commit
e3ba0c0488

+ 3 - 3
VeGardInternational/helong/frontend/frontend/views/article/list.php

@@ -17,8 +17,8 @@ use yii\helpers\Url;
                 <ul id="new_article_list">
                 </ul>
             </div>
-            <a class="img" href="javascript:;">
-                <img src="<?= STATIC_URL ?>/static/fxm/images/Analysis-img.jpg" alt="Trends全球注册及监管,澳大利亚 ASIC 塞浦路斯 CySec 英国 FCA">
+            <a class="img" href="javascript:;">
+                <img src="<?= STATIC_URL ?>/static/fxm/images/Analysis-img.jpg" alt="Trends全球注册及监管,澳大利亚 ASIC 塞浦路斯 CySec 英国 FCA">
             </a>
         </div>-->
 
@@ -26,7 +26,7 @@ use yii\helpers\Url;
 		<script type="text/javascript" src="https://c.mql5.com/js/widgets/calendar/widget.v4.js"></script>
 		<div id="economicCalendarWidget"></div>
 		<script type="text/javascript">
-			new economicCalendar({ width: "100%", height: "600px", mode: 2, lang: "zh" });
+			new economicCalendar({ width: "100%", height: "600px", mode: 2, lang: "en" });
 		</script>
             <!--<ul class="analysis-list" id="analysisList">
             </ul>-->

+ 8 - 8
VeGardInternational/helong/frontend/frontend/views/common/_footer.php

@@ -5,19 +5,19 @@ use yii\helpers\Url;
     <div class="clearfix">
         <div class="footer-nav">
             <dl>
-                <dt>about us</dt>
+                <dt>About us</dt>
                 <dd>
-                    <a href="<?= Url::to(['/about/know-us']) ?>">understand us</a>
+                    <a href="<?= Url::to(['/about/know-us']) ?>">Understand us</a>
                 </dd>
                 <dd>
-                    <a href="<?= Url::to(['/about/public']) ?>">Company Announcement</a>
+                    <a href="<?= Url::to(['/about/public']) ?>">Company announcement</a>
                 </dd>
                 <dd>
-                    <a href="<?= Url::to(['/about/contact-us']) ?>">contact us</a>
+                    <a href="<?= Url::to(['/about/contact-us']) ?>">Contact Us</a>
                 </dd>
             </dl>
             <dl>
-                <dt>product description</dt>
+                <dt>Product description</dt>
                 <!--<dd>
                     <a href="<?= Url::to(['/product/forex'])?>">外汇交易</a>
                 </dd>
@@ -35,12 +35,12 @@ use yii\helpers\Url;
                 </dd>--> 
             </dl>
             <dl>
-                <dt>Download Center</dt>
+                <dt>Download center</dt>
                 <dd>
                     <a href="https://download.mql5.com/cdn/web/12122/mt4/norideinternational4setup.exe">PC download</a>
                 </dd>
                 <dd>
-                    <a class="iphone-download" href="javascript:void(0)">iPhone download</a>
+                    <a class="iphone-download" href="javascript:void(0)">IPhone download</a>
                 </dd>
                 <dd>
                     <a href="<?= Url::to(['/upload/apk/android.apk']) ?>">Android download</a>
@@ -54,7 +54,7 @@ use yii\helpers\Url;
 
             </dl>
             <dl class="footer-contact">
-                <dt>contact us</dt>
+                <dt>Contact us</dt>
                 <dd style="vertical-align: middle;">
                 phone
         <span style="font-size: 20px; color: #fff;" class="detail-img">

+ 6 - 6
VeGardInternational/helong/frontend/frontend/views/common/_header.php

@@ -28,23 +28,23 @@ use yii\helpers\Url;
             <a href="<?= Url::home() ?>">Home</a>
         </li>
         <li <?php if ($this->context->id == 'about'){ ?>class="active"<?php } ?>>
-            <a href="javascript:;">about us</a>
+            <a href="javascript:;">About us</a>
             <div class="subnav">
                 <ul>
                     <li>
-                        <a href="<?= Url::to(['/about/know-us']) ?>">understand us</a>
+                        <a href="<?= Url::to(['/about/know-us']) ?>">Understand us</a>
                     </li>
                     <li>
                         <a href="<?= Url::to(['/about/public']) ?>">Announcement notice</a>
                     </li>
                     <li>
-                        <a href="<?= Url::to(['/about/contact-us']) ?>">contact us</a>
+                        <a href="<?= Url::to(['/about/contact-us']) ?>">Contact us</a>
                     </li>
                 </ul>
             </div>
         </li>
         <li <?php if ($this->context->id == 'product'){ ?>class="active"<?php } ?>>
-            <a href="<?= Url::to(['/product/index']) ?>">product description</a>
+            <a href="<?= Url::to(['/product/index']) ?>">Product description</a>
             <!--<div class="subnav">
                 <ul>
                     <li>
@@ -61,7 +61,7 @@ use yii\helpers\Url;
             <a href="<?= Url::to(['/article/list?id=2']) ?>">Financial calendar</a>
         </li>
         <li <?php if ($this->context->id == 'download'){ ?>class="active"<?php } ?>>
-            <a href="<?= Url::to(['/download/index']) ?>">Download Center</a>
+            <a href="<?= Url::to(['/download/index']) ?>">Download center</a>
         </li>
         <!--<li <?php if ($this->context->id == 'coop'){ ?>class="active"<?php } ?>>
             <a href="<?= Url::to(['/coop/index']) ?>">合作伙伴</a>
@@ -86,7 +86,7 @@ use yii\helpers\Url;
             </div>
         </li>-->
     </ul>
-    <h1 style="width:35%;">
+    <h1 style="width:33%;">
         <a href="/">
             <img src="<?= STATIC_URL ?>/static/fxm/images/logo.png" alt="noride">
         </a>

+ 119 - 119
helongfx/helongcrm/service/common/lib/Mt4Api.php

@@ -1,119 +1,119 @@
-<?php
-namespace common\lib;
-
-use common\helpers\Utils;
-
-class Mt4Api {
-
-    protected $realip = '';
-
-    protected $port = '';
-
-    public function __construct($realip, $port)
-    {
-        $this->realip = $realip;
-        $this->port = $port;
-    }
-
-
-    public function MQ_Query($query,$real = 0 ){
-        $ret='error';
-        //---- open socket
-        $ptr=@fsockopen($this->realip,$this->port,$errno,$errstr,5);
-        /*
-        if( $real ){
-            $ptr=@fsockopen($this->realip,$this->port,$errno,$errstr,5);
-        }else{
-            $ptr=@fsockopen($this->demoip,'443',$errno,$errstr,5);
-        }
-        */
-		
-        //---- check connection
-        if($ptr){
-        //---- send request
-            if(fputs($ptr,"W$query\nQUIT\n")!=FALSE){
-                //---- clear default answer
-                $ret='';
-                //---- receive answer
-                while(!feof($ptr)) {
-                    $line=fgets($ptr,128);
-                    if($line=="end\r\n") break; 
-                    $ret.= $line;
-                } 
-            }
-            fclose($ptr);
-        }
-        //---- return answer
-        return $ret;
-    }
-    
-    public function addAccount($data, $real = 0){
-        //字段:
-        //INVESTOR   STATUS  ZIPCODE  ID  SEND_REPORTS PHONE_PASSWORD 属性不明 
-        $data['MASTER'] = 'Helongpasswd';
-        $data['IP'] = isset($data['IP']) && trim($data['IP']) != '' ? trim($data['IP']) : Utils::getClientIp();
-        $data['GROUP'] = isset($data['GROUP']) ? trim($data['GROUP']) : '';
-        $data['NAME'] = isset($data['NAME']) ? trim($data['NAME']) : '';
-        $data['PASSWORD'] = isset($data['PASSWORD']) ? trim($data['PASSWORD']) : '';
-        $data['INVESTOR'] = isset($data['INVESTOR']) ? trim($data['INVESTOR']) : '';
-        $data['EMAIL'] = 'email';
-        $data['COUNTRY'] =  'hk';
-        $data['STATE'] =  'hk';
-        $data['CITY'] = 'hk';
-        $data['ADDRESS'] = 'hk';
-        $data['PHONE'] = '00000000';
-        $data['PHONE_PASSWORD'] = isset($data['PHONE_PASSWORD']) ? trim($data['PHONE_PASSWORD']) : '';
-        $data['STATUS'] = '';
-        $data['ZIPCODE'] = isset($data['ZIPCODE']) ? trim($data['ZIPCODE']) : '';
-        $data['ID'] = isset($data['ID']) ? trim($data['ID']) : '';
-        $data['LEVERAGE'] = isset($data['LEVERAGE']) ? trim($data['LEVERAGE']) : '';
-        $data['AGENT'] = 0;
-        $data['SEND_REPORTS'] = 1;
-        $data['DEPOSIT'] = '';
-        $data['COMMENT'] = '';
-        $data['LOGIN'] = isset($data['LOGIN']) ? $data['LOGIN'] : '';
-
-        // iconv('GB2312', 'UTF-8', $str);
-        //iconv('GB2312', 'UTF-8', $str);
-
-        $data['NAME'] = iconv("utf-8", "gbk", $data['NAME']);
-
-        /*
-        $query = 'NEWACCOUNT MASTER='.$data['MASTER'].'|IP='.$data['IP'].'|GROUP='.$data['GROUP'].'|NAME='.$data['NAME'].'|PASSWORD='.$data['PASSWORD'].
-            '|INVESTOR='.$data['INVESTOR'] .'|EMAIL=email|COUNTRY=hk|STATE=hk|CITY=hk|ADDRESS=hk|COMMENT='.$data['COMMENT'].'|PHONE=000000000|PHONE_PASSWORD='.$data['PHONE_PASSWORD'].'|STATUS=resident|ZIPCODE=000000|ID=10|LEVERAGE='.$data['LEVERAGE'].'|AGENT=0'.
-            '|SEND_REPORTS=1|DEPOSIT=0';
-        */
-        
-        //--- prepare query
-
-		$query="NEWACCOUNT MASTER={$data['MASTER']}|IP={$data['IP']}|GROUP={$data['GROUP']}|NAME={$data['NAME']}|".
-          "PASSWORD={$data['PASSWORD']}|INVESTOR={$data['INVESTOR']}|EMAIL={$data['EMAIL']}|COUNTRY={$data['COUNTRY']}|".
-          "STATE={$data['STATE']}|CITY={$data['CITY']}|ADDRESS={$data['ADDRESS']}|COMMENT={$data['COMMENT']}|".
-          "PHONE={$data['PHONE']}|PHONE_PASSWORD={$data['PHONE_PASSWORD']}|STATUS={$data['STATUS']}|ZIPCODE={$data['ZIPCODE']}|".
-          "ID={$data['ID']}|LEVERAGE={$data['LEVERAGE']}|AGENT={$data['AGENT']}|SEND_REPORTS={$data['SEND_REPORTS']}|".
-          "DEPOSIT={$data['DEPOSIT']}";
-
-		//--- send request
-
-		//echo $query;die;
-
-        $ret = $this->MQ_Query($query, $real);
-
-        $info = $this->qgstr($ret);
-        return $info;
-    }
-    
-    //处理api返回的信息 如: OK LOGIN=50010  or ERROR IP is blocked. Please wait 60 secs and try again.  
-    
-    protected function qgstr($str)
-	{
-        if( strstr($str, 'OK')){
-            $tmp = explode('=', $str);
-			$login = str_replace('\r\n', '', $tmp[1]);
-			return array('Ret'=>0, 'Obj'=> array('Login' => $login));	
-        }else{
-            return array('Ret'=>1, 'str'=>$str);
-        }
-    }
-    
-}
+<?php
+namespace common\lib;
+
+use common\helpers\Utils;
+
+class Mt4Api {
+
+    protected $realip = '';
+
+    protected $port = '';
+
+    public function __construct($realip, $port)
+    {
+        $this->realip = $realip;
+        $this->port = $port;
+    }
+
+
+    public function MQ_Query($query,$real = 0 ){
+        $ret='error';
+        //---- open socket
+        $ptr=@fsockopen($this->realip,$this->port,$errno,$errstr,5);
+        /*
+        if( $real ){
+            $ptr=@fsockopen($this->realip,$this->port,$errno,$errstr,5);
+        }else{
+            $ptr=@fsockopen($this->demoip,'443',$errno,$errstr,5);
+        }
+        */
+		
+        //---- check connection
+        if($ptr){
+        //---- send request
+            if(fputs($ptr,"W$query\nQUIT\n")!=FALSE){
+                //---- clear default answer
+                $ret='';
+                //---- receive answer
+                while(!feof($ptr)) {
+                    $line=fgets($ptr,128);
+                    if($line=="end\r\n") break; 
+                    $ret.= $line;
+                } 
+            }
+            fclose($ptr);
+        }
+        //---- return answer
+        return $ret;
+    }
+    
+    public function addAccount($data, $real = 0){
+        //字段:
+        //INVESTOR   STATUS  ZIPCODE  ID  SEND_REPORTS PHONE_PASSWORD 属性不明 
+        $data['MASTER'] = 'Helongpasswd';
+        $data['IP'] = isset($data['IP']) && trim($data['IP']) != '' ? trim($data['IP']) : Utils::getClientIp();
+        $data['GROUP'] = isset($data['GROUP']) ? trim($data['GROUP']) : '';
+        $data['NAME'] = isset($data['NAME']) ? trim($data['NAME']) : '';
+        $data['PASSWORD'] = isset($data['PASSWORD']) ? trim($data['PASSWORD']) : '';
+        $data['INVESTOR'] = isset($data['INVESTOR']) ? trim($data['INVESTOR']) : '';
+        $data['EMAIL'] = 'email';
+        $data['COUNTRY'] =  'hk';
+        $data['STATE'] =  'hk';
+        $data['CITY'] = 'hk';
+        $data['ADDRESS'] = 'hk';
+        $data['PHONE'] = '00000000';
+        $data['PHONE_PASSWORD'] = isset($data['PHONE_PASSWORD']) ? trim($data['PHONE_PASSWORD']) : '';
+        $data['STATUS'] = '';
+        $data['ZIPCODE'] = isset($data['ZIPCODE']) ? trim($data['ZIPCODE']) : '';
+        $data['ID'] = isset($data['ID']) ? trim($data['ID']) : '';
+        $data['LEVERAGE'] = isset($data['LEVERAGE']) ? trim($data['LEVERAGE']) : '';
+        $data['AGENT'] = 0;
+        $data['SEND_REPORTS'] = 1;
+        $data['DEPOSIT'] = '';
+        $data['COMMENT'] = '';
+        $data['LOGIN'] = isset($data['LOGIN']) ? $data['LOGIN'] : '';
+
+        // iconv('GB2312', 'UTF-8', $str);
+        //iconv('GB2312', 'UTF-8', $str);
+
+        $data['NAME'] = iconv("utf-8", "gbk", $data['NAME']);
+
+        /*
+        $query = 'NEWACCOUNT MASTER='.$data['MASTER'].'|IP='.$data['IP'].'|GROUP='.$data['GROUP'].'|NAME='.$data['NAME'].'|PASSWORD='.$data['PASSWORD'].
+            '|INVESTOR='.$data['INVESTOR'] .'|EMAIL=email|COUNTRY=hk|STATE=hk|CITY=hk|ADDRESS=hk|COMMENT='.$data['COMMENT'].'|PHONE=000000000|PHONE_PASSWORD='.$data['PHONE_PASSWORD'].'|STATUS=resident|ZIPCODE=000000|ID=10|LEVERAGE='.$data['LEVERAGE'].'|AGENT=0'.
+            '|SEND_REPORTS=1|DEPOSIT=0';
+        */
+        
+        //--- prepare query
+
+		$query="NEWACCOUNT MASTER={$data['MASTER']}|IP={$data['IP']}|GROUP={$data['GROUP']}|NAME={$data['NAME']}|".
+          "PASSWORD={$data['PASSWORD']}|INVESTOR={$data['INVESTOR']}|EMAIL={$data['EMAIL']}|COUNTRY={$data['COUNTRY']}|".
+          "STATE={$data['STATE']}|CITY={$data['CITY']}|ADDRESS={$data['ADDRESS']}|COMMENT={$data['COMMENT']}|".
+          "PHONE={$data['PHONE']}|PHONE_PASSWORD={$data['PHONE_PASSWORD']}|STATUS={$data['STATUS']}|ZIPCODE={$data['ZIPCODE']}|".
+          "ID={$data['ID']}|LEVERAGE={$data['LEVERAGE']}|AGENT={$data['AGENT']}|SEND_REPORTS={$data['SEND_REPORTS']}|".
+          "DEPOSIT={$data['DEPOSIT']}";
+
+		//--- send request
+
+		//echo $query;die;
+
+        $ret = $this->MQ_Query($query, $real);
+
+        $info = $this->qgstr($ret);
+        return $info;
+    }
+    
+    //处理api返回的信息 如: OK LOGIN=50010  or ERROR IP is blocked. Please wait 60 secs and try again.  
+    
+    protected function qgstr($str)
+	{
+        if( strstr($str, 'OK')){
+            $tmp = explode('=', $str);
+			$login = str_replace('\r\n', '', $tmp[1]);
+			return array('Ret'=>0, 'Obj'=> array('Login' => $login));	
+        }else{
+            return array('Ret'=>1, 'str'=>$str);
+        }
+    }
+    
+}