Hiển thị các bài đăng có nhãn Webshop. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Webshop. Hiển thị tất cả bài đăng

Thứ Tư, 30 tháng 10, 2019

Themes - Admin && Theme - Admin - Cache - webshop

**** Liên quan với admin/links
Downloadtại đây

global $adminfile, $radminsuper, $radminname, $listmods, $listadmins;

$linksdir = dir("links");

while($func=$linksdir->read()) {

if(substr($func, 0, 6) == "links.") {

$testtest = explode(".",$func);

$checkmodname = $testtest[1];

$adm_access = checkmodac($checkmodname);
if ($adm_access == 1) {
$menulist .= "$func ";
}
}
}
closedir($linksdir->handle);

$menulist = explode(" ", $menulist);

sort($menulist);
if(true)
for ($i=0; $i < sizeof($menulist); $i++) {
if($menulist[$i]!=""){
$counter = 0;
include($linksdir->path."/$menulist[$i]");
}else{
echo '
<li>
<a href="index.html"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
</li>
';
}
}
if($menu_head_admin){
echo "<hr>";
echo $menu_head_admin;
echo "<hr>";
}

----------------------------------------------------

WebShop:

Cache / admin.php


<?php
////////////////////////////////
global $site_server;
////////////////////////////////


function themeAdminHeader() {
global $datafold, $adminfile, $module_title, $module_name,$db,$prefix,$name,$currentlang,$site_live,$site_server;

global $site, $rootpath;

if ($multilingual == 1) { $querylang = "AND (alanguage='$currentlang' )"; } else { $querylang = ""; }

echo "<link rel=\"StyleSheet\" href=\"".$site_server."themes/admin/style/style.css\" type=\"text/css\">\n";    
echo "<link rel=\"StyleSheet\" href=\"".$site_server."themes/admin/style/menu.css\" type=\"text/css\">\n";    

echo "\n\n\n</head>\n\n";

echo"<body >
<div class=\"wrapper\">
<div class=\"header-bar\">
  <div class=\"header content clearfix\">
  <a id=\"link-vihan\" href=\"http://www.vihan.vn/\" ><img class=\"logo\" src=\"".$site_server."themes/admin/images/logo.png\" alt=\"Vihan\" height=\"71px\"></a>
<span class=\"signup-button\"><a href=\"#\">"._HDSD."</a><br>
<a href=\"".$site_live."\" class=\"home\">"._HOMEPAGE."</a>";
if(defined('IS_ADMIN')) {
echo"<a href=\"".$adminfile.".php?op=logout\">"._ADMINLOGOUT."</a>";
}
echo"</span>
</div>
</div>
<div class='".$_GET["op"]."'>
";
}

//start footer
function themeAdminFooter() {

    global $adminfile, $index, $module_name,$currentlang,$site_live,$site_server;
echo"
</div>
<div class=\"announce-bar\">
<div class=\"content\"><p class=\"message\">"._FWELCOME."</p>
</div>\n<!--end anounce-->";
echo"</div><!--end wrapper-->

<div class=\"footer-bar\">
<div class=\"footer content clearfix\">
<ul>
<li>© 2011 Vihan</li>
<li><a href=\"http://vihan.vn\">vihan.vn</a></li>
<li><a href=\"http://phagiaweb.com\">phagiaweb.com</a></li>
<li><a href=\"http://ketoantruong.com.vn\">ketoantruong.com.vn</a></li>
<li><a href=\"http://yeutroncontim.com\">yeutroncontim.com</a></li>
<li><a href=\"javascript:void(0)\">ypoogle.com</a></li>
</ul>
</div>
</div>\n";

}


function themeAdminHeaderMain() {
global $datafold, $adminfile, $module_title, $module_name,$db,$prefix,$name,$currentlang,$site_live,$site_server, $page_title2, $ThemeSel;

global $site, $rootpath;

if ($multilingual == 1) { $querylang = "AND (alanguage='$currentlang' )"; } else { $querylang = ""; }

echo "<link rel=\"StyleSheet\" href=\"".$site_server."themes/admin/style/style.css\" type=\"text/css\">\n";
echo "<link rel=\"StyleSheet\" href=\"".$site_server."themes/admin/style/menu.css\" type=\"text/css\">\n";    
echo"<script src=\"".$site_server."themes/admin/script/joomla.javascript.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";
echo"<script src=\"".$site_server."themes/admin/script/jquery-1.2.3.min.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";
echo"<script src=\"".$site_server."themes/admin/script/lib.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";

echo "<link rel=\"stylesheet\" href=\"".$site_server."themes/$ThemeSel/style/jquery.tooltip.css\" />\n";
echo "<script src=\"".$site_server."script/tooltip/jquery.tooltip.js\" type=\"text/javascript\"></script>\n\n\n";

   
echo "\n\n\n</head>\n\n";

echo"<body>
<div class=\"wrapper\">
<div class=\"header-bar\">
  <div class=\"header content clearfix\">
  <a id=\"link-vihan\" href=\"http://www.vihan.vn/\" ><img class=\"logo\" src=\"".$site_server."themes/admin/images/logo.png\" alt=\"Vihan\" height=\"71px\"></a>
<span class=\"signup-button\"><a href=\"#\">"._HDSD."</a><br>
<a href=\"".$site_live."\" class=\"home\">"._HOMEPAGE."</a>";
if(defined('IS_ADMIN')) {
echo"<a href=\"".$adminfile.".php?op=logout\">"._ADMINLOGOUT."</a>";
}
echo"</span>
</div>
</div>\n

<div id=\"top_message\" align=\"center\">
<div class=\"message\">\n";
echo "<a href=\"$adminfile.php\">"._HOMEPAGE."</a>";
if($page_title2!="")
echo "&raquo;".$page_title2;
echo"</div>
</div>
<div class=\"main content\">
<div class=\"left-col\">
<div id=\"left_col_menu\">";
GraphicAdmin();
echo"</div>
<div id=\"left_col_ad\">Advertise</div>
<div class=\"clear\"></div>
</div><!--end left-col-->
<div id=\"my-products\">
<div class='style_".$_GET["op"]."'>
\n";
}


