Giter VIP home page Giter VIP logo

core's Introduction

samplecms/framework 的完整后台。

/admin/login/create 创建用户

/admin/login/index 登录

数据库是mongodb

后台modules/content是自定义内容系统,里面列出了现有支持的字段类型。

在modules/content/models 中创建对应的文件,将在后台自动生成对应的内容类型。

并可以CRUD操作。

仅供学习使用

core's People

Contributors

samplecms avatar sunkangchina avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

core's Issues

管理员密码防暴力破解?

  1. 同一IP 同一COOKIE 5分钟中内只能错误密码次数限制
    2.中FLASH COOKIE,不管用户在浏览器中如何清除COOKE,或是换浏览器,该COOKIE不会被清除。

其他方法,有待大家讨论

文章图片字段,点击图片后,添加到内容中。

编辑器使用 redactor
点击图片上传后,是否直接写入内容字段 ?
application/common/field/Post.php

     public $field = [
    'title'=>[
        'label'=>'标题',  
        'element'=>'input',

    ],
    'content'=>[
            'label'=>'内容',
            'element'=>'editor'
    ],
    'files'=>[
            'label'=>'图片',
            'element'=>'upload',
            'option'=>[
                'call'=>"
                    $('.form-field-files img').click(function(){
                            console.log($(this).attr('src'));
                            redactor_content.insertHtml('<img src=\"'+$(this).attr('src')+'\" />'); 
                    });

                ",
            ]
    ],          
    'type'=>[
            'label'=>'分类',
            'element'=>'select',
            'data'=>"Type::element_select",
    ],
    'status'=>[
            'label'=>'状态',
            'element'=>'select',
            'data'=>[

                0=>'禁用',
                1=>'启用',
            ]
    ],


]; 

关于代码同步的说明?

本程序在内部SVN开发,
我们将在新功能开发完成后,统一时间提交。
并修复GITHUB上提交的BUG。

一般周期可能为每周更新一次

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.