dongqian6554 2015-06-20 06:11
浏览 59

Codeigniter Mcrypt扩展的临时解决方案

i have a big problem in my project. i developed project into PYROCMS and PYROCMS developed into Codeigniter. but PYROCMS required "Mcrypt extension".

i have a ssh detail of server but i don't have permission to install anything into server.

i need a solution for "Mcrypt extension" how to working without install or Download from anywhere and upload it in project root directory if it is possible?.

i need a solution like this it is possible in laravel using this packed to working project without install Mcrypt extension please give a any solution like that for PYROCMS.

today is last day of project i need to upload today whatever happen otherwise i lose this project and also my work. please help.

Thanks

  • 写回答

4条回答 默认 最新

  • dpwdldgn43486 2015-06-20 06:42
    关注

    You can override default library with your own library. You can try below code:

    P.S.: I have not tested this code :)

    Create a file:

    /codeigniter/application/libraries/MY_Encrypt.php

    And have below code to get started:

    <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    
    class MY_Encrypt extends CI_Encrypt {
    
        public function __construct()
        {
            //parent::__construct();
        }
    
        /*
        Create your custom encryption and decryption logic by
        overriding function
        */
    
    }
    

    Reference: https://ellislab.com/codeigniter/user-guide/general/creating_libraries.html

    评论

报告相同问题?

悬赏问题

  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据