//start footer
function themeAdminFooterMain() {

    global $adminfile, $index, $module_name,$currentlang,$site_live,$checkmodname,$site_server;
echo"
</div><!--end style_-->
</div><!--end manage-account-->
<div class=\"announce-bar\">
<div class=\"content\"><p class=\"message\">"._FWELCOME."</p>
</div>\n<!--end anounce-->";
echo"</div><!--end wrapper-->

<div class=\"footer-bar\">
<div class=\"footer content clearfix\">
<ul>
<li>© 2011 Vihan</li>
<li><a href=\"http://vihan.vn\">vihan.vn</a></li>
<li><a href=\"http://phagiaweb.com\">phagiaweb.com</a></li>
<li><a href=\"http://ketoantruong.com.vn\">ketoantruong.com.vn</a></li>
<li><a href=\"http://yeutroncontim.com\">yeutroncontim.com</a></li>
<li><a href=\"javascript:void(0)\">ypoogle.com</a></li>
</ul>
</div>
</div>\n";


}
function modblock(){
global $checkmodname;
}

//////////////////////////////////////////////////////////////////////

Không cho cập nhập admin từ Server nữa

includes/function/mainfile.php

--- Bỏ đoạn này thì không cập nhật cache/admin.php

if(defined('NV_ADMIN')){
$dataad = GetAdminServer();
$Cachexa = new Cache();
if($Cachexa->is_cache())
{
$Cachexa->setTime(86400);//1
$Cachexa->setDir(INCLUDE_PATH."cache"); //2
$Cachexa->setModel('admin');//3
$contentad = $Cachexa->CheckCache ('');//4
$isupdate=$Cachexa->getUpdate(); //5
if (!$contentad || $isupdate)
{
$contentad =$dataad;
$Cachexa->SaveToCache ($contentad,'');
}
}
}

?>


Thứ Năm, 12 tháng 3, 2015

Lỗi khi thay host mới

- không cho cập nhật server :
return 0 là ok.     include/function/mainfile


**** nếu cache/có english + vietnam.php thì ta xóa là ok

Chủ Nhật, 29 tháng 6, 2014

hình ảnh và ảnh trong webshop không hiện lên

trong quá trình copy source và chuyển tên miền từ trang cũ thành 1 trong mới.
---- bước 1: view source ( nếu sai địa chỉ tên miền )
---- kiểm tra file: config.php

Thứ Hai, 24 tháng 3, 2014

chỉnh sữa nhiều themes

**** include-data-config
$actthemes = ""; ==> thường là để rỗng
$actthemes = "sotatec|sotatec2|sotatec3"; ==> 3 themes của web
phần blocks/themes.php ------> thể hiện trang web cần chỉnh sữa

**** webshop

Chủ Nhật, 9 tháng 3, 2014

chỉnh sữa hôm nay - ngày mai trở lại bình thường - error trong web shop

**** vào include/function/mainfile.php ---> function

function GetAdminServer(){   
    global $site_server;
    return 0;
    require_once(INCLUDE_PATH.'/nusoap/lib/nusoap.php'); // load bằng nusoap từ server về host 


---thay một admin mới (upload lai cache/admin.php) bằng cách download file admin.php webshop đang chạy được

Download: tại đây
------------------------------------------------------------------------------------------------------

Thứ Sáu, 7 tháng 2, 2014

lỗi : không hiện theme trong admin

-- khi vào quyền chon themes tự chọn .
-- vào root/ file config.php chỉnh lại sẽ ok

Thứ Tư, 5 tháng 2, 2014

lỗi khi vào admin trong web-shop


lỗi này vào root/case/admin.php
--- xóa file này  trên web và up file admin.php dưới localhost lên
links website: thacoansuong.vn
include/functions/mainfile.php ------ line 884