Can i add codes to Open-School Community Edition or to EduSecand create more functionality?and consider it my own?By the way, they are both projects powered by yii.

By default PACKT Pulishing owns it but since the code is at github Jeff may have additional agreement about releasing it as opensource. You may ask PACKT Pulishing: