当前位置: 首页>>代码示例>>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;未经允许,请勿转载。