當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Templates::Install方法代碼示例

本文整理匯總了PHP中Templates::Install方法的典型用法代碼示例。如果您正苦於以下問題:PHP Templates::Install方法的具體用法?PHP Templates::Install怎麽用?PHP Templates::Install使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Templates的用法示例。


在下文中一共展示了Templates::Install方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

     $query = Transaction::query("SELECT * FROM mobbo_templates WHERE id = '" . $id . "'");
     $fetch = Transaction::fetch($query);
     $name = $fetch['path'];
     if (Transaction::Active($name)) {
         $msg = "<div class='rounded rounded-green'><center>Template Ativado Ok.. <img src=\"./w/images/check.gif\"></center></div>";
     } else {
         $msg = "<div class='rounded rounded-red'><center>Error - Template nao Ativado :( <img src=\"./w/images/del.gif\"></center></div>";
     }
 } elseif ($do == "download" && is_numeric($key)) {
     $template = $_POST['template'];
     $url = $_POST['template'];
     if (Templates::Download($template)) {
         $patan = explode('/', $url);
         $pates = $patan[5];
         $name = str_replace('.zip', '', $pates);
         if (Templates::Install($name)) {
             if (Templates::Active($name)) {
                 $msg = "<div class='rounded rounded-green'><center>Template Baixado e Extraido com Sucesso<img src=\"./w/images/check.gif\"></center></div>";
             }
         } else {
             if (Templates::Active($name)) {
                 $msg = "<div class='rounded rounded-green'><center>Template já Estava Instalado, mas foi Ativado<img src=\"./w/images/check.gif\"></center></div>";
             }
         }
     } else {
         $msg = "<div class='rounded rounded-red'><center>Erro ao Extrair<img src=\"./w/images/check.gif\"></center></div>";
     }
 } elseif ($do == "add") {
     $editor_mode = true;
     if ($_POST['submit']) {
         Transaction::query("INSERT INTO stafflogs (action,message,note,userid,targetid,timestamp) VALUES ('Housekeeping','Plugin Adicionado','news_add.php','" . $my_id . "','0','" . $date_full . "')");
開發者ID:habb0,項目名稱:mobbo,代碼行數:31,代碼來源:templates.php

示例2: copy

                                         $origem = 'client/clientfstorm.php';
                                         $destino = '../templates/mobbonovo/client.php';
                                         copy($origem, $destino);
                                     }
                                     if ($opcao == "fstorm2") {
                                         $origem = 'client/clientteste.php';
                                         $destino = '../templates/mobbonovo/client.php';
                                         copy($origem, $destino);
                                     }
                                     if ($opcao == "fstorm3") {
                                         $origem = 'client/clientswift.php';
                                         $destino = '../templates/mobbonovo/client.php';
                                         copy($origem, $destino);
                                     }
                                     Templates::Download('http://bi0s.hostingsiteforfree.com/uploads/bi0s/mobbo.zip');
                                     Templates::Install('mobbo');
                                     Templates::Active('mobbo');
                                     echo 'TudoCertoTudoCerto';
                                 }
                             } else {
                                 echo 'Você não selecionou uma Client';
                             }
                         }
                     }
                 } else {
                     echo 'Você não criou uma conta de Admin';
                 }
             }
         }
     }
 } else {
開發者ID:habb0,項目名稱:mobbo,代碼行數:31,代碼來源:install.php


注:本文中的Templates::Install方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。