All posts in Uncategorized

Tạo UI Type mới

B1. Đăng ký UI type trong bảng abmsco_ws_fieldtype uitype: có kiểu dữ liệu là varchar(30) fieldtype: sẽ là tên để tạo class mới trong thư mục “modules/Abmsco/uitypes” B2. Tạo file mới. Tạo file php mới trong thư mục “modules/Abmsco/uitypes” Tên file sẽ là tên được lưu ở trường field và . . . Read more

Cách Flush Cache

Hầu hết các hệ điều hành và các DNS client sẽ tự động lưu cache địa chỉ IP và các kết quả DNS gần đây, điều này giúp cho việc truy cập domain nhanh hơn do sử dụng trực tiếp các kết quả DNS trước đó trên máy. Nhưng nếu . . . Read more

Hướng dẫn tạo custom action trên ABMS

khi gửi ajax qua các action custom ta làm như sau ở đoạn truyền gửi params thay vì module , thì thêm :: và mã unique_com_id của khách hàng sau đó ở thư mục AbmscoCustom/unique_com_id tạo thêm thư mục actions sau đó tạo thêm file action cần gọi đến nội . . . Read more

Fix lỗi gửi mail không kèm chữ ký ở mudule MultipleSMTP

Khi gửi mail từ SMTP từ tab related Khi click vào nút “Gửi Email” thì sẽ gọi http request về hệ thống với các tham số như sau: selected_ids: [“408348”] excluded_ids: “” viewname: module: MultipleSMTP mode: massSave toemailinfo: {“408348”:[“holt@innocom.vn”]} view: MassSaveAjax to: [“holt@innocom.vn”] toMailNamesList: {“408348”:[{“label”:”vu test”,”value”:”holt@innocom.vn”}]} flag: SENT documentids: emailMode: . . . Read more

Startup script for FreePBX

As most distributions have moved to systemd, here’s an example startup script that you may customize for your installation. This has been tested to work on CentOS 7. Contents of /etc/systemd/system/freepbx.service [Unit] Description=FreePBX VoIP Server After=mariadb.service [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/sbin/fwconsole start -q ExecStop=/usr/sbin/fwconsole stop -q [Install] WantedBy=multi-user.target   From there . . . Read more