This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package chela.spring.core; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.util.Base64; | |
final public class ChCrypto { | |
final static Base64.Encoder encorder = Base64.getEncoder(); | |
final static Base64.Decoder decorder = Base64.getDecoder(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<?Hits % OnLogPageHit, OnBeforeDocFormSave, OnDocFormRender | |
if(!defined('MODX_BASE_PATH')){die('What are you doing? Get out of here!');} | |
/* | |
Hits 1.0.3 by Yurik Dertlyan | yurik@unix.am | |
update by Dmi3yy@gmail.com | |
Plugin for Evolution CMS to register and output page hits | |
Installation: | |
- SQL 'ALTER TABLE modx_site_content ADD COLUMN `hits` INT(10) UNSIGNED NOT NULL'; | |
- Create plugin with name "Hits" and description "1.0.3" |