-
ਬਲਜੀਤ ਬੱਲੀ, ਸੰਪਾਦਕ
+91 99151-77722
- ਤਾਜ਼ਾ ਖਬਰਾਂ
-
-
Mar 19, 2024 ਸਵਾਸਤੀ ਮੇਹੁਲ "ਜੈਨ" ਪੀਐਮ ਮੋਦੀ ਦੀ ਪਸੰਦੀਦਾ ਭਜਨ ਗਾਇਕਾ ਬਣ ਗਈ
-
Mar 19, 2024ਹਰਿਆਣਾ: ਨਾਇਬ ਸਿੰਘ ਸੈਣੀ ਵਜ਼ਾਰਤ ’ਚ ਵਾਧਾ ਅੱਜ 19 ਮਾਰਚ ਨੂੰ
-
Mar 19, 2024ਟਰਾਂਸਜੈਂਡਰਾਂ ਨੂੰ ਸੁਪਰੀਮ ਕੋਰਟ ਵੱਲੋਂ ਮਿਲੇ ਹੱਕਾਂ ਨੂੰ ਉਜਾਗਰ ਕਰਨ ਲਈ ਸੈਮੀਨਾਰ ਕਰਵਾਇਆ
-
Mar 19, 2024ਨਵਜੋਤ ਸਿੱਧੂ ਦੀ ਕ੍ਰਿਕਟਰ ਕਮੈਂਟੇਟਰ ਵਜੋਂ ਵਾਪਸੀ, ਪੜ੍ਹੋ ਕਿਥੋਂ ਕਰਨਗੇ ਮੁੜ ਆਗਾਜ਼
-
Mar 19, 2024ਪੰਜਾਬ ’ਚ ਅਫੀਮ ਦੀ ਖੇਤੀ ਦਾ ਸਕੈਂਡਲ ਬੇਨਕਾਬ, 14.47 ਕਿਲੋ ਅਫੀਮ ਸਮੇਤ ਇਕ ਗ੍ਰਿਫਤਾਰ
-
Mar 19, 2024ਕੇ ਕਵਿਤਾ, ਕੇਜਰੀਵਾਲ ਤੇ ਸਿਸੋਦੀਆ ਨੂੰ ਲੈ ਕੇ ਈ ਡੀ ਦਾ ਵੱਡਾ ਦਾਅਵਾ, ਪੜ੍ਹੋ ਵੇਰਵਾ
-
Mar 19, 2024ਭਾਜਪਾ ਵੱਲੋਂ ਕੋਰ ਕਮੇਟੀ ਮੀਟਿੰਗ ’ਚ ਯੂ.ਪੀ. ਸਮੇਤ ਵੱਖ-ਵੱਖ ਰਾਜਾਂ ਦੇ ਉਮੀਦਵਾਰਾਂ ਦੇ ਨਾਵਾਂ ’ਤੇ ਚਰਚਾ
-
Mar 19, 2024ਕਾਂਗਰਸ ਵਰਕਿੰਗ ਕਮੇਟੀ ਦੀ ਮੀਟਿੰਗ ਅੱਜ 19 ਮਾਰਚ ਨੂੰ, ਚੋਣ ਮਨੋਰਥ ਪੱਤਰ ਨੂੰ ਪ੍ਰਵਾਨਗੀ ਦੇਣ ਦੇ ਆਸਾਰ
-
Mar 18, 2024AAP ਆਮ ਆਦਮੀ ਪਾਰਟੀ ਨੂੰ ਪੰਜਾਬ 'ਚ 13 'ਚੋਂ ਜ਼ੀਰੋ ਸੀਟ ਮਿਲੇਗੀ- ਮੀਨਾਕਸ਼ੀ ਲੇਖੀ @ ਲੁਧਿਆਣਾ
-
Mar 18, 2024ਅਮਰੀਕਾ 'ਚ 20 ਸਾਲਾ ਭਾਰਤੀ ਵਿਦਿਆਰਥੀ ਦੀ ਲਾਸ਼ ਮਿਲੀ
-
Mar 18, 2024ਲੋਕ ਸਭਾ ਚੋਣਾਂ ਲੜ ਰਹੇ ਆਪ ਦੇ ਸਾਰੇ ਪੰਜ ਮੰਤਰੀ ਆਪਣੇ ਅਹੁਦਿਆਂ ਤੋਂ ਤੁਰੰਤ ਅਸਤੀਫੇ ਦੇਣ: ਸੁਖਬੀਰ ਬਾਦਲ
-
Mar 18, 2024ਕੁੱਤੇ ਪਾਲਕ ਰਹਿਣ ਸੁਚੇਤ: ਛੋਟੀ ਜਿਹੀ ਗਲਤੀ ਕਾਰਨ ਹੋਇਆ ਪੂਰਾ ਪਰਿਵਾਰ ਬਰਬਾਦ, ਰਾਜਸਥਾਨ 'ਚ ਪਿਓ-ਧੀ ਦੀ ਮੌਤ
-
Mar 18, 2024ਆਪਣੀ 3 ਮਹੀਨੇ ਦੀ ਧੀ ਨੂੰ ਛੱਡ ਕੇ ਇਹ ਥਾਣੇਦਾਰ ਮਾਂ ਜਾਵੇਗੀ ਜੇਲ੍ਹ, ਅਜਿਹਾ ਕੰਮ ਕਰਨ 'ਤੇ ਪੂਰਾ ਜ਼ਿਲ੍ਹਾ ਕਰ ਰਿਹਾ ਨਿੰਦਾ
-
Mar 18, 2024ਗੋਲੀ ਦਾ ਬਦਲਾ ਗੋਲੀ! ਪੁਲਿਸ ਐਨਕਾਊਂਟਰ 'ਚ ਰਾਣਾ ਮਨਸੂਰਪੁਰੀਆਂ ਦੀ ਮੌਤ
-
Mar 18, 2024ਨੀਤਾ ਅੰਬਾਨੀ ਨੇ ਆਪਣੇ ਬੇਟੇ ਦੀ ਬਜਾਏ 16 ਕਿਲੋ ਭਾਰ ਕਿਵੇਂ ਘਟਾਇਆ? ਆਪਣੇ ਫਿਟਨੈੱਸ ਸਫਰ ਦਾ ਹੈਰਾਨ ਕਰਨ ਵਾਲਾ ਸੱਚ ਦੱਸਿਆ
-
Mar 18, 2024Lok Sabha Elecation: ਜ਼ਿਲ੍ਹਾ ਖ਼ਜ਼ਾਨਾ ਅਤੇ ਸਬ-ਖ਼ਜ਼ਾਨਾ ਦਫ਼ਤਰਾਂ ਨੂੰ 24 ਘੰਟੇ ਖੁੱਲ੍ਹਾ ਰੱਖਣ ਦੇ ਆਦੇਸ਼
-
Mar 18, 2024ਅੰਮ੍ਰਿਤਸਰ: ਫੋਕੀ ਟੌਹਰ ਨੇ ਜੇਲ੍ਹ ਪਹੁੰਚਾਈ ਨਕਲੀ ਲੇਡੀ ਇੰਸਪੈਕਟਰ
-
Mar 18, 2024ਚੋਣ ਬਾਂਡ 'ਤੇ ਮੀਡੀਆ ਰਿਪੋਰਟ ' ਤੇ ਰੋਕ ਲਈ ਅਦਾਲਤ ਤੋਂ ਕੀਤੀ ਮੰਗ , CJI ਨੇ ਕਿਹਾ- ਫੈਸਲੇ ਜਨਤਕ ਜਾਇਦਾਦ ਹਨ, ਸਾਡੇ ਮੋਢੇ ਬਹੁਤ ਮਜ਼ਬੂਤ ਹਨ
-
Mar 18, 2024Electoral bonds data: ਚੋਣ ਬਾਂਡ ਨੂੰ ਲੈ ਕੇ ਨਵੇਂ-ਨਵੇਂ ਖੁਲਾਸੇ, BJP ਨੇ 3050 ਕਰੋੜ ਕੀਤੇ ਰੁਪਏ ਕੈਸ਼
-
Mar 18, 2024ਕਦੇ ਮਰ ਚਿੜੀਏ ..ਕਦੇ ਜਿਓਂ ਚਿੜੀਏ .ਭਗਵੰਤ ਮਾਨ ਦੀ ਸੁਨੀਲ ਜਾਖੜ ਨੂੰ ਉਲਟਾ ਪਾਠ ਪੜ੍ਹਾਇਆ
-
Mar 18, 2024ਪੁਲਿਸ ਐਨਕਾਊਂਟਰ ਵਿਚ ਮਾਰਿਆ ਗਿਆ ਗੈਂਗਸਟਰ ਰਾਣਾ ਮਨਸੂਰਪੁਰੀਆ, ਬੀਤੇ ਕੱਲ੍ਹ ਹੀ ਕੀਤਾ ਸੀ ਪੁਲਿਸ ਮੁਲਾਜ਼ਮ ਦਾ ਕਤਲ
-
Mar 18, 2024ਸਾਬਕਾ ਰਾਸ਼ਟਰਪਤੀ ਰਾਮ ਨਾਥ ਕੋਵਿੰਦ ਤਖਤ ਸ਼੍ਰੀ ਦਮਦਮਾ ਸਾਹਿਬ ਵਿਖੇ ਨਤਮਸਤਕ
-
Mar 18, 2024Punjab CEO ਵੱਲੋਂ ਸਿਆਸੀ ਪਾਰਟੀਆਂ ਦੇ ਨੁਮਾਇੰਦਿਆਂ ਨਾਲ ਮੀਟਿੰਗ; ਚੋਣ ਪ੍ਰਕਿਰਿਆ ਬਾਰੇ ਕਰਵਾਇਆ ਜਾਣੂ
-
Mar 18, 2024ਲੋਕ ਸਭਾ ਚੋਣਾਂ: ਬਠਿੰਡਾ ’ਚ ਲੋਕਾਂ ਦੇ ਬੂਹੇ ਖੜਕਾਉਣ ਲੱਗਿਆ ਰਾਜਾ ਵੜਿੰਗ
-
Mar 18, 2024ਕਿਸਾਨਾਂ ਲਈ ਅਹਿਮ ਖ਼ਬਰ: ਸਰਹੰਦ ਫੀਡਰ ਨਹਿਰ 'ਚ ਪਾਣੀ ਦੀ ਸਪਲਾਈ 15 ਅਪ੍ਰੈਲ ਤੱਕ ਬੰਦ ਕਰਨ ਦੇ ਹੁਕਮ
-
Mar 18, 2024ਪੰਜਾਬ ਕਿਸਾਨ ਦਲ ਨੇ ਭਾਜਪਾ 'ਚ ਸ਼ਾਮਲ ਹੋਣ ਦਾ ਕੀਤਾ ਐਲਾਨ, ਜਾਖੜ ਵੱਲੋਂ ਭਰਵਾਂ ਸਵਾਗਤ
-
Mar 18, 2024ਹੋਲਾ ਮਹੱਲਾ ਦੌਰਾਨ ਮੇਲਾ 'ਚ ਮੰਗਤਿਆਂ ਦੇ ਦਾਖਲੇ 'ਤੇ ਪਾਬੰਦੀ
-
Mar 18, 2024ਆਖ਼ਰ ਫੜਿਆ ਹੀ ਗਿਆ ਸਾਬਕਾ CM ਚੰਨੀ ਕੋਲੋਂ 2 ਕਰੋੜ ਦੀ ਫਿਰੌਤੀ ਮੰਗਣ ਵਾਲਾ
-
Mar 18, 2024ਅੰਮ੍ਰਿਤਸਰ: ਥਾਣੇ ਦੇ ਬਾਹਰ ਨੌਜਵਾਨ ਦਾ ਗੋਲੀਆਂ ਮਾਰ ਕੇ ਕਤਲ ਕਰਨ ਵਾਲੇ ਤਿੰਨ ਵਿਅਕਤੀਆਂ ਨੂੰ ਪੁਲਿਸ ਨੇ ਕੀਤਾ ਗ੍ਰਿਫਤਾਰ
-
Mar 18, 2024ਹੋਲਾ ਮਹੱਲਾ! ਪ੍ਰਸਾਸ਼ਨ ਦੀ ਡੇਰਾ ਪ੍ਰਬੰਧਕਾਂ ਨੂੰ ਅਪੀਲ, ਡੇਰਿਆਂ 'ਚ CCTV ਕੈਮਰੇ ਲਗਵਾਉਣ
-
Mar 18, 2024Lok Sabha Elections 2024': ਚੋਣਾਂ ਦੌਰਾਨ ਸ਼ਰਾਬ ਦੀ ਵਿਕਰੀ 'ਤੇ ਰਹੇਗੀ ਤਿੱਖੀ ਨਜ਼ਰ
-
Mar 18, 2024ਚੰਡੀਗੜ੍ਹ ਦੇ ਵਿਕਾਸ ਦੀ ਤਰ੍ਹਾਂ ਬਾਈਕ ਸ਼ੇਅਰਿੰਗ ਸਕੀਮ ਵੀ ਪਟੜੀ ਤੋਂ ਉਤਰੀ : ਪਵਨ ਬਾਂਸਲ
-
Mar 18, 2024ਡੀਜੀਪੀ ਪੰਜਾਬ ਨੇ ਸ਼ਹੀਦ ਮੁਲਾਜ਼ਮ ਅੰਮ੍ਰਿਤਪਾਲ ਸਿੰਘ ਨੂੰ ਦਿੱਤੀ ਸ਼ਰਧਾਂਜਲੀ
-
Mar 18, 2024ਪਟਿਆਲਾ : ਅਸਲਾ ਧਾਰਕਾਂ ਨੂੰ ਹਥਿਆਰ ਜਮ੍ਹਾਂ ਕਰਵਾਉਣ ਦੇ ਹੁਕਮ ਜਾਰੀ
-
Mar 18, 2024ਚੋਣ ਕਮਿਸ਼ਨ ਨੇ ਨਿਰਪੱਖ ਚੋਣਾਂ ਯਕੀਨੀ ਬਣਾਉਣ ਲਈ 6 ਸੂਬਿਆਂ 'ਚ ਗ੍ਰਹਿ ਸਕੱਤਰਾਂ ਅਤੇ ਇਕ ਡੀਜੀਪੀ ਨੂੰ ਹਟਾਉਣ ਦੇ ਹੁਕਮ ਦਿੱਤੇ
-
Mar 18, 2024ਕੋਲਕਾਤਾ ਵਿੱਚ ਡਿੱਗੀ ਨਿਰਮਾਣ ਅਧੀਨ ਇਮਾਰਤ, 2 ਦੀ ਮੌਤ
-
Mar 18, 2024ਚੋਣ ਬਾਂਡ ਸਬੰਧੀ SBI ਨੂੰ ਕਰਨਾ ਪਵੇਗਾ ਖੁਲਾਸਾ : SC
-
Mar 18, 2024ਸਤੇਂਦਰ ਜੈਨ ਨੂੰ ਸੁਪਰੀਮ ਕੋਰਟ ਤੋਂ ਵੱਡਾ ਝਟਕਾ, ਜਾਣਾ ਪਵੇਗਾ ਜੇਲ੍ਹ
-
Mar 18, 2024ਅਕਾਲੀ ਵਿਧਾਇਕ ਸੁੱਖੀ ਦੀ ਭਗਵੰਤ ਮਾਨ ਨਾਲ ਹੋਈ ਮੁਲਾਕਾਤ ਨੇ ਨਵੀਂ ਚਰਚਾ ਛੇੜੀ
-
Mar 18, 202410 ਲੱਖ ਰੁਪਏ ਤੋਂ ਵੱਧ ਦੇ ਲੈਣ-ਦੇਣ ਦਾ ਵੇਰਵਾ ਦਿਓ- ਡੀਸੀ ਨੇ ਬੈਂਕਾਂ ਨੂੰ ਜਾਰੀ ਕੀਤੇ ਹੁਕਮ
-
Mar 18, 2024ਦਿੱਲੀ ਜਲ ਬੋਰਡ ਘੁਟਾਲੇ ’ਚ ਈ ਡੀ ਅੱਗੇ ਪੇਸ਼ ਨਹੀਂ ਹੋਣਗੇ ਕੇਜਰੀਵਾਲ
-
Mar 18, 2024ਲੋਕ ਸਭਾ ਚੋਣਾਂ : ਸੁਖਬੀਰ ਬਾਦਲ ਨੇ ਪਾਰਟੀ ਦੀ ਕੋਰ ਕਮੇਟੀ ਦੀ ਅਹਿਮ ਮੀਟਿੰਗ ਇਸ ਦਿਨ ਸੱਦੀ
-
Mar 18, 2024ਤਾਲਿਮਨਾਡੂ ਦੇ ਰਾਜਪਾਲ ਨੇ ਡੀ ਐਮ ਕੇ ਆਗੂ ਨੂੰ ਮੰਤਰੀ ਵਜੋਂ ਸਹੁੰ ਚੁਕਾਉਣ ਤੋਂ ਕੀਤੀ ਨਾਂਹ
-
Mar 18, 2024ਹਿਮਾਚਲ ਦੇ ਬਾਗੀ ਵਿਧਾਇਕਾਂ ਦੀ ਬਰਖ਼ਾਸਗੀ ਬਾਰੇ ਸੁਪਰੀਮ ਕੋਰਟ ਵਿਚ ਸੁਣਵਾਈ ਅੱਜ 18 ਮਾਰਚ ਨੂੰ
-
Mar 18, 2024ਦਿੱਲੀ ਜਲ ਬੋਰਡ ਘੁਟਾਲਾ: ਈ ਡੀ ਅੱਗੇ ਕੇਜਰੀਵਾਲ ਦੀ ਪੇਸ਼ੀ ਅੱਜ 18 ਮਾਰਚ ਨੂੰ
-
Mar 18, 2024ਇੰਡੀਆ ਬਲਾਕ ਈ ਵੀ ਐਮ ਦੇ ਖਿਲਾਫ ਨਹੀਂ: ਜੈਰਾਮ ਰਮੇਸ਼
-
Mar 18, 2024ਬਿਜ਼ਨਸਮੈਨ ਅਡਾਨੀ ਆਪਣੇ ਕੁੱਲ ਨਿਵੇਸ਼ ਦਾ 70 ਫੀਸਦੀ ਗ੍ਰੀਨ ਐਨਰਜੀ ’ਤੇ ਨਿਵੇਸ਼ ਕਰੇਗਾ
-
Mar 18, 202487.17 ਫੀਸਦੀ ਵੋਟਾ ਲੈ ਕੇ ਪੁਤਿਨ ਫਿਰ ਬਣੇ ਰੂਸ ਦੇ ਰਾਸ਼ਟਰਪਤੀ
-
Mar 17, 2024ਕਮਿਊਨਿਸਟ ਆਗੂ ਅਤੇ ਸ਼ਾਇਰ ਕਾਮਰੇਡ ਮਰਹੂਮ ਮਦਨ ਲਾਲ ਦੀਦੀ ਦਾ 100ਵਾਂ ਜਨਮਦਿਨ ਸਮਾਗਮ 19 ਮਾਰਚ ਨੂੰ
-
Mar 17, 2024ਸਾਬਕਾ ਮੰਤਰੀ ਦੀ ਅਗਵਾਈ ਹੇਠਲੀ OBC ਵਰਗ ਵਾਲੀ ਪਾਰਟੀ' ਵੀ ਲੋਕ ਸਭਾ ਚੋਣ ਮੈਦਾਨ 'ਚ -ਲੁਧਿਆਣਾ ਤੋਂ ਉਮੀਦਵਾਰ ਦਾ ਐਲਾਨ
-
Mar 17, 2024ਲੋਕ ਸਭਾ ਚੋਣਾਂ: ਪੰਜਾਬ ਟੈਕਸੇਸ਼ਨ ਵਿਭਾਗ ਨੇ 5 ਕਰੋੜ ਰੁਪਏ ਦੇ ਸੋਨੇ ਤੇ ਹੀਰਿਆਂ ਦੇ ਗਹਿਣੇ ਜ਼ਬਤ ਕੀਤੇ
-
Mar 17, 2024ਪ੍ਰਤਾਪ ਬਾਜਵਾ ਨੇ ਡੇਰਾ ਬਿਆਸ ਮੁਖੀ ਨਾਲ ਕੀਤੀ ਮੁਲਾਕਾਤ
-
Mar 17, 2024ਗਧੇ ਦੇ ਸਿਰੋਂ ਸਿੰਗਾਂ ਵਾਂਗ ਗਾਇਬ ਹੋਏ ਸਿਆਸੀ ਧਿਰਾਂ ਦੇ ਪ੍ਰਚਾਰ ਬੋਰਡ
-
Mar 17, 2024ਜ਼ਿਲ੍ਹਾ ਲੋਕ ਸੰਪਰਕ ਅਫਸਰ ਫਤਿਹਗੜ੍ਹ ਸਾਹਿਬ ਭੁਪੇਸ਼ ਚੱਠਾ ਨੂੰ ਸਦਮਾ, ਪਿਤਾ ਦਾ ਦਿਹਾਂਤ, ਅੰਤਿਮ ਸਸਕਾਰ ਕੱਲ੍ਹ 18 ਮਾਰਚ ਨੂੰ ਪਟਿਆਲਾ ਵਿਖੇ
-
Mar 17, 2024ਵੀਡੀਓ: Moosewala ਦੇ ਪਿਤਾ ਹੋਏ ਭਾਵੁਕ ਕਿਹਾ ਮੈਨੂੰ ਜਿਉਣ ਦਾ ਸਹਾਰਾ ਮਿਲ ਗਿਆ
-
Mar 17, 2024BREAKING: ਯੂਟਿਊਬਰ ਐਲਵਿਸ਼ ਯਾਦਵ ਪੁਲਿਸ ਵੱਲੋਂ ਗ੍ਰਿਫਤਾਰ
-
Mar 17, 2024 ਪੰਜਾਬ ਪੁਲਿਸ ਆਜ਼ਾਦ, ਨਿਰਪੱਖ ਅਤੇ ਸ਼ਾਂਤੀਪੂਰਨ ਚੋਣਾਂ ਕਰਵਾਉਣ ਲਈ ਤਿਆਰ: ਡੀਜੀਪੀ ਗੌਰਵ ਯਾਦਵ
-
Mar 17, 2024ਚੋਣ ਬਾਂਡਾਂ ਬਾਰੇ ਡਾਟਾ ਚੋਣ ਕਮਿਸ਼ਨ ਨੇ ਵੈਬਸਾਈਟ 'ਤੇ ਕਰਵਾਇਆ ਅਪਲੋਡ
-
Mar 17, 2024 ਲੋਕ ਸਭਾ ਚੋਣਾਂ 2024: ਪੰਜਾਬ ਦੇ ਮੁੱਖ ਚੋਣ ਅਧਿਕਾਰੀ ਸਿਬਿਨ ਸੀ ਵੱਲੋਂ ਚੋਣ ਪ੍ਰੋਗਰਾਮ ਜਾਰੀ
-
Mar 17, 2024ਡੀਜੀਪੀ ਨੇ ਲੋਕ ਸਭਾ ਚੋਣਾਂ ਲਈ ਦਿੱਤੇ ਸਖ਼ਤ ਆਦੇਸ਼
-
Mar 17, 2024ਪੂਣੇ : ਅਤਿਵਾਦੀ ਮਾਮਲੇ ਵਿਚ 4 ਜਣਿਆਂ ਦੀਆਂ ਜਾਇਦਾਦਾਂ ਕੀਤੀਆਂ ਕੁਰਕ
-
Mar 17, 2024ਕੀ ਸ੍ਰੀ ਅਨੰਦਪੁਰ ਸਾਹਿਬ ਜ਼ਿਲ੍ਹਾ ਬਣੇਗਾ ? ਹਰਜੋਤ ਬੈਂਸ ਦਾ ਵੱਡਾ ਬਿਆਨ
-
Mar 17, 2024ਵੱਡੀ ਖ਼ਬਰ: ਮੁਕੇਰੀਆ 'ਚ CIA ਟੀਮ 'ਤੇ ਹਮਲਾ, ਪੁਲਿਸ ਮੁਲਾਜ਼ਮ ਦੀ ਮੌਤ
db = new MysqliDb (HOST, USERNAME, PWD, DB); include_once(CLASSES.'password.php'); } public function makePhoto($photo_name, $img) { //echo'hii';die;makeSlider( //echo $img; die; $thumbnail_width = 64; $thumbnail_height = 64; $arr_image_details = getimagesize($img); // pass id to thumb name //var_dump($arr_image_details); die; $original_width = $arr_image_details[0]; $original_height = $arr_image_details[1]; if ($original_width < 64) { $new_width = $original_width; $new_height = $original_height; } else if ($original_width > $original_height) { //$new_height = $thumbnail_height; $new_width = $thumbnail_width; $new_height = intval($original_height * $new_width / $original_width); } else { /*$new_height = $thumbnail_height; $new_width = intval($original_width * $new_height / $original_height);*/ $new_height = $thumbnail_height; $new_width = intval($original_width * $new_height / $original_height); } //echo $new_width.'='.$new_height; $dest_x = intval(($thumbnail_width - $new_width) / 2); $dest_y = intval(($thumbnail_height - $new_height) / 2); if ($arr_image_details[2] == 1) { $imgt = "ImageGIF"; $imgcreatefrom = "ImageCreateFromGIF"; } if ($arr_image_details[2] == 2) { $imgt = "ImageJPEG"; $imgcreatefrom = "ImageCreateFromJPEG"; } if ($arr_image_details[2] == 3) { $imgt = "ImagePNG"; $imgcreatefrom = "ImageCreateFromPNG"; } if($imgt){ $old_image = $imgcreatefrom($_FILES['photo']['tmp_name']); //echo $photo_name;var_dump($old_image); $new_image = imagecreatetruecolor($thumbnail_width, $thumbnail_height); $tr=imagecopyresized($new_image, $old_image, $dest_x, $dest_y, 0, 0, $new_width, $new_height, $original_width, $original_height); //var_dump(file_exists("upload/user/image/".$photo_name)); die; if(file_exists('upload/user/image/'.$photo_name) == true){ //echo'1';die; // Rename the file if another one already exists in folder $remove_php_name = preg_replace("/(.+)\.php$/", "$1", $photo_name); $new_file_name = uniqid(rand(), true)."_".$remove_php_name; $old_file = "upload/user/image/".$photo_name; $new_file = "upload/user/image/".$new_file_name; rename($old_file, $new_file); $photo_name = $new_file_name; } else { //echo'2';die; $remove_php_name = preg_replace("/(.+)\.php$/", "$1", $photo_name); move_uploaded_file($file_tmp, $upload_dir."/".$remove_php_name); $imgt($new_image, "upload/user/image/".$photo_name); $photo_name = $photo_name; } } } public function adduser($arr) { //echo 'add user'; $password = trim($arr['password']); $password = strip_tags($password); $pwd_hash = password_hash($password, PASSWORD_BCRYPT, array("cost" => 10)); // echo $pwd_hash; if(isset($arr['subscribe']) && $arr['subscribe']=='1'){ $newsletter = '1'; } else { $newsletter = '0'; } if($_FILES['photo']['error'] != UPLOAD_ERR_NO_FILE){ // echo 'photo'; die; $file = 'photo'; $errors = array(); $extension = array("jpeg","JPEG","jpg","JPG","png","PNG","gif","GIF"); $photo_name = $_FILES[$file]['name']; $file_size = $_FILES[$file]['size']; $file_tmp = $_FILES[$file]['tmp_name']; $file_type = $_FILES[$file]['type']; $ext = pathinfo($photo_name, PATHINFO_EXTENSION); if(!in_array($ext, $extension)){ echo""; $errors[] = "Please upload a valid image. (.jpg, .png or .gif) !"; } else if($file_size > 175000){ echo""; $errors[] = "Your file exceeds max image size 175 kb !"; } else { // resize photo $this->makePhoto($photo_name, $file_tmp); $user_photo = $photo_name; } } else { $user_photo = ''; } $data2 = Array ( 'first_name' => $this->db->escape($arr['first_name']), 'last_name' => $this->db->escape($arr['last_name']), 'email' => $this->db->escape($arr['email']), 'phone_no' => $this->db->escape($arr['phone_no']), 'mobile_no' => $this->db->escape($arr['mobile_no']), 'country' => $this->db->escape($arr['country']), 'state' => $this->db->escape($arr['state']), 'city' => $this->db->escape($arr['city']), 'username' => $this->db->escape($arr['username']), 'password' => $pwd_hash, 'photo' => $user_photo, 'newsletter' => $newsletter, 'created_on' => date('Y-m-d'), 'status' => 1 ); // echo '4'; //var_dump($data2); die; $insert1 = $this->db->insert('site_user', $data2); //var_dump($insert1);die; if($insert1){ echo''; } else { echo''; } } public function subscribeuser() { $newsletter = $_POST['terms_policy']; $data2 = Array ( 'newsletter' => $newsletter ); $update1 = $this->db->where('id', $id)->update('site_user', $data2); if($update1==true){ echo''; } else { echo''; } } /*public function unsubscribe_newsalert() { $id = $_SESSION['site_user_id']; //echo $id;die; $data2 = Array ( 'newsletter' => 0 ); $update1 = $this->db->where('id', $id)->update('site_user', $data2); if($update1==true){ echo''; } else { echo''; } }*/ public function unsubscribe_newsalert() { $email_user = $_POST['email']; //$to = array("rakeshk@hambzik.com", "info.babushahi@gmail.com", "arvindk@hambzik.com"); $to = "rakeshk@hambzik.com"; $subject = "Unsubscribe Babushahi Newsletter"; $this->sendEmail($to, $email_user, $subject); } function sendEmail($to, $email_user, $subject){ //echo $link; //$to = array("rakeshk@hambzik.com"); $to = "rakeshk@hambzik.com"; // $to = $emails; //print_r($to); //die; //date_default_timezone_set('America/Toronto'); //include("classes/PHPMailer/PHPMailerAutoload.php"); $mail = new PHPMailer(true); try { $mail->CharSet = 'UTF-8'; // 1 = errors and messages //$mail->SMTPSecure = "ssl"; // 2 = messages only //$mail->SMTPSecure = 'ssl'; $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPKeepAlive = true; $mail->Host = "mail.babushahi.net"; // sets the SMTP server $mail->Port = 25; // set the SMTP port for the GMAIL server $mail->Username = "newsletter@babushahi.net"; // SMTP account username $mail->Password = "Darshan@chd"; // SMTP account password $mail->SetFrom( "no-reply@babushahi.com","Unsubscribe Babushahi Newsletter "); $mail->Subject = $subject; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $timm = time(); $body = "
Message Hello Admin, |
$email_user has just submitted the request to UnSubscribe Babushahi Newsletter and News Alert. |
|
|
Babushahi.com |
"; // $address = $v; $mail->MsgHTML($body); $mail->IsHTML(true); //$to=array("rksoftslogics@gmail.com","rakeshk@hambzik.com"); //foreach($to as $v){ //$address = $v['email']; $address = $to; $mail->AddAddress($address); $mail->AddBCC("rksoftslogics@gmail.com"); $mail->Send(); $mail->ClearAddresses(); $mail->ClearAllRecipients(); // } if(!$mail->Send()) { //echo "Error sending: " . $mail->ErrorInfo; //header('Location: add-news.php'); echo ''; exit(); } else { //echo "mail is sent"; echo ''; exit(); } // clear all } catch(phpmailerException $e) { //echo $e->errorMessage(); echo ''; exit(); } catch(Exception $e) { //echo $e->getMessage(); echo ''; exit(); } } public function subscribe_newsalert() { $email_newsletter = $_POST['email']; //$to="info.babushahi@gmail.com "; //$to = "rakeshk@hambzik.com"; $to = $email_newsletter; // send email to subscriber $mail = new PHPMailer(true); $mail->CharSet = 'UTF-8'; // $mail->SMTPSecure = "ssl"; // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPKeepAlive = true; $mail->Host = "mail.babushahi.net"; // sets the SMTP server $mail->Port = 25; // set the SMTP port for the GMAIL server $mail->Username = "newsletter@babushahi.net"; // SMTP account username $mail->Password = "Darshan@chd"; // SMTP account password $mail->SetFrom( "no-reply@babushahi.com","Babushahi Newsletter Confirmation "); $mail->Subject = 'Babushahi Newsletter Confirmation'; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $timm = time(); $body = "
Message |
Thank you for subscribing to email alerts and newsletter from babushahi.com and babushahi.in. A confirmation email has been sent to $email_newsletter. If you have not received the confirmation email, please check the spam / junk email folder and mark the email as NOT Junk. |
|
|
Kind Regards, |
|
Tirchhi Nazar Media |
|
=============================== |
"; $mail->MsgHTML($body); $mail->IsHTML(true); $address = $to; $mail->AddAddress($address); //$mail->AddBCC("rakeshk@hambzik.com"); //$mail->ClearAddresses(); //$mail->ClearAllRecipients(); $mail->Send(); //$this->send_newsletter_confirmation_to_admin($adminemail); /* if($mail->Send()){ //echo 'Mailer error: ' . $mail->ErrorInfo; echo""; exit(); } else { //echo "Error sending: " . $mail->ErrorInfo; echo""; exit(); }*/ } public function send_newsletter_confirmation_to_admin($arr) { //var_dump($arr); die; //$to=$adminemail; $to="info.babushahi@gmail.com"; // $to="rakeshk@hambzik.com"; // send email to admin $name=$arr['name']; $email=$arr['email']; $country=$arr['country']; $city=$arr['city']; $mail1 = new PHPMailer(true); $mail1->CharSet = 'UTF-8'; // $mail->SMTPSecure = "ssl"; // 2 = messages only $mail1->SMTPAuth = true; // enable SMTP authentication $mail1->SMTPKeepAlive = true; $mail1->Host = "mail.babushahi.net"; // sets the SMTP server $mail1->Port = 25; // set the SMTP port for the GMAIL server $mail1->Username = "newsletter@babushahi.net"; // SMTP account username $mail1->Password = "Darshan@chd"; // SMTP account password $mail1->SetFrom( "no-reply@babushahi.com","Babushahi Newsletter Request"); $mail1->Subject = "Babushahi Newsletter Request"; $mail1->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $timm = time(); $body = "
Message Hello Admin, |
$email has just sent request for subscribing to email alerts and newsletter from babushahi.com and babushahi.in. A confirmation email has also been sent to $email_newsletter. |
|
Name | $name |
Email | $email |
Country | $country |
City | $city |
|
Kind Regards, |
Tirchhi Nazar Media |
|
=============================== |
"; $mail1->MsgHTML($body); $mail1->IsHTML(true); //$address = $to; $mail1->AddAddress($to); //$mail->AddCC("rahul143angel@gmail.com"); // $mail1->ClearAddresses(); //$mail1->ClearAllRecipients(); $mail1->Send(); } }?>